下列程序段运行后窗体上输出结果为( )。 Private Sub Command1_Click() a=5: b=4: c=3: d=2 x=3>2*b Or a=c And b<>c Or c>d Print x End Sub
A.1
B.True
C.False
D.2
第1题:
Private Sub Form_Activate()
Forj=1 to 3
x=3
ForI=1 to 2
x=x+6
NextI
Nextj
Print x
End Sub
程序运行后,窗体上显示的结果为上______。
第2题:
运行下列程序:
Private Sub form_Click( )
For i = 1 To 2
x = 1
For j = 1 To 3
x = 5
For k = 1 To 4
x = x + 2
Next k
Next j
Next i
Print x
End Sub
单击窗体后,则输出结果是( )。
A.5
B.13
C.25
D.48
第3题:
若有语句int x;,下面程序段的输出结果为 () for (x=3; x<6; x++) { printf((x%2) ? "**%d" : "##%dn", x); }
A.**3 ##4 **5
B.##3 **4 ##5
C.##3**4##5
D.**3##4 **5
第4题:
下列程序段运行后窗体上输出结果为( )。 Private Sub Command1 Click() a=5:b=4:c=3:d=2 X=3>2*b Or a=c And b<>C Or c>d Print X End Sub
A.1
B.True
C.False
D.2
第5题:
5、运行下列程序段,输出结果() struct country { int num; char name[10]; }x[5]={1,"China",2,"USA",3,"France",4, "England",5, "Spanish"}; struct country *p; p=x+2; printf("%d,%c",p->num,(*p).name[2]);
A.3,a
B.4,g
C.2,U
D.5,S