问题 选择题

Books of this kind  ______  well.

A.sells

B.are sold

C. sell

D. is sold

答案

C

题目分析:考查主谓一致和主动表被动:Books of this kind中心词是books,谓语是单数, sell well主动表示物品的属性,特点,主动表被动,句意:这种书卖得好。

点评:主谓一致特别注意相似易混的考点,如:this kind of books中心词是kind,谓语是单数,和Books of this kind是不一样的。还有主动表被动的形式,如:The pen writes well。这支笔好写。

单项选择题
问答题

函数ReadDat()的功能是实现从文件ENG51.IN中读取一篇英文文章,并存入到字符串数组xx中;请编制函数encryptChar(),按给定的替代关系对数组XX中的所有字符进行替代,结果仍存人数组xx的对应的位置上,最后调用函数WriteDat()把结果XX输出到文件PS51.DAT中。
替代关系:f(P)=P*11 mod 256(P是数组xx中某一个字符的ASCⅡ值,f(P)是计算后新字符的ASCⅡ值),如果计算后f(P)的值小于等于32或f(P)对应的字符是数字0至9,则该字符不变,否则将f(P)所对应的字符进行替代。
注意:部分源程序已给出。
原始数据文件存放的格式是:每行的宽度均小于80个字符。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
[试题程序]
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>
unsigned char xx[50][80];
int maxline=0;/*文章的总行数*/
int ReadDat(void);
void WriteDat(void);
void encryptchar()


voidmain()

system("CLS");
if(ReadDat())

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

encryptchar();
WriteDat();

int ReadDat(void)

FILE*fp;
int i=0;
unsigned char * p;
if((fp=fopen("ENG51.IN","r"))==NULL)
return 1;
while(fgets(xx[i],80,fp)!=NULL)

P=strchr(XX[i],’in’);
if(P)*P=0;
i++;

maxline=i;
fclose(fp);
return 0;

void WriteDat(void)

FILE*fp;
int i;
fp=fopen("PS51.DAT","W");
for(i=0;i<maxline;i++)

printf("%s\n",xx[i]);
fprintf(fp,"%s\n",xx[i]);

fclose(fp);