问题 单项选择题

有下列程序段:
N=0
For i=0 To 50
  i=i+3
  n=n+1
  If i>10
    Exit
  Endif
Next i
N
该程序段的执行结果为______。

A.2

B.3

C.4

D.5

答案

参考答案:B

解析:[分析] 本题考查的是FOR循环和EXIT语句。进入FOR循环时,向循环变量i赋初值0,执行循环体I的值增加3变为3,n加1变为1,判断if语句中的条件“I>10”为假,循环体结束,循环变量i加上步长1变为4,没有超过终值50,再一次进入循环体执行。以此类推,第二次循环体执行后i的值为7,n的值为2,i的值增加步长1变为8,进入第三次循环,i的值变为11,n的值变为3,if语句的条件“i>10”成立,执行“EXIT”语句退出循环。

完形填空

Hearing is very important to all of us. We can  36  beautiful music, nice songs of birds, the laughter of people or other different kinds of   37   in the world with our ears.   38  we must try to protect our ears. The following will tell you    39  protect ears.

Listening to   40  music a lot can be bad for ears,   41  when headphones(耳机)are used. So try not to wear headphones or   42  the volume(音量)when you’re wearing headphones. You should give your ears a rest if you like wearing headphones.

  43   swimming, remember  44   earplugs(耳塞)into your ears or wear a swim hat to stop water   45  getting into your ears. If you go to a concert, wear earplugs to protect your ears from the terrible music!   46  , special earplugs can be made for you if you go to concerts a lot or if you are a musician yourself. See a    47   if your ears hurt. You’d better   48   as what the doctor says.   49  the suggestions above now and you won’t say  “What, what…?” when you are getting   50  .

小题1:A. listen                 B. hear            C. listening

小题2:A. sounds             B. noise            C. voices

小题3:A. Because            B. Although        C. So

小题4:A. what to                B. how         C. how to

小题5:A. loud               B. aloud       C. loudly

小题6:A. specially              B. especially       C. special

小题7:A. turn off           B. turn down        C. turn up

小题8:A. Before             B. After           C. When

小题9:A. put                B. to put          C. putting

小题10:A. to                    B. with                C. from

小题11:A. In fact               B. For example         C. Even though

小题12:A. teacher               B. doctor              C. friend

小题13:A. to do                 B. doing           C. do

小题14:A. Listen                B. Hear                C. Follow

小题15:A. young             B. old             C. sick

问答题 简答题