问题 填空题

阅读下列程序。
Option Base 1
Private Sub Form Click()
Dim x(3,3)
For j=l to 3
For k=l to 3
If j=k then x(j,k)=l
If j<>k then x(j,k)=k
Next k
Next j
Call fun(x())
End Sub
Private Sub fun(x() )
For j=1 to 3
For k=1 to 3
Print x(j,k);
Next k
Next j
End Sub
运行程序时,输出结果为 【14】

答案

参考答案:1 2 311 3 1 21

解析: 本题考查考生对数组虚实结合掌握的情况。事件过程声明了一个二维数组,并利用循环产生3*3数组,由题干可知,该数组对角线元素全部为1,其余元素为3。调用fun过程时,采用了虚实结合的方法,然后执行该过程。在过程中访问x数组就是事件过程中的数组,优先输出了x数组的所有元素值,由于在输出时执行了Print x(j,k),并且输出数据语句后有分号,因此只输出一行。

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

For centuries people have been fighting over whether governments should allow trade between countries. There have been, and probably always will be, (1) to the argument. Some people argue that just (2) is best for both the country and the world. Others argue that trade with other countries (3) for some people to make a good living. Both sides are at least (4) .
International trade matters a lot. Its effects on (5) are enormous. Imagine a world in which your country (6) at all with other countries. Imagine what kind of job you would be (7) and what goods you could buy or not buy in such a world.
For the United States, for example, start by imagining that it lived without its (8) a year in imported oil, and cut back on its (9) because the remaining domestic oil and other energy sources were (10) . Producers and consumers in other parts of the economy would (11) if they were suddenly stripped of foreign-made goods like CD players and clothing. On the (12) side, suppose that Boeing could sell airplanes, and farmers could sell their crops, (13) the United States, and that U. S. universities could admit only (14) . In each case there are people who gain and people who lose from (15) international trade. In any case, less or more international trade will have (16) on your career as well as your life.
For years, American companies are often faced with the choice of buying (17) , which are expensive, and foreign-made goods, which are cheap. If the company buys American goods, it may (18) taxpayers by failing to keep prices low. But if it buys foreign goods, it may (19) the jobs of American workers. Recently, Congress has passed a law compelling American companies with government contracts to (20) domestic goods and services.

For centuries people have been fighting over whether governments should allow trade between countries. There have been, and probably always will be, (1) to the argument. Some people argue that just (2) is best for both the country and the world. Others argue that trade with other countries (3) for some people to make a good living. Both sides are at least (4) .
International trade matters a lot. Its effects on (5) are enormous. Imagine a world in which your country (6) at all with other countries. Imagine what kind of job you would be (7) and what goods you could buy or not buy in such a world.
For the United States, for example, start by imagining that it lived without its (8) a year in imported oil, and cut back on its (9) because the remaining domestic oil and other energy sources were (10) . Producers and consumers in other parts of the economy would (11) if they were suddenly stripped of foreign-made goods like CD players and clothing. On the (12) side, suppose that Boeing could sell airplanes, and farmers could sell their crops, (13) the United States, and that U. S. universities could admit only (14) . In each case there are people who gain and people who lose from (15) international trade. In any case, less or more international trade will have (16) on your career as well as your life.
For years, American companies are often faced with the choice of buying (17) , which are expensive, and foreign-made goods, which are cheap. If the company buys American goods, it may (18) taxpayers by failing to keep prices low. But if it buys foreign goods, it may (19) the jobs of American workers. Recently, Congress has passed a law compelling American companies with government contracts to (20) domestic goods and services.