A、operational
B、optional
C、instructive
D、functional
第1题
A、operational
B、optional
C、instructive
D、functional
第2题
下面是一个简单的使用RAWSOCKET实现的ping程序,填入(n)处。
/*simple ping program*/
struct sockaddr_in saddr;
int rawsock;
unsigned short in_cksum(unsigned short*addr, int len)
{ int sum=0;
unsigned short res=0;
while(1en>1){
sum+=*addr++; len-=2;
}
if(len=1){
*((unsigned char *)(&res))=*((unsigned char *)addr); sum+=res;
}
sum=(sum>>16)+(sam & 0xffff);
sum+=(sum>>16); res=~sum;
return res;
}
void ping(int signo)
{
int len;
int i;
static unsigned short seq=0;
char buff[8192];
struct timeval tv;
struet icmp*icmph=(struct icmp * )buff;
long*data=(long*)icmph→icmp_data;
bzero(buff, 8192);
gettimeofday(&tv, NULL);
icmph→icmp_type=ICMP_ECHO;
icmph→icmp_code=0;
icmph→icmp_cksum=0;
icmph→icmp_id=0;
icmph→icmp_seq=0;
icmph→icmp_id=getpid()&0xffff;
icmph→icmp_seq=seq++;
data[0]=tv.tv_sec;
data[1]=tv.tv_usec;
for(i=8; i< ; i++)
icmph→icmp_data[i]=(unsigned char)i;
icmph→icmp_cksum=in_cksum((unsigned short *)buff, ? 72);
len; sendto(rawsock, buff, 72, 0, &saddr, sizeof(saddr));
alarm(1);
}
void sigint(int signo)
{ printf("CATCH SIGINT !!! \n");
close(rawsock);
exit(0);
}
void dumppkt(char*buf, int len)
{ struct ip*iph=(struct ip*)buf;
int i=iph→ip_h1*4;
struct icmp*icmph=(struct icmp*)&buf[i];
long*data=(long*)iemph→icmp_data;
struct timeval tv;
gettimeofday(&tv, NULL);
if(icmph→icmp_type! =ICMP_ECHOREPLY)
return;
if(icmph→icmp_id! =(getpid()&0xffff))
return;
printf("From %s:ttl=% d seq=% d time=%.2f ms\n",
inet_ntoa(iph→ip_src),iph→ip_ttl?,
icmph→icmp_seq,
(tv.tv_see-data[0])*1000.0+(tv.tv_usec-data[0])/1000.0);
}
int main(int argc, char*argv[])
{ int len;
stuct timeval now;
char recvbuff[8192];
if(1){
printf("%s aaa.bbb.ccc.ddd\n", argv[0]);
exit(1);
}
rawsock=soeket(AF_INET, (2), IPPROTO_ICMP);
if(rawsock<0) {
perror("soeket");
exit(1);
}
bzero (&saddr, sizeof(saddr));
saddr.sin_family=(3);
if(inet_aton(argv[1], &saddr.sin_addr) <0) {
printf("invalid IP address: %s\n", argv[1]);
exit(1);
}
signal(SICALRM, ping);
signal(SICINT, sigint);
alarm(1);
while (1){
len=read (4), recvbuff, 8192);
if(len<0 && errno=EINTR)
continue;
else it(len<0)
perror("read");
else if(len>0)
dumppkt(recvbuff, len);
}
close (5);
exit(0);
}
第3题
Husbands help with the children now.They stay more in the home and have more interest in the home.We shall give some examples of what husbands do in consequence, firstly, in sharing work with their wives, and secondly, in their largely independent domain (领域,范围) of house repairing.
Some husbands, as well as doing much of the heavy work in the home, carrying the coals and emptying the rubbish, act as assistants to their wives for at least part of the day.Mr.Hammond washes up the dishes every night and lays the breakfast for the morning.Mr.Clark said that on Sunday mornings “I usually hover(徘徊;转悠) around for her while she does a bit of washing.” Mr.Davis polishes the floors and helps to make the beds at the weekends, and during the week takes the dog out for one of his twice-daily walks.So it goes on ....
36.“In the old days” means ()
A.in the winter
B.in the past
C.when you are old
D.yesterday
37.“The husband was the husband”means ()
A.there was a clear division of roles in the family
B.most couples were married
C.most men stayed at home
D.there were two husbands in one family
38.“In consequence” means ()
A.job by job
B.as a rule
C.as a res ult
D.at last
39.“Act as assistants to their wives”means ()
A.they read plays aloud
B.they are paid by their wives
C.they help their wives
D.they teach their wives
40.“To make the beds”means ()
A.to make the bedclothes tidy
B.to work in the bed
C.to produce beds out of wood, etc
D.to go to bed
第4题
Firstly, it has a country park. Four thousand years ago, this was an important fort. There are no historic remains here now, but there are wonderful views over the countryside. On sunny weekends you can often see kids out with their parents, kicking balls or flying kites.
There aren’t many job opportunities in Horton, and the roads to nearby cities aren’t really fast, but there are excellent rail links. You can be in London in an hour and a half, and other cities are less than an hour away. That means that parents can earn a good salary and still get home in time to spend the evenings with their families. Houses in Horton aren’t pretty, but they’re functional and cheap. The streets are quiet and safe, and there are plenty of parks and playgrounds. It has a library, three primary schools and a secondary school, St.Mark’s. It is friendly and offers a wide range of subjects and activities to children of all abilities and backgrounds. The town also has a swimming and a sports centre, and the community halls hold regular clubs and events for people of all ages.
C-21. What is the writer’s main purpose?
A、To explain what tourists can do in Horton.
B、To explain why Horton is a good place to live in.
C、To explain why Horton is not as pleasant as other towns.
D、To describe the history of Horton.
C-22.Which part of Horton does the writer find disappointing?
A、The shops.
B、Country park.
C、 Transport links.
D、The schools.
C-23. Which of the following is NOT the advantage of Horton?
A、Plenty of parks and playgrounds.
B、Historical buildings.
C、The quiet and safe streets.
D、Functional and cheap houses.
C-24. What advantages does Horton bring to workers?
A、There are plenty of jobs available in the town.
B、You can drive to nearby cities in a short time.
C、You can get to several cities quickly by train.
D、Working conditions are better here than in other towns.
第5题
It can be really frustrating (使人沮丧的) for an overweight person to go to a gym and work out with a positive attitude. All one has to do is walk by almost any nice gym and notice all the healthy, sweating, “skinny ” members. Sometimes they stare at those of us who are, well, zaftig . It is easy to see the judgment behind their eyes. Who wants to put up with that? Many people are self-conscious of their bodies and feel isolated when joining workout classes of while exercising, especially if they are larger than most of the others in the group. Now the fitness industry is finally paying attention. Popular gyms are catering (迎合) to overweight and weight conscious customers by dedicating areas where the “skinny ” people are not allowed. There are even gyms or programs that require members to be at least 50 pounds overweight to participate. Trainers recommend functional fitness as a practical goal, rather than six-pack abs(六块 腹肌). (79)They often use text messages to stay in touch with customers. Often at these specialized gyms, the trainers are overweight themselves, or working on their own weight goals, and this can help those people with anxiety caused by poor body image. The equipment has been designed for use by larger people. Wider seats, more cushioning, no mirrors, and tinted (有色的) windows for privacy, are all important changes. (80)Hopefully these types of gyms will successfully grow in numbers in the future. The idea is a very simple and potentially popular one. If it helps those of us who are bigger exercise more and improve our fitness level, it ’s a step in the right direction. The word zaftig in Paragraph 1 is closest in meaning to _______.
A.fat
B.healthy
C.friendly
D.polite
第6题
e summary of a research article?_______________
A.Feng and Wignell (2011) reviewed recent studies on advertising discourse which showed the trend of using different styles of discourse types and voices from all walks of life in advertisements.They also noted that Appraisal Theory had been used to analyze other semiotic modes beyond language, but most studies of voice limited their scope to voices from specific sources.They addressed the same issue of intertextual voices, but with new frameworks of Systemic Functional Multimodal Discourse Analysis, to better account for the features of advertising discourse including non-linguistic resources, and investigate how various voices engage with the product in the context of the advertisement (p.565).
B.Advertising discourse has attracted much attention from semioticians because it “tends to use a wide range of semiotic resources”.It is acknowledged that direct propaganda is less and less used in advertisements and advertisers deploy various strategies to enhance their persuasive power while trying to reduce the appearance of their commercial nature.As a result, advertisements have become a “parasite discourse”, or a “hybridized discourse”, drawing on styles from all kinds of discourse types (e.g.science, education, fine art) and voices from all walks of life (e.g.experts, celebrities, children) (Feng & Wignell, 2011: 565).
C.Recent research in Appraisal Theory has gone beyond language to include other semiotic modes (Chen and Qin, 2007; Economou, 2006; Martin, 2001).However, most studies of voice limit their scope to voices from specific sources.For example, Iedema et al.(1994) and Martin and White (2005) study multiple voicing in media discourse, identifying “reporter voice”, “correspondent voice” and “commentator voice” in different media genres; Coffin’s (2000) work reveals the voice options of “recorder”, “interpreter” and “adjudicator” in history discourse; Chen (2010) identifies character voice, editor voice and reader voice in EFL teaching materials.Martin and White (2005) use the termsvoiceandkeyinterchangeably but, in line with the studies just mentioned, as well as the original use of the term in Bakhtin (1981),voiceis used to refer to the resources of dialogic engagement (Feng & Wignell, 2011: 565).
D.Recent studies on advertising discourse showed the trend of using different styles of discourse types and voices from all walks of life in advertisements.Appraisal Theory has been used to analyze other semiotic modes beyond language, but most studies of voice limit their scope to voices from specific sources.The same issue of intertextual voices is addressed in this study, but with new frameworks of Systemic Functional Multimodal Discourse Analysis to better account for the features of advertising discourse including non-linguistic resources, and investigate how various voices engage with the product in the context of the advertisement (Feng & Wignell, 2011: 565).
第7题
阅读理解:根据文章内容,完成选择题。
It can be really frustrating (使人沮丧的) for an overweight person to go to a gym and work out with a positive attitude. All one has to do is walk by almost any nice gym and notice all the healthy, sweating, “skinny” members. Sometimes they stare at those of us who are, well, zaftig. It is easy to see the judgment behind their eyes. Who wants to put up with that?
Many people are self-conscious of their bodies and feel isolated when joining workout classes of while exercising, especially if they are larger than most of the others in the group. Now the fitness industry is finally paying attention. Popular gyms are catering (迎合) to overweight and weight conscious customers by dedicating areas where the “skinny” people are not allowed.
There are even gyms or programs that require members to be at least 50 pounds overweight to participate.
Trainers recommend functional fitness as a practical goal, rather than six-pack abs(六块腹肌). (79)They often use text messages to stay in touch with customers.
Often at these specialized gyms, the trainers are overweight themselves, or working on their own weight goals, and this can help those people with anxiety caused by poor body image. The equipment has been designed for use by larger people. Wider seats, more cushioning, no mirrors, and tinted (有色的) windows for privacy, are all important changes.
(80)Hopefully these types of gyms will successfully grow in numbers in the future. The idea is a very simple and potentially popular one. If it helps those of us who are bigger exercise more and improve our fitness level, it's a step in the right direction.
1. The word zaftig in Paragraph 1 is closest in meaning to {A; B; C}.
A. fat B. healthy C. friendly
2. We can infer from the first two paragraphs that {A; B; C}.
A. most large gym chains really don't want members to show up frequently
B. overweight people are often frustrated and pushed away by traditional gym industry
C. regular gyms don't accept overweight people to participate in their programs
3. What is the training goal in the gyms catering to overweight members?{A; B; C}
A. To achieve functional fitness.
B. To build six-pack abs.
C. To look like a fitness model.
4. As for the gyms catering to overweight members, which of the following statements is NOT TRUE?{A; B; C}
A. The machines are designed for larger people.
B. Tinted windows are used to ensure extra privacy.
C. There are large mirrors on the walls.
5. Which of the following is the best title for the passage?{A; B; C}
A. Improving Women's Self-confidence through Exercises.
B. The traditional Gym Industry Is Losing Its Customers.
C. Specialized Gyms Designed for Overweight People.
第8题
阅读以下说明和C代码,将应填入(n)处的字句写在对应栏内
【说明】
从文件IN.DAT中读取一篇英文文章存入到字符串数组XX中;请编写程序,其功能是:以行为单位把字符串中所有小写字母。左边的字符串内容移到该串的右边存放,然后把小写字母。删除,余下的字符串内容移到已处理字符串的左边存放。最后把已处理的字符串仍按行重新存入字符串数组XX中,最后调用函数WRITEDAT(),把结果XX输出到文件 OUT5.DAT中。
例如:原文:You can create an index on any field.
you have the correct record.
结果:n any field.Yu can create an index
rd. yu have the crreet res
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
【函数】
include "stdio.h"
include "string.h"
include "conio.h"
include "ctype.h"
include "mem.h"
unsigned char xx[50] [80]
int maxline=0;
int readdat(void);
void writedat(void)
/*将题目要求的字符串中所有小写字母o左边的字符串内容移到谊串的右边存放,即将串中“最后”一个字母o左右两侧的内容互换*/
void StrOR(void)
{
inti;
char*p1,* p2,t[80];
for(i=0;i<maxline;i++)
{ t[0]='/0';
p2=xx[i];
while(*p2) /*找到最后一个别'o'*/
{ if((1))p1=p2;
p2++;
}
strcat(t,p1+1);
*p1='\0';
strcat(t,xx[i]);
p1=xx[i];
p2=t;
while(*p2) /*删去字符'o'*/
{ if((2)) (3)=*p2;
p2++;
}
(4);
}
}
void main()
{
clrscr();
if(readdat())
{ printf("Can't open the file IN. DAT!\n");
return;
}
StrOR();
writedat();
}
int readdat(void)
{
FILE * fp;
int i=0;
char * p;
if((fp=fopen("in.dat","r" ))==NULL)
return 1;
while(fgets(xx[i],80, fp)!=NULL)
{ p=strchr(xx[i],'\n');
if(p)
*p=0;
i++;
}
maxline:(5);
fclose(fp);
return 0;
}
void writedat (void)
{ FILE * fp;
int i;
fp=fopen("in.dat',"w");
for(i=0;i<maxline;i++)
{ printf("%s\n",xx[i]);
fprintf(fp," %s\n",xx[i]);
}
fclose(fp);
}
}
}
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!