未分类题
有以下程序:void main(){int y=10;while(y>>1){printf('y=%d/n',y);}}程序执行后的输出结果是( )。A.y=0 B.y=-1C.y=1D.while构成无限循环
A.y=0
B.y=-1C.y=1D.while构成无限循环
【参考答案】
D
位运算;条件判断y>>1对循环没有任何影响,始终为真,所以循环是一个无限循环。
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
听力原文:W: Well, I'm very impressed by all the work you've done on your house, Mr. Miller. How long have you been working on it?M: I first became interested in do-it-yourself several years ago. You see, my son Paul is disabled. He's in a wheelchair and I just had to make alterations to the house.W: Have you had any experience of this kind of work?M: No. I got a few books from the library but they didn't help very much. Then I decided to go to evening classes so that I could learn basic carpentry and electrics.W: What sort of changes did you make to the house?M: First of all, practical things to help Paul. Just imagine the problems a disabled person would have in your house. We need a large house with wide corridors so that Paul could get from one room to another. We didn't have much money and we had to buy this one. It's over ninety years old and it was in a very bad state of repair.W: Where did you begin?M: The electrics. I completely rewired the house so that Paul could reach all the switches.W: What else did you do?M: By the time I'd altered everything for Paul, do-it-yourself had become a hobby. I really enjoyed doing things with my hands.W: What are you working on now?M: I've just finished the kitchen. Now I'm building an extension so that Paul will have a large room on the ground floor where he can work.W: There's a $10,000 prize for the Do-it-yourself competition. How are you going to spend it?M: I'm hoping to start my own business so that I can convert ordinary houses for disabled people. I think I've become an expert on the subject.(27)A.He likes to do things with his own hands.B.He wants to make things easier for Paul.C.His house was in a very bad shape when he bought it.D.He wants to save money.
A.
W:
B.
W:
C.
W:
D.
W:
E.
W:
F.
W:
G.
(27)
A.He
H.
B.He
I.
C.His
J.
D.He
K.
点击查看答案
单项选择题
A.For several years.B.For seven years.C.For a year or two.D.For many years.
A.For
B.
B.For
C.
C.For
D.
D.For
E.
点击查看答案
相关试题
当使用魔棒工具选择图像时,在“容差”数值...
在拼合图层时,会将暂不显示的图层全部删除...
显示与隐藏参考线快捷键是Ctrl+H()
采用该战略有可能面临哪些障碍?如何解决?
From this passage we can learn tha...