[公共英语三级真题]英语三级真题

来源:试卷考卷 时间:2018-06-07 10:00:04 阅读:

【www.bbjkw.net--试卷考卷】

英语三级真题篇(一):计算机网络三级上机考试题及答案

  考生们在备考计算机三级数据库技术阶段,需通过大量试题练习,加深对考点的理解和掌握,以下是小编搜索整理的计算机网络三级上机考试题及答案,供参考练习,希望对大家有所帮助!
  【题目】1:下列程序的功能是:将大于整数m且紧靠m的k个素数存入数组xx。请编写函数num(int m,int k,int xx[])实现函数的要求 ,最后调用函数readwriteDAT()把结果输出到文件out.dat中。
  例如:若输入17,5,则应输出:19,23,29,31,37。
  注意:部分源程序已给出。
  请勿改动主函数main()和函数readwriteDAT()的内容。
  --------------
  类型:素数。
  void num(int m,int k,int xx[])
  {int data=m+1;
  int half,n=0,I;
  while(1)
  {half=data/2;for(I=2;I<=half;I++)
  if(data%I==0)break;
  if(I>half)
  {xx[n]=data;n++;}
  if(n>=k)break;
  data++;
  } }
  【题目】2:已知数据文件IN.DAT中存有200个四位数, 并已调用读函数readDat()把这些数存入数组a中,请考生编制一函数jsVal(),其功能是: 如果四位数各位上的数字均是0或2或4或6或8, 则统计出满足此条件的个数cnt, 并把这些四位数按从大到小的顺序存入数组b中。最后main()函数调用写函数writeDat( )把结果cnt以及数组b中符合条件的四位数输出到OUT.DAT文件中。
  注意: 部分源程序存在文件PROG1.C文件中。
  程序中已定义数组: a[200], b[200], 已定义变量: cnt
  请勿改动数据文件IN.DAT中的任何数据、主函数main()、读函数readDat()和写函数writeDat()的内容。
  -------------------------
  void jsVal()
  {int bb[4];
  int I,j,k,flag;
  for (I=0;I<200;I++)
  {bb[0]=a[I]/1000; bb[1]=a[I]00/100;
  bb[2]=a[I]0/10; bb[3]=a[I];
  for (j=0;j<4;j++)
  {if (bb[j]%2==0)
  flag=1;
  else
  {flag=0;break;}
  }
  if (flag==1)
  { b[cnt]=a[I];
  cnt++;} }
  for(I=0;I
  for(j=I+1;j
  if (b[I]
  {k=b[I];b[I]=b[j];b[j]=k;}
  }
  【题目】3:函数READDAT()实现从文件IN.DAT中读取一篇英文文章存入到字符串数组XX中;请编制函数STROR(),其函数功能是:以行为单位把字符串中的所有小写字母O左边的字符串内容移到该串的右边存放,然后并把小写字母O删除,余下的字符串内容移到已处理字符串的左边存放.最后把已处理的字符串仍按行重新存入字符串数组XX中,最后调用函数WRITEDAT()把结果XX输出到文件OUT.DAT中.
  例如:原文:You can create an index on any field.
  you have the correct record.
  结果: n any field.You can create an index
  rd.yu have the crrect rec
  原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格.
  -------------------
  类型:字符串(单词)的倒置和删除。
  答案:
  void StrOR(void)
  {int I,j,k,index,strl;
  char ch;
  for(I=0;I
  {strl=strlen(xx[I]);
  index=strl;
  for(j=0;j
  if(xx[I][j]=="o")
  {for(k=j;k
  xx[I][k]=xx[I][k+1];
  xx[I][strl-1]= " ";
  index=j;}
  for(j=strl-1;j>=index;j--)
  {ch=xx[I][strl-1];
  for(k=strl-1;k>0;k--)
  xx[I][k]=xx[I][k-1];
  xx[I][0]=ch;}
  }
  }
  【题目】4:函数ReadDat( )实现从文件IN.DAT中读取一篇英文文章存入到字符串数组xx中; 请编制函数StrOL( ), 其函数的功能是: 以行为单位对行中以空格或标点符号为分隔的所有单词进行倒排,同时去
  除标点符号,之后把已处理的字符串(应不含标点符号)仍按行重新存入字符串数组xx中。最后main()函数调用函数WriteDat()把结果xx输出到文件OUT6.DAT中。
  例如: 原文: You He Me
  I am a student.
  结果: Me He You
  student a am I
  原始数据文件存放的格式是: 每行的宽度均小于80个字符, 含标点符号和空格。
  -----------------
  类型:字符串(单词)的倒置和删除。
  答案:
  void StrOL(void)
  {int I,j,k,strl,l;char c;
  for(I=0;I
  for(j=0;j
  {c=xx[I][j];
  if ((c>="A"&&c<="Z")||(c>="a"&&c<="z")||c==" ") ;
  else xx[I][j]=" "; }
  for(l=0;l
  {char ch[80]={0}; char pp[80]={0};
  strl=strlen(xx[l]);
  I=strl-1; k=1;
  while(1)
  {while (((xx[l][I]>="a"&&xx[l][I]<="z")||(xx[l][I]>="A"&&xx[l][I]<="z"))&&I>=0)
  {for(j=k;j>=0;j--)
  pp[j+1]=pp[j]; pp[0]=xx[l][I]; k++;I--; }
  strcat(ch,pp);strcpy(pp, """");k=1;
  if(I==-1)break;
  while((xx[l][I]<"A"||xx[l][I]>"z")&&I>=0)
  {for(j=k;j>=0;j--)
  pp[j+1]=pp[j]; pp[0]=xx[l][I]; k++; I--;}
  strcat(ch,pp); strcpy(pp,"""");
  k=0;
  if(I==-1)break;}
  strcpy(xx[l],ch);
  }}
  【题目】5:在文件in.dat中有200个正整数,且每个数均在1000至9999之间。函数ReadDat()读取这200个数存放到数组aa中。请编制函数jsSort(),其函数的功能是:要求按每个数的后三位的大小进行升序排列,然后取出满足此条件的前10个数依次存入数组b中,如果后三位的数值相等,则按原先的数值进行降序排列。最后调用函数WriteDat()把结果bb输出到文件out.dat中。
  例:处理前 6012 5099 9012 7025 8088
  处理后 9012 6012 7025 8088 5099
  注意:部分源程序已给出。
  请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
  --------------------
  void jsSort()
  {int I,j,data;
  for(I=0;I<199;I++)
  for(j=I+1;j<200;j++)
  {if (aa[I]00>aa[j]00)
  {data=aa[I];aa[I]=aa[j];aa[j]=data;}
  else if(aa[I]00==aa[j]00)
  if(aa[I]
  {data=aa[I];aa[I]=aa[j];aa[j]=data;}
  }
  for(I=0;I<10;I++)
  bb[I]=aa[I];
  }
  【题目】6:在文件in.dat中有200个正整数,且每个数均在1000至9999之间。函数ReadDat()读取这200个数存放到数组aa中。请编制函数jsSort(),其函数的功能是:要求按每个数的后三位的大小进行降序排列,然后取出满足此条件的前10个数依次存入数组b中,如果后三位的数值相等,则按原先的数值进行升序排列。最后调用函数WriteDat()把结果bb输出到文件out.dat中。
  例:处理前 9012 5099 6012 7025 8088
  处理后 5099 8088 7025 6012 9012
  注意:部分源程序已给出。
  请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
  --------------------
  void jsSort()
  {int I,j,data;
  for(I=0;I<199;I++)
  for(j=I+1;j<200;j++)
  {if (aa[I]00
  {data=aa[I];aa[I]=aa[j];aa[j]=data;}
  else if(aa[I]00==aa[j]00)
  if(aa[I]>aa[j])
  {data=aa[I];aa[I]=aa[j];aa[j]=data;}
  }
  for(I=0;I<10;I++)
  bb[I]=aa[I];
  }
  【题目】7:已知在文件IN.DAT中存有100个产品销售记录,每个产品销售记录由产品代码dm(字符型4位),产品名称mc(字符型10位),单价dj(整型),数量sl(整型),金额je(长整型)四部分组成。其中:金额=单价*数量计算得出。函数ReadDat()是读取这100个销售记录并存入结构数组sell中。请编制函数SortDat(),其功能要求:按产品代码从大到小进行排列,若产品代码相同,则按金额从大到小进行排列,最终排列结果仍存入结构数组sell中,最后调用函数WriteDat()把结果输出到文件OUT10.DAT中。
  注意: 部分源程序存放在PROG1.C中。
  请勿改动主函数main( )、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
  ----------------------------------
  void SortDat()
  {int I,j;
  PRO xy;
  for(I=0;I<99;I++)
  for(j=I+1;j<100;j++)
  if(strcmp(sell[I].dm,sell[j].dm)<0)
  {xy=sell[I];sell[I]=sell[j];sell[j]=xy;}
  else if(strcmp(sell[I].dm,sell[j].dm)==0)
  if(sell[I].je
  {xy=sell[I]; sell[I]=sell[j]; sell[j]=xy;}
  }
  【题目】8:函数ReadDat()实现从文件ENG.IN中读取一篇英文文章,存入到字符串数组xx中;请编制函数encryptChar(),按给定的替代关系对数组xx中的所有字符进行替代,仍存入数组xx的对应的位置上,最后调用函数WriteDat()把结果xx输出到文件PS1.DAT中。
  替代关系:f(p)=p*11 mod 256 (p是数组中某一个字符的ASCII值,f(p)是计算后新字符的ASCII值),如果计算后f(p)值小于等于32或大于130,则该字符不变,否则将f(p)所对应的字符进行替代。
  注意:部分源程序已给出。原始数据文件存放的格式是:每行的宽度均小于80个字符。
  请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
  ------------------------------
  void encryptChar()
  {int I;
  char *pf;
  for(I=0;I
  {pf=xx[I];
  while(*pf!=0)
  {if(*pf*11%6>130||*pf*11%6<=32);
  else
  *pf=*pf*11%6;
  pf++; }
  }
  }
  【题目】9:函数ReadDat( )实现从文件IN.DAT中读取一篇英文文章存入到字符串数组xx中; 请编制函数SortCharD( ), 其函数的功能是: 以行为单位对字符按从大到小的顺序进行排序, 排序后的结果仍按行重新存入字符串数组xx中。最后main()函数调用函数WriteDat()把结果xx输出到文件OUT2.DAT中。
  例: 原文: dAe,BfC.
  CCbbAA
  结果: fedCBA.,
  bbCCAA
  原始数据文件存放的格式是: 每行的宽度均小于80个字符, 含标点符号和空格。
  注意: 部分源程序存放在PROG1.C中。
  请勿改动主函数main( )、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
  -----------------
  类型:字符串(单词)的倒置和删除。
  答案:
  void SortCharD(void)
  {int I,j,k,strl;
  char ch;
  for(I=0;I
  {strl=strlen(xx[I]);

英语三级真题篇(二):小学三年级英语测试题【参考】

  小学三年级英语测试题【1】
  一、 选择最佳答案,把其编号填在括号内。(4分)
  ( )1、Is this a pen ?
  A Yes , it is 。 B 。 No, it isn‘t 。
  ( )2、Where is the rubber?
  A It’s on the box. B It‘s in the box.
  ( )3、How are you ?
  A How are you 。 B Fine, thank you.
  ( )4、 Is this a rubber?
  A、yes 。 B、No.
  二、 用适当的词填空。(10分)
  1、This is _______(I ,my) brother.
  2、最新的小学三年级下册英语期末试题:How ______( is ,are) you?
  3、My ______(name ,name’s) Zhu Xiaoqing.
  4、_________( What, What‘s) your name,please?
  5、Nice to meet _______( you, your)。
  三、 把下列单词翻译成英语:40‘
  1.将来 2.作家 3.电影明星 4.足球队员
  5.警察局 6.警察 7.宇航员 8.(打)电话
  9.圆的 10.护士 11.医生 12.可能
  13.教师 14.公共汽车司机 15.火车司机
  16.出租车司机 17.太空船 18.月亮
  19.河流 20.安静的
  四、 选词填空:30’
  ( ) 1.What will you _____? I‘ll be a writer. A. are B. do C. be
  ( ) 2. ______ I’ll be a policeman. A. Maybe B. About C.When
  ( ) 3. What _____ you be? A. will B. are C. do
  ( ) 4.Xiaoyong ________to fly. A. want B.wanting C.wants
  ( ) 5.But he won‘t _____a plane. A. fly B.on C.do
  ( ) 6.I will be a _____. I like books. A. writer B.teacher C.spaceship
  ( ) 7.He’ll be ____ astronaut? A. a B. an C. do
  ( ) 8.There _____ a phone. A. isn‘t B. are C. be
  ( ) 9.Tomorrow I _____ go to school. A. don’t B. won‘t C. am
  ( ) 10. You are ______ the park. A. go to B. will go to C. going to
  小学三年级英语测试题【2】
  第一部分 听力(30分)
  一.听音,选择听到的单词(10点)
  ()1.A.use B.make C.feed D.jump
  ()2.A.chopsticks B.chip C.idea D.row
  ()3.A.people B.lovely C.shorts D.winner
  ()4.A.hard B.easy C.worry D.naughty
  ()5.A.hamburger B.instead C.see D.biscuit
  二.听力,选择听到的句子(10点)
  ( )1.A.Do you use chopsticks in England?
  B.Do you use chopsticks in China?
  ( )2.A.We are making a cake.
  B. We are making a cake for you, Mum.
  ( )3.A.These ducks are very naughty.
  B. These ducks are coming now.
  ( )4.A.Can you run fast?
  B. Can you jump far?
  ( )5.A.Can I have an ice cream?
  B. Can I have a drink?
  三.听音选词,先画圈,后填空(10点)
  1.Noodles are __________ fast food. (Chinese,English)
  2.I can ________ fast. (run, jump)
  3.Please look at these__________.(duck, ducks)
  4.This is ____________ sweater. (Sam’s, Sam)
  5.But you can _________ these biscuits.(have, has)
  第二部分 笔试(70分)
  四.找出类别与众不同的单词(10点)
  ( )1.A.dumplings B.hamburger C.noodles D.spider
  ( )2.A.dragon B.boat C.car D.ship
  ( )3.A.knife B.chopsticks C.fork D.rice
  ( )4.A.watching B.kite C.swimmingD.riding
  ( )5.A.play B.fast C.sing D.dance
  五.单项选择 (20点)
  ( )1. Do you use chopsticks________ England?
  A. in B. on C. to D. of
  ( )2. These ducks __________ very naughty.
  A. is B. am C. are D. be
  ( )3. Can I have __________ ice cream?
  A. a B. an C. the D./
  ( )4. English people use a knife ______- fork.
  A. but B .and C. too D./
  ( )5. Please ________ quiet! Your mum is sleeping.
  A. is B. am C. are D.be
  ( )6. A: What are you doing?
  B: We are making _________ cake.
  A. a B. an C. the D. /
  ( )7. My father is listening ________ music.
  A. of B. to C.on D. in
  ( )8. This is _________ sweater.
  A.Sam B.sam C.. Sam’s D.sam’s
  ( )9. It s easy _______ English people to use a fork.
  A. for B. of C. in D.to
  ( )10. I _______ eating a hamburger.
  A. is B. am C are D. be
  六.翻译下面的词组(10点)
  .1. fastfood_____________
  2.Goodidea! ______________
  3.getout _______________
  4.jumpfar______________
  5.Don tworry!_____________
  七.将A组与B组的内容适当搭配(15点)
  A B
  ( )1. This bird can A. swim.
  ( )2.This duck can B. play football.
  ( )3. This dog can C. dance.
  ( )4. This boy can D. fly.
  ( )5. This girl can E. run.
  八. 阅读短文,判断正( T )误( F)(15点)
  This is Amy s family.Amy is doing her homework.Her mother is making a cake.Her father is making a plane.Her grandma is watching TV.Her grandpa is listening to music.The dog is running after the cat.
  ( ) 1. Amy is sleeping in bed.
  ( ) 2. Her mother is watching TV.
  ( ) 3. Her father is making a plane.
  ( ) 4. Her grandma is watching TV.
  ( ) 5. The cat is running.

英语三级真题篇(三):高考英语试题及参考答案

  第一节 (共5小题;每小题1.5分,满分7.5分)
  听下面5段对话。每段对话后有一个小题,从题中所给的A、B、C三个选项中选出最佳选项,并标在试卷的相应位置。听完每段对话后,你都有10秒钟的时间来回答有关小题和阅读下一小题。每段对话仅读一遍。
  例:What is the man going to read?
  A.A newspaper。 B.A magazine。 C.A book。
  答案是A
  1.When will the film start?
  A.At 5:00。 B.At 6:00。 C.At 7:00。
  2.Which club will the man join?
  A.The film club。 B.The travel club。 C.The sports club。
  3.What was the weather like in the mountains yesterday?
  A.Sunny。 B.Windy。 C.Snowy。
  4.What does the man want to cut out of paper?
  A.A fish。 B.A bird。 C.A monkey。
  5.Where does the conversation most probably take place?
  A.In a library。 B.At a bookstore。 C.In a museum。
  第二节 (共15小题;每小题1.5分,满分22.5分)
  听下面5段对话或独白。每段对话或独白后有几个小题,从题中所给的A、B、C三个选项中选出最佳选项,并标在试卷的相应位置。听每段对话或独白前,你将有时间阅读各个小题,每小题5秒钟;听完后,各小题将给出5秒钟的作答时间。每段对话或独白读两遍。
  听第6短材料,回答第6至7题。
  6.Why does the woman make the call?
  A.To make an invitation。
  B.To ask for information。
  C.To discuss a holiday plan 。
  7.How much does the woman need to pay for the minibus?
  A。$50。 B。$150。 C。$350。
  听第7段材料,回答第8至9题。
  8.What are the two sperkers mainly talking about?
  A.Electronic waste。 B.Soil pollution。 C.Recyling benefits。
  9.What does the woman decide to do with her cell hpone in the end?
  A.Throw it away。 B.Keep it at home。 C.Sell it to be recycled。
  听第8段材料,回答第10至12题。
  10.What is the possible relationship between the sperkers?
  A.Friends。 B.Wife and husband。 C.Business partners。
  11.Where does the woman work now?
  A.In a school。 B.In a restaurant。 C.In a travel agency。
  12.What are the two sperkers going to do?
  A.To take a trip。 B.To have a coffee。 C.To attend a meeting。
  听第9段材料,回答第13至15题。
  13.What has been improved according to the speaker?
  A.The train station。 B.The bus service。 C.The parking lot。
  14.How does the speaker get to her office today?
  A.By bus and on foot。 B.By train and by bus。 C.By train and on foot。
  15.Who is the speaker?
  A.A reporter。
  B.A policeman。
  C.A photographer。
  第三节(共5小题;每小题1.5分,共7.5分)
  听下面一段对话,完成16至20五道小题,每小题仅填一个词。听对话前,你将有20秒钟的时间阅读试题,听完后你将有60秒钟的作答时间。这段对话你将听两遍。
  第二部分:知识运用(共两节,45 分)
  第一节 单项填空(共 15 小题;每小题 1 分,共 15 分)
  从每题所给的 A、B、C、D 四个选项中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。
  21。 Samuel, the tallest boy in our class, ______ easily reach the books on the top shelf。
  A。 must B。 should C。 can D。 need
  22。

本文来源:https://www.bbjkw.net/fanwen89056/

推荐访问:公共英语三级真题
扩展阅读文章
热门阅读文章