问题
填空题
若有定义doublea[5];,则a数组元素下标的上限为______。
答案
参考答案:D
解析: 一维数组元素的定义形式为:数组名[N],则该数组中元素的下限是0,上限是N-1。
若有定义doublea[5];,则a数组元素下标的上限为______。
参考答案:D
解析: 一维数组元素的定义形式为:数组名[N],则该数组中元素的下限是0,上限是N-1。
完形填空。 | ||||
I tend to accept any idea put forward by experts on TV. One day, a sociologist proposed that the 1 society has been consuming modern humans little by little. For fear that I would become a victim of the consumer society, I 3 hurried to a bicycle shop in my neighborhood. 3 the shopkeeper Mr. Johnson was selling me the bicycle, he said, "This is the best thing you 4 have done. Life has become hopelessly 5 . A bicycle is simple, and it brings to you 6 things: fresh air, sunshine and exercise." I agreed. Happy as a child, I got on the bicycle and headed out onto the streets. After some time, I 7 at the other end of the town. I was 8 that this simple vehicle could let me 9 long distances in a fairly short time. But how 10 did I really go? Since I hated to be 11 , I went back to Mr. Johnson and asked him to 12 an odometer (里程表) on my bicycle. He agreed, but 13 , "An odometer without a speedometer (速度计) is like a 14 without a knife." I admitted he was right and in a few minutes, the two devices (装置) were 15 to the handlebars of my bicycle. "What about a horn?" he then asked. "Look, this horn is no larger than a matchbox and has many 16 ." Attracted by these functions, I bought the horn. "You can't leave the back part 17 ," noted Mr. Johnson. He fixed a metal box with buttons 18 the seat, and said, "Is there anything better than this oven when you feel 19 on your way? I can give you a special discount." I was not strong enough to 20 the offer. "I congratulate you once more; this is the best thing you could have done," said Mr. Johnson in the end. | ||||
|