问题 单项选择题

以下程序段中的变量已正确定义
for(=0;i<4;i++,i++)
for(k=1;k<3;k++);printf("*")
程序段的输出结果是______。
A) ******** B) **** C) ** D) *

答案

参考答案:D

解析:[评析] 本题考查的是for循环语句的使用以及分号“;”的使用,第一层for循环由于i两次自增运算故执行两次,每执行一次第一层for循环,第二条for循环语句执行三次,但由于语句后面加了分号,因此这一条空循环语句,结果当第一层的for语句执行完,跳出整个循环语句后,执行printf语句,因此执行一次printf语句,选项D是正确的。

阅读理解

阅读理解。

     When his young son was ill, Mr Wei took him to a clinic (诊所). They were the first of the day and did

not have to wait long. The nurse took the boy into the doctor's room while Mr Wei waited outside. After a

few minutes, the doctor came out of his room and spoke to the nurse.

     "Have we got a screwdriver (螺丝刀)?" he asked her. The nurse looked in a drawer (抽屉) and found a

screwdriver. She gave it to the doctor and he went back into his room.

     A few minutes later he came out again. "I need a saw (锯)," he said to the nurse this time. Again the nurse

looked in the drawer. She found a saw and gave it to the doctor. He went back into his room.

     A few minutes later the doctor came out of his room for the third time. "I'm going to need a hammer," he

said. For the third time the nurse looked in the drawer. Shp found a hammer and gave it to the doctor.

     This time, Mr. Wei could not keep quiet." Excuse me," he said:"but what is wrong with my son? And what

are you doing to him?"

     "I haven't examined him yet," the doctor said. "I'm still trying to get my hag open."

1. Mr. Wei's son was _____. [ ]

A. waiting in a queue

B. angry about his waiting

C. impatient (不耐烦) to get in to see the doctor

D. the first person to be seen by the doctor

2. The doctor came out to _____. [ ]

A. ask for some tools

B. shout at the nurse

C. look in the drawer

D. explain something to Mr. Wei

3. The underlined word "hammer" in the 4th paragraph means _____. [ ]

A. a kind of medicine

B. a piece of medical equipment

C. a kind of everyday tool

D. a piece of furniture

4. At last, Mr. Wei _____. [ ]

A. offered to help the doctor get his bag open

B. wanted to be there when his son was examined

C. was worried about his son

D. helped the nurse look for the hammer

5. Which would be the best title for this passage? [ ]

A. Mr. Wei and His Son

B. The Doctor's Job

C. The Right Tools for the Bag

D. A New Way to Treat Patients

判断题