问题 单项选择题

设一个工程由两个窗体组成,其名称分别为Form1和Form2,其中Form1为启动窗体。在窗体Form1上有一个名称为Command1的命令按钮,Form1的程序代码如下:
Private Sub Command1_Click()
Dim a As Integer
a=10
Call g(Form2,

A.
End Sub
Private Sub g(f As Form,x As Integer)
y=IIf(x>10,100,-100)
f.Show:f.Caption=y
End Sub
程序执行时,单击命令按钮Command1,正确的结果是( )。A) Form2的Caption属性值为-100

B.Form1的Caption属性值为100

C.Form1的Caption属性值为-100

D.Form2的Caption属性值为100

答案

参考答案:A

解析: 本题考查窗体参数。VB允许用窗体或控件作为通用过程的参数,在过程内部需要使用窗体参数名时,以“窗体.属性”的形式来使用窗体参数。窗体参数的类型是Form型。调用f过程时,显示窗体f的同时更改窗体标题。

阅读理解

Since the gene , called DAF-16 in worms, was found in many animals and in humans, the finding could open up new ways to affect aging ,immunity and resistance in humans the scientists said.

“We wanted to find out how normal aging is being governed by genes and what effect these genes have on other traits such as immunity,”said Robin May , who led the study.

Populations across the world are aging at a surprising pace , bring potentially big challenges for health and social care systems . A study by Danish scientists last year found that half of babies born in rich world today will live to celebrate their 100th birthday . Scientists are eager to find out how people age to try to develop drugs to help them stay healthier lives extend.

“What we have found is that things like resistance and aging tend go hand in hang “ May said in an interview

May’s team compared longevity ,stress resistance and immunity in four related species of worm. They also looked for differences in the activity of DAV-16 in each of the four species and found that they were all quite distinct.

May said DAF-16 was active in most cells in the body and was very similar to a group of human genes called FOXO genes , which scientists believe play a role in the aging process. “The fact that subtle differences in DAF-16 between species seem to have such an impact on aging and health is very interesting and many explain how differences in lifespan and related traits have arisen during evolution,”May said

小题1:In which section may the text appear in a newspaper?

A  Education   B  Science   C  Entertainment    D  Culture

小题2: According to May ,   

A resistance has a lot of to do with aging    B FOXO genes can be found in worms

C genes play the same role in difference species   D  new drugs will change the genes in older people

小题3:From the text we know that DAF-16   

A is a gene that is only found in worms     B can make people live longer

C has an effect on aging and immunity     D  has been quite familiar to scientists

单项选择题