问题 单项选择题

在窗体上画 1 个命令按钮,名称为 Command1,然后编写如下程序:Dim Flag As Boolean Private Sub Command1_Click() Dim intNum As Integer intNum=InputBox("请输入:")If Flag ThenPrint f(intNum) End IfEnd SubFunction f(X as Integer)As IntegerIf X<10 ThenY=X ElseY=X+10End If f=YEnd FunctionPrivate Sub Form_MouseUp(Button As Integer,Shift As Integer,X as Single,Y As Single) Flag=TrueEnd Sub 运行程序,首先单击窗体,然后单击命令按钮,在输入对话框中输入5,则程序的输 出结果为______。

A.0

B.5

C.15

D.无任何输出

答案

参考答案:B

解析:单击窗体在释放鼠标时,将会触发 Form_MouseUp 事件,将 Flag 值置 True,从而允许输出。在 Command1 的 Click 事件中,通过输入框输入 5,并在窗体上输出 f(5),函数 f 的作用是,如果自变量 x<10, 则直接返回 x,否则返回 x+10。故本题应输出 5。

填空题
阅读理解

Section One
The city is an accumulation of human civilization. Just as the American social philosopher (哲学家) Lewis Mumford put it, it is a special system which, fine and compact, has been designed to preserve the fruits of human civilization. Many Western languages have developed their versions of the term “civilization” from the same Latin (拉丁语的) word “civitas”(meaning “city” ), and it is by no means a coincidence. The city has played a significant role in the perfection of order in human society.
Section Two
The emblem, showing the image of three people ― you, me, him/her holding hands together, symbolizes the big family of mankind. Inspired by the shape of the Chinese character “世” (meaning the world), the design conveys the organizers' wish to host an Expo which is of global scale and which showcases the various urban cultures of the world.
Section Three
Created from the inspiration of Chinese character “人”, the design roots deeply in Chinese culture. It tells the world the eternal core (永恒的核心) and theme of Shanghai World Expo will be always human. The mascot “Haibao” will become the messenger for the theme of World Expo 2010 Shanghai China “Better City, Better Life”.
The basic structure of the Chinese character “人” in which each stroke supports each other also shows the concept that the beautiful life should depends on mutual-help. If the human are willing to support one another, the harmony among human, nature, and society will be available. Such an urban life will be nice.  
Haibao’s confident smile is expressing his sincere greeting from China ― “World Expo 2010 Shanghai China welcomes you!”
71. Section One mainly tells about ______.
A. the part cities play in human civilization  B. the development of the word “city”
C. why the Expo is held in Shanghai           D. where human civilization originated
72. The underlined word “it” in Section One refers to ______.
A. the civilization   B. the philosopher         C. the word                  D. the city
73. Which correctly matches the sections with the pictures they describe?
Pictures



A.
Section One
Section Two
Section Three
B.
Section Two
Section Three
Section One
C.
Section Three
Section Two
Section One
D.
Section Three
Section One
Section Two
74. In Section Three, the second paragraph explains how the creation is connected with the _____ of the Chinese word “人”.
A. story                   B. meaning              C. shape           D. usage
75. The underlined word “stroke” in the second paragraph of Section Three means ______.
A. one of the ideas a word has                    B. a line made by a writing tool
C. a member of a family or the society        D. a person who has met with trouble