题目内容
(请给出正确答案)
[单选题]
下列VB程序段执行后x的值为()x=1a=6If a<10thenx=5End ifPrint x
A.6
B.5
C.1
D.10
答案
B、5
A.6
B.5
C.1
D.10
B、5
第1题
A.10
B.100
C.9
D.50
第2题
A.ture
B.false
C.0
D.1
第3题
有如下程序段 int a=14,b=15,x; char c='A'; x=(a&&b)&&(c<'B'); 执行该程序段后,x的值为______。
A.真
B.假
C.0
D.1
第4题
A.3
B.4
C.34
D.35
第6题
A.x=1,y=2
B.x=2,y=2
C.x=2,y=1
D.x=1,y=1
第7题
下列程序段执行后的输出结果为()。 int x=3; int y=10; System.out.println(y%x);
A.0
B.1
C.2
D.3
第10题
第11题
执行下面的程序段,x的值为【 】。 Private Sub Command1_Click() For i=1 To 9 a=a + i Next i x=Val(i) MsgBox x End Sub