问题 填空题

在窗体上画两个名称分别为Command1和Command2、标题分别为“初始化”和“求和”的命令按钮。程序运行后,如果单击“初始化”命令按钮,则对数组a的各元素赋值:如果单击“求和”命令按钮,则求出数组 a的各元素之和,并在文本框中显示出来,如图所示。请填空。
Option Base 1
Dim a(3,2)As InteSer

Pnvatc SabCommand1_Click( )
For i=1 To 3
For j=1 To 2
【13】 =i+j
Next j
Next i
End Sub
Pnvate Sub Command2_Click( )
For j=1 To 3
For i=1 To 2
s=s+ 【14】
Next i
Next j
Text1.Text= 【15】
End Sub

答案

参考答案:[13]a(i,j)
[14] a(j,j)
[15] Str(s)或s

解析: 单击Command1将一数组赋值,根据“i=1 to 3”与“j=1 to 2”可知[13]处填a(i,j)
单击Command2将计算数组元素之后,根据“j=1 to 3”与“i=1 to 2”,可知[14]处填a (j,i),表示a(3,2)是一个二维数组。每执行一次For循环,s将加一次a(i,j)。结果将由 s赋给Text1的Text属性,故[15]处填s。也可以填Str(s),表示将s转为字符串。

多项选择题
单项选择题

Shopping has always been something of an impulse activity, in which objects that catch our fancy while strolling are immediately bought on a whim. Advertisers and sellers have taken advantage of this fact, carefully positioning inexpensive but attractive items on paths that we are most likely to cross, hoping that our human nature will lead to a greater profit for them. With the dawn of the Internet and its exploding use across the world, the same tactics apply.

Advertisers now place "banners", links to commercial web sites decorated with attractive pictures designed to catch our eyes while browsing the webs, on key web sites with heavy traffic. They pay top dollar for the right, thus creating profits for the hosting web site as well. These actions are performed in the hopes that during the course of our casual and leisurely web surfing, we’ll click on that banner that sparks our interest and thus, in theory, buy the products advertised.

Initial results have been positive. Web sites report a huge inflow of cash, both from the advertisers who tempt customers in with the banners and the hosting web sites, which are paid for allowing the banners to be put in place. As trust and confidence in Internet buying increases and information security is heightened with new technology, the volume of buying is increasing, leading to even greater profits.

The current situation, however, is not quite as optimistic. Just as magazine readers tend to unconsciously ignore advertisements in their favorite periodicals, web browsers are beginning to allow banners to slip their notice as well. Internet users respond to the flood of banners by viewing them as annoyances, a negative image that is hurting sales, since users are now less reluctant to click on those banners, preferring not to support the system that puts them in place. If Internet advertising is to continue to be a viable and profitable business practice, new methods will need to be considered to reinvigorate the industry.

With the recent depression in the technology sector and slowing economy, even new practices may not do the trick. As consumers are saving more and frequenting traditional real estate businesses over their Internet counterparts, the fate of Internet business is called into question. The coming years will be the only reliable indication of whether shopping on the world wide web is the wave of the future or simply an impulse activity whose whim has passed.

The second and third paragraphs are written in order to illustrate()

A. the policy Internet advertisers design to lure clientele and its outcome

B. the process and mixed consequences of Internet advertising and shopping

C. the biggest splash Internet advertisers have recently made in sales promotions

D. the banners Internet advertisers take advantage of to arouse customers’ interest