问题 单项选择题

在窗体上画一个名称为Labell的标签,然后编写如下事件过程。Private Sub Form_Click( ) Dim arr(10, I0) As Integer Dim i As Integer, j As Integer For i = 2 To 4For j =2 To 4arr(i,j) =i*j Next Next Labell. Caption = Str(arr(2,2) + arr(3,3) ) End Sub 程序运行后,单击窗体,在标签中显示的内容是

A.12

B.13

C.14

D.15

答案

参考答案:B

解析:[命题目的] 考查考生对比For…Next循环控制结构的掌握情况。[解题要点] 本题具有一定的迷惑性,其实分析一下易知arr(i,j)的值即为i*j,所以an(2,2)+arr(3, 3)就是求2*2+3*3=13。[错解分析] For…Next循环控制结构适用于指定循环次数的循环程序。其格式为: For循环变量二初始值To终值Step步长 Next 其中,当步长为正时,初始值要小于终值;当步长为负时,初始值要大于终值。[考点链接] For…Next循环控制结构。

阅读理解

阅读理解。

     Mr and Mrs Smith had always spent their summer holidays in New Jersey in the past,staying in a

small hotel at the foot of a hill.

     One year, however, Mr Smith made a lot of money in his business, so they decided to go to London

and stay at a really good hotel while they went touring around that famous city.

     They flew to London and arrived at their hotel late one evening.  They had expected that they.would

have to go to bed hungry, because in that small inn in New Jersey, no meals were served after seven.  

They were surprised when the waiter asked whether they would take dinner there that night."Are you still

serving dinner?" asked Mr Smith. Yes, certainly, sir," answered the waiter. "We serve it until half past

nine."

     "What are the times of meals then?" asked Mr Smith."Well, sir," answered the waiter. "We serve

breakfast from seven to half past eleven in the morning, lunch from twelve to three in the afternoon, tea

from four to five, and dinner from six to half past nine."

     "But that hardly leaves any time for us to see the sights of London.''said Mr Smith.

1. Mr and Mrs Smith had always spent their holidays in _______.

A. New York

B. London    

C. Newjersey  

D. Washington

2. When Mr and Mrs Smith had a lot of money, they decided to go to _______.

A. their hometown    

B. the capital of England

C. New Jersey      

D. a small city in England

3. They went to I,ondon by _______.

A. sea    

B. plane    

C. train    

D. bus

4. From the story we know that this was the _______ time for Mr and Mrs Smith to go to London.

A. first    

B. second    

C. third    

D. fourth

5. What does the sentence "But that hardly leaves any time for us to see the sights of London" mean?

A. We can go to see the sights of London at any time.

B. We have enough time to see the sights of London.

C. We can see more sights of London.

D. We have little time to see the sights of London.

单项选择题