问题 单项选择题

在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程:
Private Sub Command1_Click()
CommonDialog1.Filter="All Files(*.*)|*.*|Text Fils"&_
"(*.txt)|*.txt|Executable Files(*.exe)|*.exe"
CommonDialog1.FilterIndex=3
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是

A.All Files(*.*)

B.Text Files(*.txt)

C.Executable Files(*.exe)

D.不确定

答案

参考答案:C

解析: 在文件对话框中,Filter属性指定在对话框中显示的文件类型过滤器;FilterIndex属性用来指定默认的过滤器,FilterIndex的值为3,所以在“文件类型”文本框中显示的是第3种过滤方式“Executable Files(*.exe)”,即本题答案为C。

单项选择题

Despite the fact that comets are probably the most numerous astronomical bodies in the solar system aside from small meteor fragments and the asteroids, they are largely a mystery. Scientists do not know exactly what comets are or where they come from. Educated guesses are the best we have in hand.

Considering the role of comets in legend and the memory of man, it is remarkable that we still know so little, relatively, about them. The most famous comet of all, Halley’s Comet ( named for the man who predicted its return), was first sighted by the Chinese in 240 B.C., and it has returned to terrify the people of the world on a regular basis every since then. The ancient considered it an object of ill omen. By mysterious coincidence, the arrival of Halley’s Comet coincided with such events as the battle of Hastings in 1066, the Jewish revolt of 66 A.D., and the last battle of Attila the Hun against the Romans. Nor is it the only comet to fill man with awe, but merely the most famous in a rich aristocracy of blood-freezers.

Comets are even more fascinating to amateur astronomers than to professionals, because this is one area where amateurs can make major discoveries. Comet Ikeya Seki, one of the brightest comets to appear in this century was discovered in 1965 by a pair of Japanese amateurs, Ikeya and Seki. The person who discovers a new comet gets his (or her) name put on it. And amateurs have a head start in the race to discover new comets; the shorter focal lengths on their smaller telescopes give them a positive advantage over the huge telescopes such as Mount Wilson which is built to scan for galaxies, not comparatively short distances.

Most scientists tend to agree with astronomer Fred T. Whipple that a comet is really a large mushy snowball of frozen ices and gases ( ammonia, methane, possibly carbon dioxide) with a few bits of solid particles stuck inside. But no one is sure how comets are created in the first place.

Scientist believe that comets don’t exhibit their characteristic tail while they lurk fat out in space away from the warmth of the sun but, rather, wander in the form of frozen lumps, like icebergs. This is the core of the comets. Only when the comet approaches the heat of the sun, does the ice begin to melt and stream away in the form of visible gases. The tails of the comets stream out behind for, literally, astronomical distances. Halley Comet had a tail of 94 million miles long when it visited here in 1910.The Great Comet of 1843 had a tail of 186 million miles long.

Halley’s comet is mentioned in Paragraph 2()

A. to introduce some famous historical events

B. to explain some traditional beliefs about comets

C. to demonstrate the harm it has done to man

D. to show its significance to human history

单项选择题