问题 填空题

在窗体上添加十个命令按钮,然后编写如下事件过程:
Private Sub Command1_Click()
sum=0
For i=3 To 7
sum=i+2
Next i
MsgBox sum+i
End Sub
打开窗体后,单击命令按钮,消息框的输出结果是______。

答案

参考答案:Q

解析: 本题考查循环的知识。这个问题本来比较简单,只是具有一定的迷惑性。在循环内部为变量sum赋值,由于赋的值只和循环变量i有关,所以只有最后一次循环中为sum赋的值才有效,这个值会覆盖掉前面各次循环为sum赋的值;还有就是要注意,循环退出后循环变量必然处于不满足循环条件的状态,例如本题的循环退出后i的值应该为8。所以最终答案为9+8=17。

阅读理解

EVENTS

Long March exhibit

The Shanghai History Museum is putting on an exhibition to mark the 60th anniversary of the Long March. On show are more than 220 photos and 40 items that explain with pictures how the communist Red Army drew back from its besieged(被围困的) bases in Jiangxi Province and fought its way to northern Shanxi Province in the mid-1930s. Explanations are all in Chinese. The show will end on November 20.

Time: 10:00 am-4:00 pm

Address: 1286 Hongqiao Road

Admission: 8 yuan for Chinese /15 yuan for foreigners

Thai elephants

Eight elephants from Thailand are entertaining visitors at Changfeng Park by riding bikes, playing basketball, balancing on a beam, dancing and blowing a mouthorgan. People are encouraged to have a tug-of-war(拔河比赛)with the animals or lie on the ground and have the elephants walk over them. The elephants give three shows a day at 9:30 am, 3:30 pm and 8:00 pm and there is an additional show at l:30

pm at weekends. The show will end on November 15.

Address: 189 Daduhe Road

Admission: 30-40 yuan

Dancing dolphins

Dolphins jumping from the water to touch a ball, swaying their bodies to music, kissing people and doing math by tapping their tails have made the dolphin arum in Peace Park an attraction for children. Seals and sea lions also perform.

Hours: 10:30 am, 4:00 pm, and 7:30 pm

Admission: 20 yuan for adults and 10 yuan for children.

小题1:If you go to visit the Long March exhibit with an

Australian, how much will you pay altogether for the admission?

A.16 yuan.

B.23 yuan.

C.30 yuan.

D.20 yuan.小题2:At the exhibition, you will see ______.

A.many articles written by famous writers

B.many things left by the Red Army

C.books on the Long March

D.many photos and pictures about the Long March小题3:Which of the following is NOT done by the Thai elephants? 

A.Riding bicycles.

B.Blowing a mouth-organ.

C.Doing math.

D.Having a tug-of-war with people.小题4:The dolphin atrium in Peace Park is a hall where you can see ______.

A.not only dolphins but also seals and sea lions perform

B.only dolphins perform

C.only seals and sea lions perform

D.only seals perform小题5:Dancing dolphin performance will began in _____.

A.11:00am

B.14:00

C.18:00

D.19:30

单项选择题