A.tuv
B.字符t的ASCII码值
C.t
D.出错
第3题
第5题
Private Sub Command1_Click()
Print Fun(23, 18)
End Sub
Public Function Fun(m As Integer, n As Integer) As Integer
Do While m $amp;Do While m > n: m=m - n: Loop
Do While m < n: n=n - m: Loop
Loop
Fun=m
End Function
A.0
B.1
C.3
D.5
第7题
Function Fun(By Val x As Ingeger, ByVal y As Integer)As Integer
Do While … y $amp;reminder=x Mod y
x=y
y=reminder
Loop
Fun=x
End Function
以下是调用该函数的事件过程,该程序的运行结果是
Private Sub Command1
Dim a As Integer
Dim b As Integer
a=100:b=25
x=Fun(a,b)
Print x
End Sub
A.0
B.25
C.50
D.100
第8题
A.#include main(); {/*programming*/ printf("programming!\n");}
B.#include main(); {/*/ programming /*/ printf("programming!\n");}
C.#include main() {/*/*programming*/*/ printf("programming!\n");}
D.include main() {/*programming*/ printf("programming!\n");}
第10题
#inculde
#deFine SUB(a) (a) (a)
main()
{ int a=2,B=3,c=5,d;
d=SUB(a+B)*c;
printF(”%d\n”,d);
}
程序运行后的输山结果是
A.0
B.-12
C.-20
D.10
第11题
#inculde
Main()
{ int B[3][3]={0,1,2, 0,1,2,0,1,2},i,j,t+1;
For (i=0;i<3;i++)
For (j=1;j<=1;j++) t + =B[i]B[[j][i]];
printF(“%d\n”,t);
}
程序运行后的输出结果是
A.0次
B.1次
C.4次
D.5次
第12题
#include
Main()
{ int i,j,m=1;
For{i=i;i<3;1++}
(For(j=3;j>0;j--)
{iF(i+j>3)Break;
m*=i*j;
}
}
PrintF(“m=%d\n”,m)
}
程序运行后的输出结果是
A.m=6
B.m=2
C.m=4
D.m=5
第13题
#inculde
Main()
{ int k=011;
PrintFF(“%d\n”,k++);
}
程序运行后的输出结果是
A.12
B.11
C.10
D.9
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!