问题 填空题

在窗体上画一个名称为Combol的组合框,画两个名称分别为Label1和Label2及Caption,属性分别为“城市名称”和空白的标签。程序运行后,当在组合框中输入一个新项后按回车键(ASCII码为13)时,如果输入的项在组合框的列表中不存在,则自动添加到组合框的列表中,并在Label2中给出提示“已成功添加输入项”,如图16-3所示;如果存在,则在Label2中给出提示“输入项已在组合框中”。请在 【11】 【12】 【13】 处将程序补充完整。 Private Sub Comhel 【11】 (KeyAscii As Integer) If KeyAseii=13 Then For i=0 To Combol. ListCount-1If Combol. Text= 【12】 Then Label2. Caption="输入项已在组合框中" Exit SubEnd If Next i Label2. Caption="已成功添加输入项" Combol. 【13】 Combol. Text End If End Sub

答案

参考答案:[11]KeyPress [12]combol. List(i) [13]AddItem

解析:

[分析]: 当KeyAscii为13时,表示按下回车键若要组合框控件接收一个回车事件,则要使用Combol_KeyPress事件。ListCount属性列出组合框中表项的数量;List属性保存了组合框中所有值的数组;Addltem方法用来在列表框中插入一行文本。

单项选择题 A1/A2型题
阅读理解

阅读理解。

     The African elephant, the largest land animal remaining on earth, is of great importance to African

ecosystem (生态系统). Unlike other animals, the African elephant is to a great extent the builder of its

environment. As a big plant-eater, it largely shapes the forest-and-savanna (大草原) surroundings in

which it lives, therefore setting the terms of existence for millions of other animals that live in its habitat

(栖息地).

     It is the elephant's great desire for food that makes it a disturber of the environment and an important

builder of its habitat. In its continuous search for the 300 pounds of plants it must have every day, it kills

small trees and underbushes, and pulls branches off big trees. This results in numerous open spaces in both

deep tropical forests and in the woodlands that cover part of the African savannas. In these open spaces

are numerous plants in various stages of growth that attract a variety of other plant-eaters.

     Take the rain forests for example. In their natural state, the spreading branches overhead shut out

sunlight and prevent the growth of plants on the forest floor. By pulling down trees and eating plants,

elephants make open spaces, allowing new plants to grow on the forest floor. In such situations, the forests

become suitable for large hoofed plant-eaters to move around and for small plant-eaters to get their food as

well.

     What worries scientists now is that the African elephant has become an endangered species. If the

elephant disappears, scientists say, many other animals will also disappear from vast areas of forest and

savanna, greatly changing and worsening the whole ecosystem.

1. What is the passage mainly about?

A. Disappearance of African elephants.

B. Forests and savannas as habitats for African elephants.

C. The effect of African elephants' search for food.

D. The eating habit of African elephants.

2. What does the underlined phrase "setting the terms" most probably mean?

A. Fixing the time.

B. Worsening the state.

C. Improving the quality.

D. Deciding the conditions.

3. What do we know about the open spaces in the passage?

A. They result from the destruction of rain forests.

B. They provide food mainly for African elephants.

C. They are home to many endangered animals.

D. They are attractive to plant-eating animals of different kinds.

4. The passage is developed mainly by ______.

A. showing the effect and then explaining the causes

B. pointing out similarities and differences

C. describing the changes in space order

D. giving examples