文档库 最新最全的文档下载
当前位置:文档库 › 全国2010计算机等级考试三级C语言上机题81-100

全国2010计算机等级考试三级C语言上机题81-100

☆题目81

已知数据文件in.dat中存有300个四位数,并已调用读函数ReadDat()把这些数存入数组a中,请编制一函数jsValue(),其功能是:求出千位数上的数加百位数等于十位数上的数加个位数上的数的个数cnt,再求出所有满足此条件的四位数平均值pjz1,以及不满足此条件的四位数平均值pjz2,最后调用写函数writeDat()把结果输出到out.dat文件。

例如:7153,7+1=5+3,则该数满足条件计算平均值pjz1,且个数cnt=cnt+1。8129,8+1<>2+9,则该数不满足条件计算平均值pjz2。

部分源程序存在文件prog1.c中。

程序中已定义数组:a[300],已定义变量:cnt,pjz1,pjz2。

请勿改动主函数main()、读函数ReadDat()和写函数writeDat()的内容。

#include

int a[300],cnt=0;

double pjz1=0.0,pjz2=0.0;

js Value()

{int i,thou,hun,ten,data,n=0;

for(i=0;i<300;i++)

{thou=a[i]/1000; hun=a[i]%1000/100;

ten=a[i]%100/10; data=a[i]%10;

if(thou+hun==ten+data) {cnt++;pjz1+=a[i];}

else {n++;pjz2+=a[i];}

}

if(cnt==0) pjz1=0;

else pjz1/=cnt;

if(n==0) pjz2=0;

else pjz2/=n;

}

main()

{

int i;

readDat();

jsValue();

writeDat();

printf("cnt=%d\n满足条件的平均值pzj1=%7.2f\n不满足条件的平均值pzj2=%7.2f\n",cnt,pjz1,pjz2);

}

readDat()

{

FILE *fp;

int i;

fp=fopen("in.dat","r");

for(i=0;i<300;i++)fscanf(fp,"%d,",&a[i]);

fclose(fp);

}

writeDat()

{

FILE *fp;

int i;

fp=fopen("out.dat","w");

fprintf(fp,"%d\n%7.2f\n%7.2f\n",cnt,pjz1,pjz2);

fclose(fp);

}

********************************************************************* ***

★题目82

已知数据文件in.dat中存有300个四位数,并已调用读函数ReadDat()把这些数存入数组a中,请编制一函数jsValue(),其功能是:求出所有这些四位数是素数的个数cnt,再求出所有满足此条件的四位数平均值pjz1,以及不满足此条件的四位数平均值pjz2,最后调用写函数writeDat()把结果cnt,pjz1,pjz2输

出到out.dat文件。

例如:5591是素数,则该数满足条件计算平均值pjz1,且个数cnt=cnt+1。

9812是非素数,则该数不满足条件计算平均值pjz2。

部分源程序存在文件prog1.c中。

程序中已定义数组:a[300],已定义变量:cnt,pjz1,pjz2

请勿改动主函数main()、读函数ReadDat()和写函数writeDat()的内容。

#include

int a[300],cnt=0;

double pjz1=0.0,pjz2=0.0;

int isP(int m)

{int i;

for(i=2;i

if(m%i==0)return 0;

return 1;

}

jsValue()

{int i;

for(i=0;i<300;i++)

if(isP(a[i])) {pjz1+=a[i];cnt++;}

else pjz2+=a[i];

if(cnt==0) pjz1=0;

else pjz1/=cnt;

if(300-cnt==0) pjz2=0;

else pjz2/=(300-cnt);

}

main()

{

int i;

readDat();

jsValue();

writeDat();

printf("cnt=%d\n满足条件的平均值pzj1=%7.2f\n不满足条件的平均值pzj2=%7.2f\n",cnt,pjz1,pjz2);

}

readDat()

{

FILE *fp;

int i;

fp=fopen("in.dat","r");

for(i=0;i<300;i++)fscanf(fp,"%d",&a[i]);

fclose(fp);

}

writeDat()

{

FILE *fp;

in t i;

fp=fopen("out.dat","w");

fprintf(fp,"%d\n%7.2f\n%7.2f\n",cnt,pjz1,pjz2);

fclose(fp);

}

********************************************************************* **

☆题目83

请编制函数ReadDat()实现从文件IN.DAT中读取1000个十进制整数到数组xx中;请编制函数Compute()分别计算出xx中奇数的个数odd,奇数的平均值ave1,偶数的平均值ave2以及所有奇数的方差totfc的值,最后调用函数WriteDat()把结果输出到OUT.DAT文件中。

计算方差的公式如下:

N 2

totfc=1/N ∑ (xx[i]-ave1)

i=1

设N为奇数的个数,xx[i]为奇数,ave1为奇数的平均值。

原始数据文件存放的格式是:每行存放10个数,并用逗号隔开。(每个数均大于0且小于等于2000) 部分源程序存在文件prog1.c中。

请勿改动主函数main()和输出数据函数writeDat()的内容。

#include

#include

#include

#define MAX 1000

int xx[MAX],odd=0,even=0;

double ave1=0.0,ave2=0.0,totfc=0.0;

void WriteDat(void);

int ReadDa t(void)

{

int i;

FILE *fp;

if((fp=fopen("IN.DAT","r"))==NULL) return 1;

/*********编制函数ReadDat()的部分************/

for(i=0;i

{fscanf(fp,"%d,",&xx[i]);

if((i+1)%10==0)

fscanf(fp,"\n");

}

/*******************************************/

fclose(fp);

return 0;

}

void Co mpute(void)

{ int i,yy[MAX];

for(i=0;i

yy[i]=0;

for(i=0;i

if(xx[i]%2) { yy[odd++]=xx[i]; ave1+=xx[i];}

else { even++; ave2+=xx[i];}

if(odd==0) ave1=0;

else ave1/=odd;

if(even==0) ave2=0;

else ave2/=even;

fo r(i=0;i

totfc+=(yy[i]-ave1)*(yy[i]-ave1)/odd;

}

void main()

{

int i;

for(i=0;i

if(ReadDat()){

printf("数据文件IN.DAT不能打开!\007\n");

return;

}

Compute();

printf("ODD=%d\nAVE1=%f\nAVE2=%f\nTOTFC=%f\n",odd,ave1,ave2,totfc);

WriteDat();

}

void WriteDat(void)

{

FILE *fp;

int i;

fp=fopen("OUT.DAT","w");

fprintf(fp,"%d\n%f\n%f\n%f\n",odd,ave1,ave2,totfc);

fclose(fp);

}

********************************************************************* ****

☆题目84

现有一个10个人100行的选票数据文件IN.DAT,其数据存放的格式是每条记录的长度均为10位,第一位表示第一个人的选中情况,第二位表示第二个人的选中情况,依此类推:内容均为字符0和1,1表示此人被选中,0表示此人未被选中,若一张选票人数大于5个人时被认为无效的选票。给定函数ReadDat()的功能是把选票数据读入到字符串数组xx中。请编制函数CountRs()来统计每个人的选票数并把得票数依次存入yy[0]到yy[9]中。把结果yy输出到文件OUT.DAT中。

部分源程序存在文件prog1.c中。

请勿改动主函数main()、读数据函数ReadDat()和输出数据函数writeDat()的内容。

#include

char xx[100][11];

int yy[10];

int ReadDat(void);

void WriteDat(void);

void CountRs(void)

{ i nt i,j,count;

for(i=0;i<100;i++)

{ count=0;

for(j=0;j<10;j++)

if(xx[i][j]=="1") count++;

if(count>5) continue;

for(j=0;j<10;j++)

if(xx[i][j]=="1") yy[j]++;

}

}

void main()

{

int i;

for(i=0;i<10;i++)yy[i]=0;

if(ReadDat()){

printf("选票数据文件IN.DAT不能打开!\n\007"); return;

}

CountRs();

WriteDat();

}

int ReadDat(void)

{

FILE *fp;

int i;

if((fp=fopen("IN.DAT","r")) == NULL) return 1; for(i=0;i<100;i++){

if(fgets(xx[i],12,fp)==N ULL)return 1;

xx[i][10]="\0";

}

fclose(fp);

return 0;

}

void WriteDat(void)

{

int i;

fp=fopen("OUT.DAT","w");

for(i=0;i<10;i++){

fprintf(fp,"%d\n",yy[i]);

printf("第%d个人的选票数=%d\n",i+1,yy[i]);

}

fclo se(fp);

}

********************************************************************* *****

☆题目85

已知数据文件IN.DAT中存有200个四位数,并已调用读函数readDat()把这些数存入数组a中,请考生编制一函数jsVal(),其功能是:把一个四位数的个位数字上的值减去千位数字上的值再减去百位数字上的值最后减去十位数字上的值,如果得出的值大于等于零且原四位数是偶数,则统计出满足此条件的个数cnt并把这些四位数按从小到大的顺序存入数组b中,最后调用写函数writeDat( )把结果cnt以及数组b中符合条件的四位数输出到OUT.DAT文件中。

注意:部分源程序存在文件prog1.c中。

程序中已定义数组:a[200],b[200],已定义变量:cnt

请勿改动数据文件IN.DAT中的任何数据、主函数main()、读函数readDat()和写函数writeDat()的内容。

#include

#define MAX 200

int a[MAX], b[MAX], cnt = 0 ;

void jsVal()

{int i,j,thou,hun,ten,data;

for(i=0;i

{thou=a[i]/1000; hun=a[i]/100%10;

ten=a[i]%100/10; data=a[i]%10;

if(data-thou-hun-ten>=0&&a[i]%2==0) b[cnt++]=a[i];

}

for(i=0;i

for(j=i+1;j

if(b[i]>b[j]) {thou=b[i];b[i]=b[j];b[j]=thou;}

}

voi d readDat()

{

int i ;

fp = fopen("in.dat", "r") ;

for(i = 0 ; i < MAX ; i++) fscanf(fp, "%d", &a[i]) ;

fclose(fp) ;

}

void main()

{

int i ;

readDat() ;

jsVal() ;

printf("满足条件的数=%d\n", cnt) ;

for(i = 0 ; i < cnt ; i++) printf("%d ", b[i]) ;

printf("\n") ;

writeDat() ;

}

writeDat()

{

FILE *fp ;

int i ;

fp = fopen("out.dat", "w") ;

fprintf(fp, "%d\n", cnt) ;

for(i = 0 ; i < cnt ; i++) fprintf(fp, "%d\n", b[i]) ;

fclose(fp) ;

}

********************************************************************* *

题目86

已知数据文件IN.DAT中存有200个四位数,并已调用读函数readDat()把这些数存入数组a中,请考生编制一函数jsVal(),其功能是:把千位数字和十位数字重新组成一个新的十位数ab(新十位数的十位数字是原四位数的千位数字,新十位数的个位数字是原四位数的十位数字),以及把个位数字和百位数字组成另一个新的十位数cd(新十位数的十位数字是原四位数的个位数字,新十位数的个位数字是原四位数的百位数字),如果新组成的两个十位数ab>cd,ab必须是偶数且能被5整除,cd必须是奇数,同时两个新数的十位数字均不为零,则将满足此条件的四位数按从大到小的顺序存入数组b中,并要计算满足上述条件的四位数的个数cnt。最后main()函数调用写函数writeDat( )把结果cnt以及数组b中符合条件的四位数输出到OUT.DAT文件中。

注意:部分源程序存在文件prog1.c中。

程序中已定义数组:a[200],b[200],已定义变量:cnt

请勿改动数据文件IN.DAT中的任何数据、主函数main()、读函数readDat()和写函数writeDat()的内容。

#include

#define MAX 200

int a[MAX], b[MAX], cnt = 0 ;

void jsVal()

{int i,j,thou,hun,ten,data,ab,cd;

for(i=0;i

{thou=a[i]/1000; hun=a[i]%1000/100;

ten=a[i]%100/10; data=a[i]%10;

ab=10*thou+ten; cd=10*data+hun;

if((ab-cd)>0&&(ab%2!=1&&ab%5==0)&&cd%2==1&&ab>=10&&cd>=10) {b[cnt]=a[i];cnt++;}

}

for(i=0;i

for(j=i+1;j

if(b[i] }

void readDat()

{

int i ;

FILE *fp ;

fp = fopen("in.dat", "r") ;

for(i = 0 ; i < MAX ; i++) fscanf(fp, "%d", &a[i]) ;

fclose(fp) ;

}

void main()

{

int i ;

readDat() ;

jsVal() ;

printf("满足条件的数=%d\n", cnt) ;

for(i = 0 ; i < cnt ; i++) printf("%d ", b[i]) ;

printf("\n") ;

writeDat() ;

}

writeDat()

{

FILE *fp ;

int i ;

fp = fopen("out.dat", "w") ;

fprintf(fp, "%d\n", cnt) ;

for(i = 0 ; i < cnt ; i++) fprintf(fp, "%d\n", b[i]) ;

fclose(fp) ;

******************************************************************

☆题目87已知数据文件in.dat中存有300个四位数,并已调用读函数ReadDat()把这些数存入数组a中,请编制一函数jsValue(),其功能是:求出千位数上的数加个位数等于百位数上的数加十位数上的数的个数cnt,再求出所有满足此条件的四位数平均值pjz1,以及不满足此条件的四位数平均值pjz2,最后调用写函数把结果输出到out.dat文件。

例如:6712,6+2=7+1,则该数满足条件计算平均值pjz1,且个数cnt=cnt+1。8129,8+9<>1+2,则该数不满足条件计算平均值pjz2。

部分源程序存在文件prog1.c中。

程序中已定义数组:a[300],已定义变量:cnt,pjz1,pjz2。

请勿改动主函数main()、读函数ReadDat()和写函数writeDat()的内容。

#include

int a[300],cnt=0;

d oubl

e pjz1=0.0,pjz2=0.0;

jsValue()

{ int i,gw,sw,bw,qw,cn t2=0;

for(i=0;i<300;i++)

{gw=a[i]%10; sw=a[i]/10%10;

bw=a[i]/100%10; qw=a[i]/1000;

if((qw+gw)==(sw+bw)) { cnt++;pjz1+=a[i]; }

else { cnt2++;pjz2+=a[i]; }

}

if(cnt==0) pjz1=0;

else pjz1/=cnt;

if(cnt2==0) pjz2=0;

else pjz2/=cnt2;

}

main()

{

int i;

readDat();

jsValue();

writeDat();

printf("cnt=%d\n满足条件的平均值pzjl=%7.2f\n不满足条件的平均值pzj2=%7.2f\n",cnt,pjz1,pjz2);

}

readDat()

FILE *f p;

int i;

fp=fopen("in.dat","r");

for(i=0;i<300;i++)fsc anf(fp,"%d,",&a[i]);

fclose(fp);

}

writeDat()

{

FILE *fp;

int i;

fp=fopen("out.dat","w");

fprintf(fp,"%d\n%7.2f\n%7.2f\n",cnt,pjz1,pjz2);

fclose(fp);

}

****************************************************

题目88

函数ReadDat()实现从文件IN.DAT中读取一篇英文文章存入到字符串数组xx中,请编制函数SortCharA(),其函数的功能是:以行为单位对字符按从小到大的顺序进行排序,排序后的结果仍按行重新存入字符串数组xx中,最后调用函数writeDat()把结果xx输出到文件OUT1.DAT中。

例:原文:dAe,BfC.

CCbbAA

结果:,.ABCdef

AACC bb

原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。

部分源程序存在文件prog1.c中。

请勿改动主函数main()、读数据函数ReadDat()和输出数据函数writeDat()的内容。

#include

#include

#include

char xx[50][80];

int maxline=0;/*文章的总行数*/

int ReadDat(void);

void WriteDat(void);

v oid SortCharA(void)

{int i,j,k,strl;

char ch;

for(i=0;i

for(j=0;j

for(k=j+1;k

if(xx[i][j]>xx[i][k])

{ch=xx[i][j]; xx[i][j]=xx[i][k]; xx[i][k]=ch;} }

}

void main()

{

clrscr();

if(ReadDat()){

printf("数据文件IN.DAT不能打开!\n\007");

ret urn;

}

SortCharA();

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)!=NUL L){

p=strchr(xx[i],"\n");

if(p)*p=0;

i++;

}

maxlin e=i;

fclose(fp);

return 0;

}

void WriteDat(void)

{

FILE *fp;

int i;

clrscr();

fp=fopen("OUT1.DAT","w");

for(i=0;i

fpri ntf(fp,"%s\n",xx[i]);

}

fclose(fp);

}

题目89

已知数据文件IN.DAT中存有200个四位数,并已调用读函数readDat()把这些数存入数组a中,请考生编制一函数jsVal(),其功能是:把一个四位数的千位数字上的值加上个位数字上的值恰好等于百位数字上的值加上十位数字上的值,并且原四位数是奇数,则统计出满足此条件的个数cnt并把这些四位数按从小到大的顺序存入数组b中,最后调用写函数writeDat( )把结果cnt以及数组b中符合条件的四位数输出到OUT.DAT文件中。

注意:部分源程序存在文件prog1.c中。

程序中已定义数组:a[200],b[200],已定义变量:cnt

请勿改动数据文件IN.DAT中的任何数据、主函数main()、读函数readDat()和写函数writeDat()的内容。

#include

#define MAX 200

int a[MAX], b[MAX], cnt = 0 ;

void jsVal()

{

int i,j,gw,sw,bw,qw;

for(i=0;i

{gw=a[i]%10; sw=a[i]/10%10;

bw=a[i]/100%10; qw=a[i]/1000;

if((qw+gw)==(sw+bw)&&a[i]%2) b[cnt++]=a[i];

}

for(i=0;i

for(j=i+1;j

if(b[i]>b[j]) { qw=b[i]; b[i]=b[j]; b[j]=qw;}

}

void readDat()

{

int i ;

FILE *fp ;

fp = fopen("in.dat", "r") ;

for(i = 0 ; i < MAX ; i++) fscanf(fp, "%d", &a[i]) ;

fclose(fp) ;

}

void main()

int i ;

readDat() ;

jsVal() ;

printf("满足条件的数=%d\n", cnt) ;

for(i = 0 ; i < cnt ; i++) printf("%d ", b[i]) ;

printf("\n") ;

writeDat() ;

}

writeDat()

{

FILE *fp ;

int i ;

fp = fopen("out.dat", "w") ;

fprintf(fp, "%d\n", cnt) ;

for(i = 0 ; i < cnt ; i++) fprintf(fp, "%d\n", b[i]) ;

fclose(fp) ;

}

********************************************************************* ****

★题目90 下列程序的功能是:将一正整数序列{K1,K2,...,K9}重新排列成一个新的序列。新序列中,比K1小的数都在K1的前面(左面),比K1大的数都在K1的后面(右面)。要求编写函数jsValue()实现此功能,最后调用writeDat()函数将新序列输出到文件out.dat中。

说明:在程序中已给出了10个序列,每个序列有9个正整数,并存入数组a[10][9]中,分别求出这10个新序列。

例:序列{6,8,9,1,2,5,4,7,3}

经重排后成为{3,4,5,2,1,6,8,9,7}

部分源程序存在文件prog1.c中。

请勿改动主函数main()和写函数writeDat()的内容。

#include

jsValue(int a[10][9])

{ int i,j,k,val,num;

for(i=0;i<10;i++)

{ val=a[i][0];

for(j=0;j<9;j++)

if(a[i][j]

{ num=a[i][j];

for(k=j;k>0;k--)

a[i][k]=a[i][k-1];

a[i][0]=num;

}

}

main()

{

int a[10][9]={{6,8,9,1,2,5,4,7,3}, {3,5,8,9,1,2,6,4,7},

{8,2,1,9,3,5,4,6,7},

{3,5,1,2,9,8,6,7,4},

{4,7,8,9,1,2,5,3,6},

{4,7,3,5,1,2,6,8,9},

{9,1,3,5,8,6,2,4,7},

{2,6,1,9,8,3,5,7,4},

{5,3,7,9,1,8,2,6,4},

{7,1,3,2,5,8,9,4,6},

};

int i,j;

jsValue(a);

for(i=0;i<10;i++){

for(j=0;j<9;j++) {

printf("%d",a[i][j]);

if(j<=7)printf(",");

}

printf("\n");

}

writeDat(a);

}

writeDat(int a[10][9])

{

FILE *fp;

int i,j;

fp=fopen("out.dat","w");

for(i=0;i<10;i++){

for(j=0;j<9;j++){

printf("%d",a[i][j]);

fprintf(fp,"%d",a[i][j]);

if(j<=7) fprintf(fp,",");

}

printf("\n");

fprintf(fp,"\n");

}

fclose(fp);

91

请编制程序prog1.c,从文件in.dat中读取200个整数至数组xx中,求出奇数的个数cnt1和偶数的个数cnt2以及数组xx下标为偶数的元素值的算术平均值pj(保留2位小数)。

结果cnt1,cnt2,pj输出到out.dat中。

部分程序、读数据函数read_dat(int xx[200])及输出格式已给出。

#include

#include

#define N 200

void read_dat(int xx[N])

{

int i,j;

FILE *fp;

fp=fopen("in.dat","r");

for(i=0;i<20;i++){

for(j=0;j<10;j++){

fscanf(fp,"%d,",&xx[i*10+j]);

printf("%d ",xx[i*10+j]);

}

printf("\n");

}

fclose(fp);

}

void main()

{

int i,j,sum;

int cnt1,cnt2,xx[N];

float pj;

FILE *fw;

clrscr();

fw=fopen("out.dat","w");

read_dat(xx);

/**********************/

sum=0; pj=0.0; cnt1=cnt2=0;

for(i=0;i

{ if(xx[i]%2) cnt1++;

else cnt2++;

if(i%2==0) {pj+=xx[i];sum++;}

}

pj/=sum;

/***********************/

printf("\n\ncnt1=%d,cnt2=%d,pj=%6.2f\n",cnt1,cnt2,pj);

fprintf(fw,"%d\n%d\n%6.2f\n",cnt1,cnt2,pj);

fclose(fw);

}

********************************************************************* **********

☆题目92

请编制程序prog1.c,从文件IN.DAT中读取200个整数至数组xx中,求出最大数max及最大数的个数cnt和数组xx中能被3整除或能被7整除的算术平均值pj(保留2位小数)。

结果max,cnt,pj输出到OUT.DAT中。

部分程序、读数据函数read_dat(int xx[200])及输出格式已给出。

#include

#include

#define N 200

void read_dat(int xx[N])

{

int i,j;

FILE *fp;

fp=fopen("in.dat","r");

for(i=0;i<20;i++){

for(j=0;j<10;j++){

fscanf(fp,"%d,",&xx[i*10+j]);

printf("%d",xx[i*10+j]);

}

printf("\n");

}

fclose(fp);

}

void main()

{

int m,temp,n,sum;

int cnt,xx[N],max ;

float pj;

FILE *fw;

clrscr();

fw=fopen("out.dat","w");

read_dat(xx);

/*********************/

cnt=0; max=xx[0]; pj=0.0; n=0;

for(m=0;m

if(ma x for(m=0;m

{if(xx[m]==max) cnt++;

i f(xx[m]%3==0||xx[m]%7==0)

{ pj+=xx[m]; n++; }

}

pj/=n;

/*********************/

printf("\n\nmax=%d,cnt=%d,pj=%6.2f\n",max,cnt,pj);

fprintf(fw,"%d\n%d\n%6.2f\n",max,cnt,pj);

fclose(fw);

}

********************************************************************* ********

☆题目93

请编制函数ReadDat()实现从文件IN.DAT中读取1000个十进制整数到数组xx中;请编制函数Compute(),分别计算出xx中奇数的个数odd,偶数的个数even,平均值aver以及方差totfc的值,最后调用函数WriteDat()把结果输出到OUT.DAT文件中。

计算方差的公式如下:

N 2

totfc=1/N ∑ (xx[i]-aver)

i=1

原始数据文件存放的格式是:每行存放10个数,并用逗号隔开。(每个数均大于0且小于等于2000) 部分源程序存在文件prog1.c中。

请勿改动主函数main()和输出数据函数writeDat()的内容。

#include

#include

#include

#define MAX 1000

int xx[MAX],odd=0,even=0;

double aver=0.0,totfc=0.0;

void WriteDat(void);

int ReadDat(vo id)

{

int i;

if((fp=fopen("IN.DAT","r"))==NULL) return 1;

/***************编制函数ReadDat()*****************/

for(i=0;i

{ fscanf(fp,"%d,",&xx[i]);

if((i+1)%10==0)

fscanf(fp,"\n");

}

/*********************************************/

fclose(fp);

ret urn 0;

}

void Compute(void)

{ int i;

for(i=0;i

{ if(xx[i]%2) odd++;

else even++;

aver+=xx[i];

}

aver/=MAX;

for(i=0;i

totfc+=(xx[i]-aver)*(xx[i]-aver);

totfc/=M AX;

}

void main()

{

int i;

for(i=0;i

if(ReadDat()){

printf("数据文件IN.DAT不能打开!\007\n");

return;

}

Compute();

printf("ODD=%d\nOVEN=%d\nAVER=%f\nTOTFC=%f\n",odd,even,aver,totfc); WriteDat();

}

void WriteDat(void)

{

int i;

fp=fopen("OUT.DAT","w");

fprintf(fp,"%d\n%d\n%f\n%f\n",odd,even,aver,totfc);

fclose(fp);

}

********************************************************************* **********

题目94

请编制程序prog1.c,从文件in.dat中读取200个整数至数组xx中,求出奇数的个数cnt1和偶数的个数cnt2以及数组xx中值为偶数的算术平均值pj(保留2位小数)。

结果cnt1,cnt2,pj输出到out.dat中。

部分程序、读数据函数read_dat(int xx[200])及输出格式已给出。

#include

#include

#define N 200

void read_dat(int xx[N])

{

int i,j;

FILE *fp;

fp=fopen("in.da t","r");

for(i=0;i<20;i++){

for(j=0;j<10;j++){

fscanf(fp,"%d,",&xx[i*10+j]);

printf("%d ",xx[i*10+j]);

}

printf("\n");

}

fclose(fp);

}

void main()

{

int m,sum;

int cnt1,cnt2,xx[N];

float pj;

FILE *fw;

全国英语等级考试一级模拟试题

全国英语等级考试(一级)模拟试题 听力(略)第一部分 英语知识运用第二部分 单项填空第一节 并在阅读下面的句子和对话,从三个选项中选出一个能填入空白处的最佳选项,答题卡将该项涂黑。26. He is badly ill. We must _____ a doctor at once. C. send away B. send for A. send to . last year27. The hospital _______ C. has been built B. was built A. built into the classroom, the teacher _____something on the blackboard. came28. When I C. wrote A. is writing B. was writing 29. --How long have you been ill? -- C. Once a week A. Since last week B. A week ago 30. Everybody is here _____Mike. C. except B. and A .not understand the passage ___ there are a few new words in it. 31. We don'tC. because B. unless A. and 32. The TV set is very nice. How long have you _______it? C. taken B. had A. bought 33. --- Shall I get one more apple for you, Dad? ve had enough. '---Thanks, but you _______. It C. needn' A. may not B. must not 34. --- _________is your shirt? --- It is 100yuan. C. How long B. How much A. How many 35. He is _______kind an old man that all the children like him. C. such B. so A. very this 36. Either Jim or Sam ______going to help the farmers with the orange harvest afternoon. C. is B. were A. was . 37. We have studied for two hours. Let's stop A. have a rest B. to have a rest C. having a rest 38. We won't go to Great Wall if it ________tomorrow.

2010_信息C语言期终考试试题(重修)_上机题

2010-2011学年第一学期《程序设计语言C》上机考试A卷 授课班号年级专业学号姓名 (本试卷上机时间为70分钟)(13份) 一、改错题(20分) 【程序功能】 分别找出三位数和四位数中的所有Armstrong数并输出。 Armstrong数是指一个n位数的各位数字的n次方之和等于该数。例如:153=13+53+33;1634=14+64+34+44。因此,153是3位Armstrong数,1634是4位Armstrong数。 【正确的运行结果】 K=7 153 370 371 407 1634 8208 9474 【含有错误的源程序】 #include int arms(int a[]); void main() { int i,k,a[20]; k=arms(a); printf("k=%d\n",k); for(i=0;i=100&&h<=999) { while(m>0) { s=s+pow((m%10),3); m=m/10; } if(s=h) { a[k]=h; k++; } } else

{ while(m>0) { s=s+pow((m%10),4); m=m/10; } if(s==h) { a[k]=h; k++; } } } return k; } 【要求】 1. 将源程序录入文件myf1.c,改正程序中的错误。 2. 改错时,可以修改语句中的一部分内容,调整语句的顺序,除了允许增加变量说明 语句、函数说明语句或编译预处理命令外,不允许增加或删除任何语句。 3. 将改正后的程序存入myf1.c文件中,供阅卷用。 二、编程题(20分) 【程序功能】从一个整形数组中删除所有不是素数的那些整数.。 【编程要求】 1.编写函数int shushu(int x),计算x是否素数,若是素数则返回1,否则返回0; 2.编写函数int del(int r[], int n), 删除所有不是素数的那些整数,函数返回r数组中剩余素 数的个数。 3.编写main函数,声明数组a并用测试数据初始化,调用del函数处理数组a中的数据, 将a数组中剩余的素数输出到屏幕及文件myf2.out中,最后将你本人的学号和姓名保存到文件myf2.out中。 【测试数据与运行结果】 数组初始数据为:16 25 19 11 23 24 34 31 35 60 输出:16 25 24 34 35 60 我的学号姓名: XXXXXXXX 【要求】 1.源程序文件名必须取为myf 2.c,输出结果文件名为myf2.out。 2.数据文件的打开、使用、关闭均用C语言标准库缓冲文件系统的文件操作函数实现。 3.源程序文件和运行结果文件均需保存,供阅卷使用。 4.不要复制其他扩展名的文件。

全国英语等级考试二级模拟试题

全国英语等级考试二级模拟试题(二) 第一部分听力理解(略) 第二部分英语知识运用 第一节单项填空 1.He is ______ a writer. A. failure as B. a failure as C. the failure for D. a failure with 2.– can you come on Monday or Tuesday? – I'm afraid ______ day is possible. A. either B. neither C. any D. some 3.Dr. Black comes from either Oxford or Cambridge. I can't remember ______. A. where B. there C. which D. what 4.In the centuries _____, Egypt became one of the most advanced civilizations on earth. A. followed B. tat was followed C. which was following D. which followed 5.To enter his house is like ______ a small museum. A. to enter B. entering C. entered D. enter 6.The local government cut down their costs ______ 30 percent. A. at B. by C. for D. with 7.I'm reading his ______ novel. A. best-selling B. best-sold C. best-sale D. best-sell 8.It's rude of you to shout _______ the room. A. beyond B. through C. across D. over 9.People are more likely to stay _______ 30 miles of _______ they were born. A. in … where B. at … what C. within … what D. within … where 10.After searching for half an hour, she realized that her glasses ______ on the table all the time. A. were lain B. had been lain C. have been lying D. had been lying 11.Facts show that as many as 50 percent of patients do not take drugs ______ directed. A . like B. as C. which D. so 12.I walked too much yesterday and ______ are still aching now. A. my leg muscles B. my muscles of leg C. my leg's muscles D. my muscles of the leg 13.He will have ______ 30 by the end of this year. A. turned B. become C. got D. taken 14.Macao ______ its return to China in December, 1999. A. watched B. found C. saw D. noticed 15.This hotel _______ $60 for a single room with bath. A. charges B. demands C. prices D. claims 第二节完形填空 My father waved me goodbye and the bus (16)_____. My first country journey then began. The man sitting next to me was a road engineer. He said that (17)_____ by bus was an excellent way to (18)_____ road for him. We passed many villages on the way and stopped once (19)_____ to buy cold drinks, (20)_____ it was very hot. The countryside was brown and dry and there were long (21)_____ with no people or villages in (22)_____. We also stopped once at

2010c语言期末考试试题参考

2.一个 C 程序的执行是从() (A) 本程序的main函数开始倒main函数结束 (B) 本程序文件的第一个函数开始,到本程序文件的最后一个函数结束 (C) 本程序的main函数开始倒本程序文件的最后一个函数结束 (D) 本程序文件的第一个函数开始,到本程序main函数结束 3. C语言中的标识符只能由字母、数字和下划线三种字符组成,且第一个字符()。 A) 必须为字母B)必须为下划线C必须为字母或下划线 D)可以是字母、数字和下划线中任一种字符 4?设有定义:intm=1,n=-1;则执行语句printf("%d\n",(m--&++n);后的输出结果是(A)-B)0C)1D)2 5. 表达式11&10 的结果用二进制表示为()。 A)11B)3C)1D)10 6?设有语句inta=3则执行语句a+=a-=a*a后,变量a的值是()。 (A)3(B)0(C)9(D)-12 7. 在下列选项中,不的赋值语句是()。 A)t/=5;B)n1=(n2=(n3=0));C)k=i==j;D)a=b+c=1; 8. 下列()表达式不满足:当x 的值为偶数时值为"真",为奇数时值"假"。 A)X%2==0B)!x%2!=0 C)(x/2*2-x)==0D)!(x%2) 9?若有定义:int a=8, b= 5, c;执行语句c=a/b+0.4后c的值为() A) 1.4B)1C)2.0D)2

10. 假设a=3,b=4,c=5则逻辑表达式: !(a+b)+c-1&&b+c/2 的值是()。 A)trueB)falseC)0D)1 11. 若inta=3,b=4则执行c=a++>2||b-->=4之后,b变量的值为()。 A)3B)0C)4D)2 12. 以下哪个表达式的值为4() A)B)11.C)(flaot)D)(int)(11.+0.5) 13. 若变量a,i 已经正确定义,且i 已经正确赋值,合法的语句是() A) a==1B) ++iC)a=a++=5D)a=i (nti) )。14.以下程序的输出结果是() int a=1234; printf ("%2d",a); A) 12B) 34C)1234D提示错误,无结果 15. 设x,y分别为单精度和双精度类型变量,则下列选项()可将表达式的运 x+y 算结果强制转换为整型数据。 A)(int)x+yB)int(x)+yC)int(x+y)D)(int)(x+y) 16. 当a=3,b=2,c=1时,表达式f=a>b>c执行完后f的值是() A)1B)0C)3D)2 17. 若x=2,y=1,则表达式x>y?1:1.5的值为() A)1B)1.5C)1.0D)2 18. 在位运算中,操作数每左移一位,其结果相当于() A)操作数乘以2B)操作数除以2C操作数乘以4D)操作数除以4 19. 在位运算中,某操作数右移3位,其结果相当于()

全国英语等级考试一级模拟试题

全国英语等级考试(一级)模拟试题 第一节单项填空 阅读下面的句子和对话,从三个选项中选出一个能填入空白处的最佳选项,并在答题卡将该项涂黑。 26. He is badly ill. We must _____ a doctor at once. A. send to B. send for . C. send away 27. The hospital _______last year. A. built B. was built C. has been built 28. When I came into the classroom, the teacher _____something on the blackboard. A. is writing B. was writing C. wrote 29. --How long have you been ill? A. Since last week B. A week ago C. Once a week 30. Everybody is here _____Mike. A .not B. and C. except 31. We don’t understand the passage ___ there are a few .new words in it. A. and B. unless C. because 32. The TV set is very nice. How long have you _______it? A. bought B. had C. taken 33. --- Shall I get one more apple for you, Dad? ---Thanks, but you _______. I’ve had enough. A. may not B. must not C. needn’t 34. --- _________is your shirt? --- It is 100yuan. A. How many B. How much C. How long 35. He is _______kind an old man that all the children like him. A. very B. so C. such 36. Either Jim or Sam ______going to help the farmers with the orange harvest this afternoon. A. was B. were C. is 37. We have studied for two hours. Let’s stop. A. have a rest B. to have a rest C. having a rest 38. We won’t go to Great Wall if it ________tomorrow.

武汉纺织大学10年C语言试题

武汉纺织大学 C语言程序设计 √√一二三 请注意: ①答案一律写在答题纸上,写在试卷上无效 ②答题纸要写上学号、班级、姓名 ③交卷时,试卷和答题纸一起提交 一.选择题:(单选, 每题2分, 共40分) 1.以下叙述不正确的是(D ) A)一个C源程序可由一个或多个函数组成。 B) C语言程序的基本组成单位是函数。 C)一个C语言程序必须包含一个main函数。 D) C语言程序经过编译后生成的文件名的后缀为 .exe。 2,一个C程序的执行是从(C )。 A) 本程序的main函数开始,到本程序文件的最后一个函数结束。 B)本程序文件的第一个函数开始,到本程序文件的最后一个函数结束。 C)本程序的main函数开始,到main函数结束。 D)本程序文件的第一个函数开始,到本程序main函数结束。 1.在C语言提供的不合法的关键字是:(A) A)swicth B)INT C)case D)default 2.在C语言中,合法的字符常量是(B) A)’\084’B) ’ab’C) ’\x43’D)″b″ 3.若int a;则表达式“(a=2*5,a*2),a+6”的值是:(26)AD什么是一样? A)20 B)6 C)16 D)20 4.假设x和y都是double数据,则表达式x=1,y=x+7/2的值是:(A)

5.若有语句scanf("%d%d",&a,&b),要使变量a、b分别得23、45,则正确的输入形 式为: (C ) A) 23;45 B) 23,45 C) 23 45 D) 2345 6.已知程序段: int x; f1oat y; scanf("%3d%f",&x,&y); 若从第一列开始输入数据98765 321(回车),则x 的值为: (A ) A)98765 B)987 C) 65 D) 745 7.以下叙述正确的是( D ) A) 在C程序中,语句之间必须要用分号“,”分隔。 B)若a是实型变量,C程序中允许赋值a =10;因此,实型变量中允许存放整型数。 C)在C程序中,无论是整数还是实数,都能准确无误地表示。 D)在C程序中,%是只能用于整型运算的运算符。 8.若有以下定义和语句 char c1='b' ,c2='f'; printf("%d ,%c\n" ,c2-c1 ,c2-'a'+'A'); 则输出结果是:( B ) A)3 ,G B)4 ,F C)5 ,F D)输出结果不确定 12. 能正确表示x的取值在[-1,60]之间的C语言表达式是(C ) A)60≥x≥-1 B)x>=-1 || x<=60 C) x>=-1 && x<=60 D) 60>=x>=-1 13. 下面程序段的输出结果是:( A) short int i=32769; printf("%d\n",i); A)32769 B)-32767 C)32767 D)输出不是确定的数

全国英语等级考试第三级试卷考题1.doc

全国英语等级考试 第三级 二O一一年九月 Section I Listening Comprehension Directions: This section is designed to test your ability to understand spoken English . You wi 11 hear a selection of recorded materials and you must ansiver the questions that accompany them . There are two parts in this section , Part A and PartB . remember , whi Je you are doing the test , you should first put down your answer in your test booklet. At the end of the listening comprehension section , you will have 3 mintues to transfer all your answers from your test booklet to ANSWER SHEET 1 . If you havc any questions , you may raise your hand now as you will not be allowed to speak once the test has started . Now look at Part A in your test booklet . Part A Directions: You will hear 10 short dialogues. For each dialogue, there is one question and four possible answers. Choose the cor rec t answer 一A, B, C, or D, and mark i t in your test booklet . you will have 15 seconds to answer the question and you will hear each dialogue only once . 1.What are the speakers talking about ? [A]A Movie. [B]A review . [c] A TV program. [D] A football game . 2.what are the man and the woman going to do on Saturday ? [A]Learn to drive . [B]Go to a march. [C]Pick up a friend . [D]Buy tickets for a game . 3.Why does the man choose to go by air ? [A]Trains are too full . [B]Buses take a long time . [c] It costs less in summer . [D] It fits his schedule well . 4.What do we learn about the woman according to the dialogue ? [A]She was cheated . [B]She bought a ring .

2010年c语言试卷

2010 试题一、单选题(每小题2分,共20分) 1. 表达式(4>3>2) 的值为_______. A.0 B.1 C.2 D.表达式错误 2. 下面哪个表达式符合C语言语法_______. A.0.5%2 B.3&(0.5+0.5) C.4.6<<2 D.2==(3/2) 3. 若有定义:int a[2][3]; 以下选项中能对a数组元素正确引用的是 _______. A.a[2][!1] B.a[2][3] C.a[0][3] D.a[1>2][ !1] 4. 以下程序段完全正确的是_______. A.int *p; scanf("%d", &p); B.int *p; scanf(“%d”, p); C.int k, *p=&k; scanf ("%d", p); D.int k, *p; *p= &k; scanf (“%d”, p); 5. 有定义语句:int *p[4];以下选项中与此语句等价的是_______. A.int p[4]; B.int **p; C.int * (p[ 4 ]); D.int (*p)[ 4 ]; 6. 若要定义一个具有4个元素的整型数组,以下错误的定义语句是 A.int a[4]={0}; B.int b[]={0, 0, 0, 0}; C.int c[1+3]; D.int i=4, d[ i ]; 7. 若有定义:static int a[3][4]= {0}; 则下面正确的叙述是_______. 《程序设计基础及实验》课程期末考试试卷, 2011年1月19日 1 / 10

A. 只有元素a[0][0]可得到初值0 B. 此说明语句不正确 C. 数组a中各元素都可得到初值,但其值不一定为0 D. 数组a中每个元素均可得到初值0 8. 对于以下变量定义,正确的赋值是_______. int *p[3], a[3]; A.p=a B.p=&a[0] C.*p=a D.p[0]=*a 9. 结构和变量定义如下,则对于“*p->str++”表达式语句,下面叙述正确的 是_______. struct { int no; char *str;} a={1,”abc”}, *p=&a; A.* 作用在指针p上和B.++ 作用在指针str上 C.++ 作用在str所指的内容 D.表达式语句有错 上 10. 对于下面变量定义,赋值使用方法不正确的是_____。 struct Student { long num; char name[20]; } st1, st2={101,”Tom”}, *p=&st1; A.st1=st2 B.p->name=https://www.wendangku.net/doc/582347961.html, C.p->num=st2.num D.*p=st2 试题二、填空题(每小题2分,共30分) 1. 下面程序段的输出结果是_______. 《程序设计基础及实验》课程期末考试试卷, 2011年1月19日 2 / 10

全国英语等级考试模拟试题

全国英语等级考试(一级)模拟试题 第一部分听力(略) 第二部分英语知识运用 第一节单项填空 阅读下面的句子和对话,从三个选项中选出一个能填入空白处的最佳选项,并在答题卡将该项涂黑。 26. He is badly ill. We must ___B__ a doctor at once. A. send to B. send for C. send away 27. The hospital ____C___ last year. A. built B. was built C. has been built 28. When I came into the classroom, the teacher ___B__something on the blackboard. A. is writing B. was writing C. wrote 29. --How long have you been ill -- A A. Since last week B. A week ago C. Once a week 30. Everybody is here __C___Mike. A .not B. and C. except 31. We don’t understand the passage __C_ there are a few new words in it. A. and B. unless C. because 32. The TV set is very nice. How long have you ___C____it A. bought B. had C. taken 33. --- Shall I get one more apple for you, Dad ---Thanks, but you ___C____. I’ve had enough. A. may not B. must not C. needn’t 34. --- ____B_____is your shirt --- It is 100yuan. A. How many B. How much C. How long 35. He is ___C____kind an old man that all the children like him. A. very B. so C. such 36. Either Jim or Sam __A____going to help the farmers with the orange harvest this afternoon. A. was B. were C. is 37. We have studied for two hours. Let’s stop _______B__________. A. have a rest B. to have a rest C. having a rest 38. We won’t go to Great Wall if it ___B_____tomorrow. A. rains B. rain C. will rain 39. No book and no pen__A____in the bag. A. is B. are C. has 40. Please give me ___C___. A. two cups of milks B. two cup of milk C. two cups of milk 第二节完形填空 阅读下面短文,从短文后所给的三个选项中选出能填入相应空白处的最佳选项,并在答题卡1上将该项涂黑。 It’s fine spring weather now. The trees and fields are___C__. The farmers are busy ___B__in the fields. The birds are singing happily in the forest and the__C__ are coming out. The sun is shining warmly and __C__ is a warm wind. Some little boys are flying kites in the fields. They like the wind

湖北师范学院2010年专升本《C语言程序设计》试卷

湖北师范学院2010年“专升本”招生考试 《C语言程序设计》试题 一、选择题(本题共20小题,每题2分,共40分) 1.以下不合法的用户标识符是()。A)S2_KEY B)Int C) 4s D)_char 2.设有 int x=11; 则表达式 (++x)%3 的值是()。A)0 B)1 C)2 D)3 3.C语言源程序名的后缀是()。 A).exe B).cp C).obj D).c 4.若在定义语句:int a,b,c,*p=&c;之后,接着执行以下选项中的语句,则能正确执行的语句是()。 A)scanf("%d",a,b,c); B)scanf("%d%d%d",a,b,c); C)scanf("%d",p); D)scanf("%d",&p); 5.C语言中运算对象必须是整型的运算符是()。 A) %= B)/C) =D) 〈= 6.若有定义语句:int a[3][6]; ,按在内存中的存放顺序,a数组的第10个元素是()。A)a[0][4] B)a[0][3] C)a[1][4] D)a[1][3] 7.若要求定义具有10个int型元素的一维数组a,则以下定义语句中错误的是 A)#define N 10 Int a[N]B)#define n 5 Int a[2*n]C)int a[5+5]D)int n=10,a[n] 8.语句printf("a\bre\'hi\'y\\\bou\n");的输出结果是()。(说明:'\b'是退格符) A)re'hi'you B)abre'hi'y\bou C)a\bre\'hi\'y\bou D)a\bre\'hi\'y\\\bou 9.下列程序执行后的输出结果是()。 A)A B) B C) F D) G void main() { int x='f'; printf("%c \n",'A'+(x-'a'+1)); } 10.若变量已正确定义,有以下程序段

全国英语等级考试(PETS)三级模拟试题

全国英语等级考试(PETS)三级模拟试题 Section I Listening Comprehension(25 minutes) (略) Section ⅡUse of English(15 minutes) Directions: Read the following text. Choose the best word or phrase for each numbered blank and mark A, B,C, or Don your ANSWER SHEET 1. Text Most young people enjoy physical activities, walking, cycling, football, or mountaineering. These who have a passion 26 climbing high and difficult mountains are often 27 with astonishment. Why are men and women 28 to suffer cold and hardship, and to 29 on high mountains? This astonishment is caused, probably, by the difference between mountaineering and other forms of activities 30 which men give their leisure. There are no man-made rules, as there are for 31 as golf and football. There are, of course, rules of different kinds which it would be dangerous to 32 , but it is this freedom from man-made rules 33 makes mountaineering attractive to many people. Those who climb mountains are free to their own 34 . If we 35 mountaineering with other more familiar sports, we might think that one big difference is 36 mountaineering is not a “team work”. However, it is only our misunderstanding. There are, in fact, no :matches”37 “teams”of climbers, but when climbers are on a rock face linked by a rope on which their lives may 38 , obviously, there is teamwork. A mountain climber knows that he may have to fight with natural 39 that ate stronger and more powerful than man. His sport requires high mental and 40 qualities. A mountain climber 41 to improve on skill year after year. A skier is probably past his best by the age of thirty, and most international tennis champions 42 in their early twenties. But it is not 43 for men of fifty or sixty to climb the highest mountains in the Alps. They may take more 44 than younger men, but they probably climb more skill and less 45 of effort, and they certainly experience equal enjoyment.

2010级C语言期末考试试卷(A卷)

桂林电子科技大学信息科技学院试卷 2010-2011 学年第 2 学期课号I04BT014 课程名称C语言程序设计(A卷;、闭卷)适用班级(或年级、专业)10级、全院 一单项选择题(每题2分,共40分) 1 以下叙述正确的是。 A C程序基本组成单位是语句 B 简单C语句必须以分号作为结束符 C C程序每一行只能写一个语句 D 注释语句可以嵌套 2 设a和b均为int型变量,则执行以下语句后的输出为。 int a=20; int b=3; printf("%d\n",a+=(b%=2)); A 0 B 20 C 21 D 22 3 设int型占2个字节,且int i=-2;,则语句printf("%u",i);的输出结果为。 A -2 B -32768 C 65535 D 65534 4 以下程序运行后的输出结果是。 main() { double d=3.2; int x,y; x=1.2; y=(x+3.8)/5.0; printf("%d\n",d*y); } A 0 B 3 C 3.07 D 3.2 5 以下程序运行后的输出结果是。 main() { int a=2,b=-1,c=2; if(a6) { n--; printf("%d",n); } } A 987 B 9876 C 8765 D 876

void main() { int x=15,y=21,z=0; switch (x/8) { case 2: z=z+1;break; case 1: z=z+1; switch (y/21) { default : z=z+1; case 0: z=z+1;break; } } printf("%d\n",z); } A 4 B 3 C 2 D 1 8 以下程序的输出结果是。 main() { int i=0,a=0; while(i<20) { for(; ;) if((i%10)==0) break; else i--; i+=11; a+=i; } printf("%d\n",a); } A 11 B 21 C 32 D 33 9 以下程序执行后的输出结果是。 main() { int x=1,y=1; while(y<=5) { if(x>=10) break; if(x%2==0) { x+=5; continue; } x-=3; y++; } printf("%d,%d",x,y); } A 6,6 B 7,6 C 10,3 D 7,3

(完整版)全国英语等级考试一级真题

第二节完形填空 阅读下面短文,从短文后所给的[A]、[B]、[C]三个选项中选择能填入相应空白处的最佳选项,并在答题卡1上将该项涂黑。 It (Example:0) 8 o’clock 41,and the last bus42at the second bus stop.A middle aged woman got out,and the conductor was going to ring the bell for43to start the bus again,just at that moment he saw a small child44at the bus stop. “What’s wrong with you?” the bus conductor said to the boy. “Well,my mother gave me ten pence to go home by bus after school,but I45the money after I finished playing football with my classmates,” the child answered, “so I have to walk all the way home.” “That’s OK.” said the conductor. “Come on.We’ll take you home.” The child thanked him,46the bus and sat down near the door.The conductor rang the bell,then the bus started. “How47are you living?” asked the conducto r. The child told him the name of the place where he lived.It was about two miles away,and48would have cost him two pence if the child had had the money to pay for it. The conductor went to give some other people on the bus their tickets,and when he came back a few minutes49,he saw that child crying again. “And what’s the matter with you now?” he asked. “Aren’t you on your way home?” “Yes,I am,” answered the child, “but what about my change?You haven’t given it to me,have you?You should give me50.” 例: 0.[A]is[B]are[C]was 答案:[C]41.[A]in the morning[B]in the afternoon[C]at noon 42.[A]just had left[B]have just left[C]has just stopped 43.[A]the driver[B]the conductor[C]the old woman 44.[A]to cry[B]crying [C]to be crying 45.[A]had forgot[B]has dropped[C]lost 46.[A]got on[B]got up[C]getting on 47.[A]long[B]far[C]soon 48.[A]the seat[B]the chair[C]the ticket 49.[A]later[B]late[C]after 50.[A]ten pence[B]eight pence[C]two pence 第三部分阅读理解 第一节词语配伍从右栏所给选项中选出与左栏各项意义相符的选项,并在答题卡1上将该项涂黑。 例: 0. They guard the exits. 答案:[E]51.People cook food here.[A]shop

相关文档
相关文档 最新文档