问题 单项选择题

下面程序的输出是 ______。main(){int x=3 ,y=6,a=0;, while(x++!=(y=1)) { a+=1; if(y<x) break; } printf("x=%d, y=%d, a=%d\n, x, y, a);}

A.x=4,y=4,a=1

B.x=5,y=5,a=1

C.x=5,y=4,a=3

D.x=5,y=4,a=1

答案

参考答案:D

解析:[评析] 注意的是x++中x值的引用时,这里应当是先引用,后自加,具体抽打过程如下:第一次while循环:条件为真,执行a=a+1=1此时,x的值已为4,判断y<x不成立,继续执行循环;第二次while循环:条件为假,此时x的值已为5,退出while循环,执行printf。

单项选择题
完形填空

第三节 完形填空(共20小题;每小题1.5分,满分30分)

阅读下面短文,从短文后各题所给的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项。

Laughter and tears are part of living. But do you find enough time for laughter? I am not asking if you  21  lost of good times.   22  we should laugh during the happy times. But do you also laugh during the  23  times?

Eram Bombeck is known for her humorous books, but she wrote one that  24  a more serious topic:  25 in children. Erma talks with many children with cancer and learns  26  life lessons from them. She learns, for instance, that cancer survivors know how to  27  .

She   28  the experience of 15-year-old Jessica from Burlinton. Jessica’s leg was cut off at the knee because of cancer. She was learning to  29  a prosthesis(假肢). Jessica tells about playing  30  . She kicked the ball  31 and it flew off in one  32  while her artificial leg flew into another. She fell on the  33  and laughed.

Jessica may not have laughed about her cancer, but she laughed about handling the  34  of it. And her laughter helped her a deal.

There is the story of 17-year-old Betsy. She   35  her way to the radiation room for her regular radiation therapy(化疗). As   36  , she dropped her hospital gown and, wearing only her birthday suit,  37 onto the table and waited. The extra people in the room were not the medical students she had thought, but   38 painters giving an estimate on painting! Betsy laughed heartily about the incident. And like Jessica, her  39  to laugh helped her to deal with one of the most difficult thing a young person can endure-cancer.

Do you find plenty of  40  for laughter? You can…if you also find reasons to laugh during the especially difficult times.

Survivors know how to laugh. If you can laugh even when the going is rough, you’ll make it. And you’ll smile at the end.

21.A.lose      B.miss         C.experience       D.laugh

22.A.Of course B.In addition       C.At first     D.First of all

23.A.ordinary   B.difficult       C.pleasant    D.usual

24.A.connected B.reported       C.referred    D.covered

25.A.cancer      B.disability     C.illness       D.laughter

26.A.serious     B.important     C.careful      D.thoughtful

27.A.cry       B.shout         C.laugh     D.face

28.A.describes  B.learns          C.keeps     D.imagines

29.A.put       B.have         C.wear     D.make

30.A.basketball B.badminton          C.volleyball D.soccer

31.A.gently      B.hard         C.slightly     D.Straightly

32.A.way     B.method        C.direction   D.point

33.A.floor     B.table         C.chair     D.bed

34.A.causes      B.results         C.process     D.ends

35.A.fought      B.took         C.made     D.pushed

36.A.common   B.often         C.before      D.usual

37.A.climbed    B.lay           C.jumped     D.sat

38.A.also      B.rather              C.already     D.almost

39.A.strengh     B.willingness       C.ability      D.confidence

40.A.times     B.places          C.days     D.Moments