未分类题

在窗体上画一个命令按钮,然后编写如下程序:Sub S1(ByVal x As Integer, By Val y As Integer) Dim t As Integer t=x x=y y=tEnd SubPrivate Sub Command1_ Click() Dim a As Integer, b As Integer a=10 b=30 S1 a,b Print 'a=';a='b=';bEnd Sub 程序运行后,单击命令按钮,输出结果是______。
A.a=30 b=10
B.a=30 b=30
C.a=10 b=30
D.a=10 b=10

A.a=30
B.a=30
C.a=10
D.a=10

【参考答案】

C
解析:过程S1似乎是要将两个变量的值进行交换,但由于参数是用传值的方式来传递变量值的,所以执行完该过程后,a......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

未分类题
I have been studying the nature of the 'lower animals' and contrasting it with that of man. I find the result humiliating(使丢脸) to mE.For it obliges me to give up my support for the Darwinian theory of the Ascent of Man from the Lower Animals; since it now seems plain to me that that theory ought to be replaced by a new and truer one, the Descent of Man from the Higher Animals.In proceeding towards this unpleasant conclusion I have not guessed or speculated, but have used what is commonly called the scientific methoD.That is to say, I have subjected every hypothesis to the test of actual experiment, and have adopted it or rejected it according to the result.Many men who have accumulated more money than they can ever use have shown a violent hunger for more, and have not hesitated to cheat the ignorant and the helpless of their poor savings in order to satisfy that appetitE.I furnished a hundred different kinds of wild animals the opportunity to accumulate vast stores of food, but none of them would do it. The bees and certain birds made accumulations, but stopped when they had gathered a winter's supply, and could not be persuaded to add to it either honestly or by deception. These experiments convinced me that there is the difference between man and the higher animals: he is greedy, they are not.Man is the only animal that robs his helpless fellow of his country—takes possession of it and drives him out of it or destroys him. Man has done this in all the ages. There is not an acre of ground on the globe that is held by its rightful owner, or that has not been taken away from owner after owner, by force and bloodsheD.Man is the Reasoning Animal. Such is the claim. I think it is open to debatE.Indeed, my experiments have proven to me that he is the Unreasoning Animal. His record is the fantastic record of a maniac(狂热者). I consider that the strongest count against his intelligence is the fact that with that record back of him he still sets himself up as the head animal of the lot: whereas by his own standards he is the bottom onE.The writer claims that his theory is ______.A.practicalB.objectiveC.subjectiveD.scientific
A.B.
C.
D.
E.
The
F.
A.practical
B.objective
C.subjective