问题 单项选择题

设有下面的循环:  i=1  Do   i=i + 3   Print i  Loop Until I>_________  程序运行后要执行3次循环体,则条件中I的最小值为( )。

A.k%=10Dim Arr(k)

B.Const k%=10Dim Arr(k)

C.Dim Arrl(10) As IntegerDim Arr2(10)

D.Dim Arrl(1 To 10)Dim Arr2(1 To 10,2 To 11)

答案

参考答案:A

解析:在循环过程中,当c=='c'时,循环执行结束,这时程序只输出了字符ab。注意:如果把break替换成continue,结果是abd。

阅读理解

David hated spending money. When he had to buy something in a shop, he always tried his best to knock down the price, even for the cheapest things. If he wanted to buy a bottle of orange, for example, and the shopkeeper asked for $2, David would say, “Make it $1.90 and I’ll buy it.” Sometimes the shopkeepers agreed to reduce their prices a little. “What’s ten cents?” they asked themselves. “If it makes this man happy, it won’t hurt me very much.” In this way David saved a few cents here and a few cents there, and by the end of the year he had saved several hundred dollars.

One day he had a very bad toothache and had to go to the dentist. The dentist looked at the tooth and said, “This tooth will have to come out. It’s too serious to save.” “How much must I pay you to take out a tooth?” David asked. “Forty dollars,” the dentist said. “How long will it take you to pull out the tooth?” he asked. “About two minutes,” the dentist answered. “Forty dollars for two minutes’ work!” he shouted, “That’s robbery (抢劫).” The dentist smiled. “You’re right,” she said. “Thank you for telling me. I’ll pull your tooth out very slowly. How about if I take half an hour?”

小题1:In the passage the underlined word “reduce” means “____________”

A.feel worried about

B.be interested in

C.get higher

D.make less小题2:Why must David’s tooth be pulled out?

A.The doctor want to make more money.

B.The tooth itself was serious .

C.The tooth wanted to come out .

D.Daniel wanted to save some money.小题3:After the dentist answered David’s question, he became very _________.

A.angry

B.sad

C.afraid

D.worried小题4:David thought that two minutes was ____________.

A.too little time to pull out a tooth

B.too little time to pay the dentist $40

C.too long to pull out a tooth

D.too short for the dentist to finish the operation小题5:What kind of person do you think David was?

A.He was very strict with others.

B.He was very clever.

C.He was very generous.

D.He was very stingy(吝啬).

材料分析题