问题 单项选择题

下面程序的运行结果为
#include<iostream.h>
void swap(int &a, int b)

int temp;
temp=a++;
a=b;
b=temp;

void main( )
int a=2,b=3;
swap(a, b) ;
cout < < a < <"," < < b < < endl;

A) 2,3 B) 3,2 C) 2,2 D) 3,3

答案

参考答案:D

解析: 本题考查的是引用调用,因为函数swap引用调用参数a,所以在swap函数中a的变化会改变主函数中a的值,即a自加1,但b的值并未改变。

完形填空
When Joe was about to start school, all signs pointed to success. Yet things turned out to be quite 36 . The fourth grade even found him at the 37  of the class. Joe struggled day and night, but it did not 38  —until one stormy afternoon.
On that afternoon,   39 the math teacher started to introduce difficult concepts, dark clouds
covered the sky, and the storm set in. Hard though she tried to make the kid,   40 , the thunder won the battle for their attention. No one  41 the concepts. Except for Joe. He understood them and answered all the questions correctly. The teacher patted him on the back, and told him to go around to the others and explain how he had managed it.   42 by his newfound success, Joe moved quickly throughout the room. Soon math time was followed by the time for 43 . All children naturally drew 44 pictures on such a day. Except for Joe.
Since then, Joe started 45 . Though he never made it to the top, his math teacher was always 46 and curious about the change: Why had that stormy day changed Joe?
On the day Joe graduated, he presented the teacher with his most 47  possession—the picture of a bright yellow sun. On the picture Joe had written: This is the day I  48 my brightness.
小题1:
A.unfairB.boringC.disappointingD.dangerous
小题2:
A.centerB.topC.beginningD.bottom
小题3:
A.happenB.workC.finishD.last
小题4:
A.untilB.sinceC.becauseD.as
小题5:
A.concentrateB.changeC.hideD.sit
小题6:
A.challengedB.graspedC.doubtedD.admitted
小题7:
A.RelievedB.SurprisedC.EncouragedD.Puzzled
小题8:
A.classB.sportsC.artD.tea
小题9:
A.greatB.darkC.differentD.strange
小题10:
A.improvingB.paintingC.recoveringD.studying
小题11:
A.worriedB.amazedC.friendlyD.cautious
小题12:
A.familiarB.expensiveC.admirableD.precious
小题13:
A.woke up toB.put up withC.got on withD.looked down upon
单项选择题