问题 填空题

以下程序的输出结果是______。
main( )
int y=9;
for(;y>0;y--)
if(y%3==0)
printf("%d",--y);continue;

答案

参考答案:852

解析: 循环前,变量y的值为9,其中,循环语句在y大于。情况下循环,每次循环后y的值都减1。循环体是当y能被3整除时输出表达式--y,输出的是减1后的y值。这样,第一次循环因y为9,能被3整除,输出8,y也变成8。又经两次循环,y的值变为6,又让y减1变成5,并输出5;又经两次循环,y的值变成3,让y减1变成2,输出2;再经两次循环后,y的值变成0,结束循环,所以程序输出852。

完形填空
The young boy and his father sat quietly watching the snow fall on a snowy Saturday afternoon.
“Dad, my friend told me that every snowflake is  36   . But they look all the same to me. How can we tell?” the child asked.
Dad felt it was his  37 to give a more satisfying answer. “Son, snowflakes are like people. We are each   38 in a very special way. We can test it right now,” he said.
The child stood up, put out his hands, and  39 as snowflakes landed on his gloves. “These snowflakes are all different on my gloves, but those in the yard look the same. Together they are even more_ 40 and striking. Then if people are like snowflakes, why don't they    41 ?”
“Choice,”Dad said. "Their choices  42  them what they are.”
 43  choice is a bad thing?” the boy asked.
“Oh, no. Only when we choose the 44 things.”
“How do we tell right from wrong?" the child asked.
Dad was given the chance to build upon the foundation of his son's  45  . He reached down and began to  46  with the snow. He  47  the snow into two sides, three large snowballs on one side and several smaller ones on the other.
“Which side did the right thing?” he asked the boy.
The child looked at both sides but 48   answer. Then Dad placed the three larger snowballs on top of each other.
“It’ s a snowman! The side 49  made me snowman!” the boy replied with  50
Yes, all these people came together and recognized how special each of them was, so they joined in a(n) 51   to build up mankind,” Dad said.                    
The child then stood up and  52 an arm full of the smaller snowballs. One by one he began to throw them at the other small piles of snow. He said,”This is what happens when people can't work together. They have a(n)  53  .”
Dad was shocked. He stood up, lifted the boy and  54 him tightly, whispering to him, “I hope that your world will learn to work and live together. I hope you will make the right   55 
and learn to build the best snowman ever.”
小题1:
A.similar B.differentC.freezing D.special
小题2:
A.challengeB.troubleC.responsibilityD.position
小题3:
A.private B.associatedC.uniqueD.isolated
小题4:
A.inspectedB.watchedC.glancedD.glared
小题5:
A.beautifulB.effectiveC.comfortableD.significant
小题6:
A.get alongB.take careC.cheer up D.break up
小题7:
A.remainB.appearC.becomeD.make
小题8:
A.ThoughB.HoweverC.SoD.While
小题9:
A.exactB.coincidentC.fortunateD.wrong
小题10:
A.interestB.concernC.worryD.faith
小题11:
A.communicateB.work C.mixD.relate
小题12:
A.separatedB.dividedC.distinguishedD.parted
小题13:
A.couldn' tB.shouldn' tC.wouldn' tD.needn' t
小题14:
A.thatB.what C.howD.when
小题15:
A.disappointmentB.frustrationC.enthusiasmD.humour
小题16:
A.powerB.effortC.organization D.attempt
小题17:
A.gatheredB.sortedC.threwD.formed
小题18:
A.warB.debateC.agreementD.negotiation
小题19:
A.trembledB.swungC.pulledD.held
小题20:
A.stepsB.turnsC.choicesD.points
填空题