问题 填空题

在窗体上面画一个命令按钮,然后编写如下程序:
Function M(x As Integer,y As Integer)As Integer
M=IIf(x>y,x,y)
End Function
Private Sub Command1_Click()
Dim a As Integer,b As Integer
a=1
b=2
Print M(a,B)
End Sub
程序运行后,单击命令按钮,输出结果为 【11】

答案

参考答案:B

解析:[评析] IIf函数的作用是根据表达式的值,来返回两部分中的其中一个。因为1>2为False,所以返回的是传入的第二个参数b,所以输出为2。

判断题
填空题

Part 4


Questions 26-45


·Read the following passage and decide which answer bestfits each space.
·For questions 26-45, mark one letter A, B, C or D on the Answer Sheet.
The "standard of living" of any country means the (26) person’s share of the goods and services which the country produces. A country’s standard of living, therefore depends (27) and foremost on its capacity to produce wealth. "Wealth" in this (28) is not money, for we do not live on money (29) on things that money can buy: "goods" such as food and clothing, and "services" such as (30) and "entertainment".
A country’s capacity to produce wealth depends upon many factors, most of which have an effect (31) one another. Wealth depends (32) a great extent upon a country’s natural resources. Some regions of the world are well supplied with coal and minerals, and have a (33) soil and a favorable climate; other regions (34) none of them.
Next to natural resources (35) the ability to turn them to use. China is perhaps as well off as the USA in natural resources, but suffered for many years from (36) and external wars, and for this and other reasons was incapable (37) her resources. Sound and (38) political conditions, and freedom from foreign invasion, enable a country to develop its natural resources peacefully and steadily, and to produce more wealth than another country (39) well served by nature but less well ordered.
A country’s standard of living does not only depend upon the wealth that is produced and (40) within its own borders, but also upon what is indirectly produced through international trade. For example, Britain’s wealth in foodstuffs and other agricultural products would be much (41) if she had to depend only on those grown at home. Trade makes it possible for her surplus manufactured goods to be traded abroad for the agricultural products that would (42) be lacking. A country’s wealth is, therefore, much (43) by its manufacturing capacity, (44) that other countries can be found ready to (45) its manufactures.

A.less

B.little

C.equally

D.few