问题 单项选择题

在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:
Private Sub Command1_Click()
For i=1 To 4
x=4
For j=1 To 3
x=3
For k=1 To 2
x=x+6
Next k
Next j
Next i
MsgBox x
End Sub
打开窗体后,单击命令按钮,消息框的输出结果是( )。

A.7
B.15
C.157
D.528

答案

参考答案:B

解析: 本题考查了多重循环。在每一次外循环开始的时候x的值都为4,所以我们只观察最后一次循环就可以了,中层循环每次开始前都把x设置为3,所以到最后x的初值还是3。执行最内层循环直到循环结束就可以了。本程序得知内循环执行两次,最后结果为x=3+6+6=15。

单项选择题 案例分析题
填空题

For more than two centuries, American’s colleges and universities have been the backbone of the country’s progress. They have educated the technical, managerial, (1) and provided generation after generation of national leaders. Today educators from around the globe are turning to U. S. institutions of higher learning (2) . They are apt to find many reasons for the excellence of American universities, but (3) stand out as watersheds:
Education (4) : In 1862 Congress enacted the Land-Grant College Act, which essentially extended the opportunity of higher education (5) , including such disenfranchised groups as women and minorities. Each state was permitted to sell large tracts of (6) and use the proceeds to endow at least one public college.
(7) : Over the years, the decentralization and diversity of the America’s colleges and universities have promoted competition for students and resources. Competitive pressure first arose (8) . The academy’s impact really grew after World War II, when (9) commissioned by President Roosevelt argued that it was the federal government’s responsibility to (10) for basic research. Instead of being centralized in government laboratories, scientific research (11) in American universities and generated increasing investment. It also gave graduate students research opportunities and helped (12) far and wide, to the benefit of industry, medicine and society as a whole.
(13) : The end of the World War II saw passage of the Servicemen’s Readjustment Act of 1944. The law, which provided for (14) for returning veterans, made an already democratic higher-education system accessible in ways that were (15) in Europe, opening the doors of the best universities to men and women who had (16) of going to college.
(17) : The creation of federal loan guarantees and subsidy programs, as well as outright grants for college students brought (18) to higher education and further helped to democratize access. Since its founding (19) , the Federal Family Education Loan Program has funded more than 74 million student loans worth more than (20) .