问题 单项选择题

根据下面的定义,能打印出字母M的语句是( )。
struct person

char name[9];
int age;
;
struct person class[10]="John",17,"Paul",19,"Mary",18,"Adam",16;

A.printf("%c\n",class[3].name;

B.printf("%c\n",class[2].name[0]);

C.printf("%c\n",class[3].name[1]);

D.printf("%c\n",class[2].name[1]);

答案

参考答案:B

解析: 在结构体数组class[10]的初始化列表中只有第5个初始值中包含大写字母M,而该结构体只有两个成员变量,所以每两个初始值初始化一个数组元素,故第5个初始值是属于第3个数组元素class[2]的前一个成员变量的,选项A和C不正确。又因为‘M’是“Mary”的第一个元素,所以应该输出class[2]的name[0],B是正确答案。

阅读理解

I had just gone to bed after a very hard day when the phone rang. It was a strange farmer. I had never met him before although I had often heard people talk about him. He sounded quite nervous and he had been talking for a minute or so before I understood anything. Even then all I could make out was that someone called Milly had had a very bad accident. I really didn’t know who she was but I had to go.

It had been snowing heavily that day and I didn’t know the way. I had been driving for at least an hour when I finally found his place. He was standing there, waiting for me. It seemed that Milly had died. “She meant more to me than anyone even my own wife!” he said. I could see that he had been crying. I thought something terrible had taken place, a possible scandal(丑闻). I was even more surprised when he told me he had put her in the barn(厩). “I couldn’t leave her in the cold!” he said. Milly had clearly been a secret lover of his. I was about to tell him he could not expect me to cover anything up when he opened the barn door. He lifted his candle and I saw a dark figure on the ground.

“She was such a good cow! I wouldn’t let anyone except a doctor touch her!” he said and cried again.

60. The farmer wished that the writer might         .

A. look into the matter             B. bring Milly back to life

C. free him from a scandal          D. keep the whole thing a secret

61. The underlined phrase in the first paragraph means “       ”.

A. expect                               B. understand

C. see clearly                            D. hear clearly

62. Before he arrived at the farmer’s house, the writer expected to see Milly lying         .

A. on the ground of a barn          B. on the floor of a room

C. in bed in a room                D. in bed in a barn

63. What do we know about Milly for the story?

A. She had met with an accident.         B. She had caused a scandal.

C. She was seriously ill.            D. She was hidden somewhere.

64. The person who told the story is probably a        .

A. farmer                        B. policeman

C. country doctor                D. newspaper re5-6porter

单项选择题