问题 单项选择题

单击命令按钮时,下列程序代码的执行结果为______。 Public Sub Procl(n As Integer, By Val m As Integer)n=n Mod 10m=m/10 End Sub Private Sub Command1_Click()Dim x As Integer,y As Integerx=12:y=34Call Procl(x, y)Print x; Y End Sub

A.12 34

B.2 34

C.2 3

D.12 3

答案

参考答案:B

解析:[评析] 过程中传递参数的方式有两种: 一种是按地址传递参数,这种形式使过程用变量的内存地址去访问实际变量的内容,如果在过程中改变了该变量的值,则是真正改变了这一变量的值,这种形式是传递参数的缺省方式。 另一种是按值传递参数,这种形式只是传递变量的副本,如果在过程中改变该变量副本的值,并不能真正改变该变量本身的值。 解题思路:观察程序段,过程Procl的第一个参数n是按地址传递参数,第二个参数m是按值传递参数,所 以调用过程Procl后,变量x的值改变,而变量y的值不变。 由程序段可知,x=12 Mod 10=2,y=34 最终的输出结果是:2 34。

完形填空

Complete the following passage by using the words in the box. Each word can only be used once. Note that there is one word more than you need.

If the package looks pretty, people will buy just about anything. So says an advertising executive in New York, and he has proved his point by selling boxes of rubbish for the price of an expensive bottle of wine.

Justin Gignac,26, has sold almost 900    41  presented plastic boxes of rubbish from the street of Big Apple at between $50 and $100 each. Buyers from 19 countries have paid for the souvenirs(纪念品). The idea has been so successful that he is thinking of promoting it around the world.

It all began when Mr Gignac was at a summer workshop, “We had a discussion about the importance of   42 ,”he recalls.” Someone said packaging was unimportant. I disagreed. The only way to prove it was by selling something nobody would ever want.”

He searches the streets of Manhattan and typical   43  include broken glass, subway tickets, Starbucks cups and used   44  forks. “Special editions” are offered at a high price. He charged $100 for rubbish from the opening day of the New York Yankees’ stadium.

Mr Gignac denies   45  his customers for fools: “They know what they’re getting. They appreciate the fact that they’re taking something nobody would want and finding beauty in it.”

Some   46  customers include people who used to live in the city and want a down-to-earth souvenir. He claims he has even sold to art collectors.

Realizing that the concept appears to be a real money-maker, Mr Gignac has   47  a company and is employing his girlfriend as vice president. He   48  to discuss his profit margins: “It’s actually quite a lot of effort putting them together-but yes, garbage is free.”

Mr Gignac is considering more varieties of souvenirs. He maintains that he has signed   49  with people interested in similar projects from as far as Berlin and London.

名词解释