问题 单项选择题

在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程。 Private Sub Form_Load()List1.AddItem "Item 1"List1.AddItem "Item 2"List1.AddItem "Item 3" End Sub Private Sub Command1_Click()List1.List(List1.Listcount)="AAAA" End Sub 程序运行后,单击命令按钮,其结果为

A.把字符串"AAAA"添加到列表框中,但位置不能确定

B.把字符串"AAAA"添加到列表框的最后(即"Item 3"的后面)

C.把列表框中原有的最后一项改为"AAAA"

D.把字符串"AAAA"插入到列表框的最前面(即"Item 1"的前面)

答案

参考答案:B

解析: 其中,列表框的list属性用来列出表项的内容,也可以改变数组中的已有的值。列表框中表项的排列是从0开始,最后一项的序号为ListCount -1,所以,该题语句的作用是把字符串“AAAA”添加到列表框的最后,但不是改变Item3的值,所以本题的正确答案是选项B) 。

单项选择题

The field of medicine has always attracted its share of quacks and charlatans — disreputable women and men with little or no medical knowledge who promise quick cures at cheap prices. The reasons why quackery thrives even in modern times are easy to find.To begin with, pain seems to be a chronic human condition. A person whose body or mind "hurts" will often pay any amount of money for the promise of relief. Second, even the best medical treatment cannot cure all the ills that beset men and women. People who mistrust or dislike the truths that their physicians tell them often turn to more sympathetic ears.Many people lack the training necessary to evaluate medical claims. Given the choice between (a) a reputable physician who says a cure for cancer will be long, expensive and may not work at all, and (b) a salesperson who says that several bottles of a secret formula "snake oil" will cure not only cancer but tuberculosis as well, some individuals will opt for "snake oil".Many "snake oil" remedies are highly laced with alcohol or narcotic drugs. Anyone who drinks them may get so drunk or stoned that they drown their pains in the rising tide of pleasant intoxication. Little wonder that "snake oil" is a popular cure-all for minor aches and hurts! But let there be no misunderstandings. A very few "home remedies" actually work. However, most remedies sold by quacks are not only useless, but often can be harmful as well.

Snake oil is a popular cure-all for minor aches and hurts because it has________.

A.actually worked

B.some fruit stones

C.been misunderstood

D.alcohol or narcotic drugs

填空题