问题 单项选择题

在窗体上画一个通用对话框图,其Name属性为Cont,瑞画一个命令按钮,Name属性为Command1,然后编写如下事件过程:   Privute Sub Command1_Click( )    Cont.FileName=" "    Cont.Flags=vbOFNFileMustExist    Cont.Filter="All Files| * . *"    Cont.FilterIndes_3    Cont.DialogTitle="Open File"    Cont.Action=1    If Cont.FileName=" " Then      MsgBox "No file selected"    Else      Open Cont.FileName For Input As #1      Do While Not EOF(1)        Input #1. b$        Print b$      Loop      End If    End Sub   以下各选项,对上述事件过程描述错误的是()。

A. 该事件过程用来建立一个Open对话框,可以在这个对话框中选择要打开的文件

B. 选择后单击“打开”按钮,所选择的文件名即作为对话框的FileName属性值

C. Open对话框不仅仅用来选择一个文件,还可以打开、显示文件

D. 过程中“Cont.Action=1”用来建立 Open对话框,它与Cont.ShowOpen等价

答案

参考答案:C

解析:从本题的本意来说就是要建立一个Open对话框,然后选择要打开的文件,程序编写也是如此,所以选项A)是正确的;选择文件后单击“打开”按钮,所选择的文件名即作为对话框的FileName属性值,所以选项B)也是正确的;Action属性为1与ShowOpen方法等价,所以选项D)是正确的;打开文件对话框可以让用户选择一个文件,由程序使用,所以它并不能真正“打开”文件,而仅仅是用来选择一个文件,从程序代码中可以看出,打开操作和显示操作是由Else语句来完成的:    Else        Open Cont.FileName For lnput As #1        Do While Not EOF(1)          Input #1,b$          Print b$        Loop    End If

单项选择题

B

The largest earthquake (magnitude里氏9.5 ) of the 20th century happened on May 22, 1960 off the coast of South Central Chile.

It generated (生成) one of the most destructive Pacific-wide tsunamis (海啸). Near the

generating area, both the earthquake and the tsunami were very much destructive, particularly in the coastal area from Concepcion to the south end of Isla Chiloe. The largest tsunami damage occurred at Isla Chiloe-the coastal area closest to the epicenter(震中). Huge tsunami waves measuring as high as 25 meters arrived within 10 to 15 minutes after the earthquake, killing at least two hundred people, sinking all the boats, and flooding half a kilometer inland.

There was large damage and loss of life at Concepcion, Chile’s top industrial city. Near the city of Valdivia, the earthquake and following aftershocks generated landslides which killed 18 people. At the port city of Valparaiso, a city of 200,000, many buildings collapsed. A total of 130,000 houses were destroyed--one in every three in the earthquake zone and nearly 2,000,000 people were left homeless.

Total damage losses, including to agriculture and to industry, were estimated(估计) to be over a half billion dollars. The total number of deaths related with both the tsunami and the earthquake was never found accurately for the region. Estimates of deaths reached between 490 to 5,7002 with no distinction(差别) as to how many deaths were caused by the earthquake and how many were caused by the tsunami. However, it is believed that most of the deaths in Chile were caused by the tsunami.

What is generally thought the main cause of deaths in Chile().

A. Landslides.

B. The tsunami.

C. Aftershocks.

D. The magnitude 9.5 earthquake.

单项选择题 A1型题