问题 单项选择题

有以下程序段:
int x=3;
do

printf("%d",x-=2);

while(!(--x));
其输出结果是 ______ 。

A.1

B.3 0

C.1 -2

D.死循环

答案

参考答案:C

解析:[评析]本题中循环执行了两次,第一次,执行完printf语句后,x=1,而-x是先自减后执行语句,所以(!(-x))的值为非零,所以又执行了一次。第二次x的值为-2,-x的值为-3,求非后,值为0,跳出循环。

完形填空


The clock in the old building in front of Max showed six o'clock. As the clock began   1  , he noticed a tall man with a bag walking to him. 2 turned around, looked at the clock, and then moved his steps   3  . Max walked faster as well. Miss Fritz invited him for dinner. He didn't want to be  4 .
"I’m glad you can come," Miss Fritz said. "I've  5  a lovely cake for us. " She pointed Max to a chair. "Good thing I prepared just now. A surprise visitor just left. " "Who  6  you?" Max asked.
"A teacher  7 a school for the deaf. He was totally deaf (耳聋的)himself. What a poor man! But he could  8  the shape of my mouth perfectly. He wrote down   9   he wanted to tell me." "Why was he here?"
"Well, the   10  needs more money. I was glad to help out. I got    11   money from the bank so I was able to give him five hundred   12  ." "Did he just leave? Was he a   13  man with a bag?"
"Yes."
"We'd better 14  the police. I don't think that man is honest. I know for sure   15   was not totally deaf," How did Max find it out?
小题1:
A.to goB.to work C.to run D.to ring
小题2:
A.Max B.A teacherC.The manD.Miss Fritz
小题3:
A.fartherB.closerC.slower D.faster
小题4:
A.lateB.earlyC.polite D.tired
小题5:
A.passed B.givenC.madeD.sold
小题6:
A.helpedB.decided C.visitedD.traveled
小题7:
A.byB.behindC.around D.from
小题8:
A.fit B.takeC.readD.find
小题9:
A.what B.whoC.whomD.which
小题10:
A.factoryB.schoolC.policeD.bank
小题11:
A.littleB.someC.no D.less
小题12:
A.chairsB.bagsC.clocks D.dollars
小题13:
A.fatB.thin C.tall D.short
小题14:
A.beatB.callC.catch D.save
小题15:
A.IB.itC.heD.she
问答题 简答题