问题 填空题

以下是一个计算矩形面积的程序,调用过程计算矩形面积,请将程序补充完整。
  Sub RecArea(L,W)
   Dim S As Double
   S=L*W
   MsgBox"Total Area is"& Str(S)
  End Sub
  Private Sub Command1_Click()
   Dim M,N
   M=InputBox("What is the L")
   M=Val(M)
    【11】 
   N=Val(N)
    【12】 
  End Sub

答案

参考答案:【11】N=InputBox("What is the W")
【12】Call RecArea(M,N)

解析:解析:程序通过RecArea来计算并输出矩形的面积,它有两个形式参数,分别为矩形的长和宽;在Sub事件过程中,从键盘上输入矩形的长和宽,调用InputBox函数分别将输入的数赋给M和B,所以【11】为N=InputBox("What is the W");将M和N作为实参调用RecArea过程,它有两种书写方式,一种是把过程的名字放在一个Call语句中,格式为Call过程名[(实际参数)];另外一种是把过程名作为一个语句来使用,与第一种方式相比,它去掉关键字Call,去掉了参数列表,所以【12】为Call RecArea(M,N)或RecArea (M,N)。

单项选择题 B型题
阅读理解

For most people, shopping is still a matter of wandering down the street or loading a cart in a shopping mall.Soon, that will change.Electronic commerce (trade) is growing fast and will soon bring people more choices.There will, however, be a cost: protecting the consumer from being cheated will be harder.Many governments therefore want to apply street regulations to the electronic world.But politicians would be wiser to see cyberspace as a basis for a new era of corporate self-regulation.

Consumers in rich countries have grown used to the idea that the government takes responsibility for everything for the stability of the banks to the safety of the drugs or their rights to refund when goods are faulty.But governments cannot enforce national laws on businesses whose only presence is on the screen.Even in a country where a clear right to compensation exists, the on-line customer in Tokyo, say, can hardly go to New York to get a refund for a clothes purchase.

One answer is for government to cooperate more: to recognize each other’s  rules.But that requires years of work and volumes of detailed rules.And plenty of countries have rules too fanciful for sober countries to accept.There is, however, another choice.Let the electronic businesses do the regulation themselves.They do, after all, have a self-interest in doing so.

In electronic commerce, a reputation for honest dealing will be a valuable competitive asset.Governments, too, may compete to be trusted.For instance, customers ordering medicines on-line may prefer to buy from the United States because they trust the rigorous screening of the Food and Drug Administration; or they may decide that the FDA’s rules are too strict, and buy from Switzerland instead.

Customers will still need to use their judgment.But precisely because the technology is new, electronic shoppers are likely for a while to be a lot more cautious than customers of the normal sort.And the new technology will also make it easier for them to complain when a company lets them down.In this way, at least, the advent of cyberspace may argue for fewer consumer protection laws, not more.

小题1:According to the author, what will be the best policy for electronic commerce?

A.Self-regulation by the business.

B.Strict consumer protection laws.

C.Close international cooperation.

D.Government protection.小题2:In case an electronic shopper bought faulty goods from a foreign country, what could he do?

A.Refuse to pay for the purchase.

B.Go to the seller and ask for a refund.

C.Appeal to consumer protection law.

D.Complain about it on the Internet.小题3:In the author’s view, businesses would place a high emphasis on honest dealing because in the electronic world _________________________________.

A.international cooperation would be much more frequent

B.consumers could easily seek government protection

C.a good reputation is a great advantage in competition

D.it would be easy for consumers to complain小题4:We can infer from the passage that in licensing new drugs the FDA in the United States is ____________________.

A.very quick

B.very cautious

C.very slow

D.rather careless小题5:If a customer buys something that does not meet his expectation, what is the advantage of dealing through electronic commerce over the present normal one?

A.It will be easier for him to return the goods he is not satisfied with.

B.It will be easier for him to attain the refund from the seller.

C.It will be easier for him to get his complaints heard by other consumers.

D.It will be easier for him to complain about this to the government.