【简答题】有如下程序: Private Sub command1_Click() a=1:b=1 Print'a=';a;',b=';b Call mult((a),b) Print 'a=';a;',b=';b 语句 End Sub Sub mult(x,y) K=2 * k y=3 * k Print 'x=';x;',y=';y End Sub 运行后,标有“语句”的Print语句的输出结果是【 】。
【单选题】有如下程序: Private Type stu X As String Y As Integer End Type Private Sub Command1 Click( ) Dim a As stu X='ABCD' Y=12345 Print a End Sub 程序运行时出现错误,错误的原因是( )。
【单选题】有如下程序。 Private Sub Command1_Click() Dim a As Single Dim b As Single a=5: b=4 Call Sub1(a, b) End Sub Sub Sub1(x As Single, y As Single) t=x x=t / y y=t Mod y End Sub 在调用运行上述程序后,a和b的值分别为
【单选题】有如下程序: Private Sub Command1_Click() Dim a As Single Dim b As Single a=5:b=4 Call Sub1(a,b) End Sub Sub Sub1(x As Single,y As Single) t=X X=t/Y Y=t Mod y End Sub 在调用运行上述程序后,a和b的值分别为