black

登录

未知题型

单击命令按钮时,下列程度段的执行结果为( )。 Private Sub Command1_Click() Dim a As Integer, b As Integer, c As Integer a=2:b=4:c=6 Call S1(a,B) Print 'a='; a; 'b='; b; 'c='; c Call S2(a,B) Print 'a ='; a; 'b ='; b; 'c='; c; End Sub Private Sub S1(x As Integer, y As Integer) Dim c As Integer x=2*x:y=y+2:c=x+y End Sub Sub S2(x As Integer, ByVal y As Integer) Dim e As Integer x=2*x:y=y+2:c=x+y End Sub
A.a=4 b=6 e=6 a=4 b=6 e=6
B.a=8 b=6 c=6 a=8 b=6 c=6
C.a=4 b=6 e=6 a=8 b=6 e=6
D.a=8 b=6 c=6 a=4 b=6 c=6

A.a=4
B.a=8
C.a=4
D.a=8
【参考答案】

C
解析:在定义子过程的参数时,如果在参数前加上ByVal,表示是“传值”参数,主调函数中参数的值不被改变,否则......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)

相关考题

未知题型 甲、乙均为1979年6月30日出生,甲1997年初参加工作,乙在高中读书。1997年5月31日,甲、乙与丙发生口角,且将丙打伤。丙住院两个月康复,并于1997年8月1日向法院起诉,要求甲、乙赔偿医药费5千元。本案中,丙的医药费应由谁承担?()。

多项选择题 The salutation should ______. A、be the beginning part of the Body B、be the beginning part of the letter C、be the title of the addressee D、usually start with Dear

未知题型 赵某有事出国,走前把自己的一辆汽车交同事粱某保管,并约定保管期限为一年。双方对保管费未作约定,则()。

All Rights Reserved 版权所有©在线考试题库网(zxkao.com)

备案号:湘ICP备14005140号-7

经营许可证号:湘B2-20140064