更多"下列程序执行后,变量a的值为______。 dim a, b, c,"的相关试题:
[单项选择]下列程序执行后,变量x的值为( )。
Dim a, b, c, d As Single
Dim x As Single
a=10
b=30
c=400
If b>a Then
d=a:a=b:b=d
End If
If b>c Then
x=b
Else If a>c Then
x=c
Else
x=a
End If
A. 10
B. 30
C. 400
D. 430
[单项选择]下列程序执行后,变量x的值为( )。
Dim a,b,c,d As Single
Dim x As Single
a=10
b=30
c=400
If b>a Then
d=a:a=b:b=d
End If
If b>c Then
x=b
Else If a>c Then
x=c
Else
x=a
End If
A. 10
B. 30
C. 400
D. 430
[单项选择]下列程序执行后,变量x的值为( )。
Dima,b,c,d As Single
Dim x As Single
a=100
b=20
c=1000
Ifb>a Then
d=a:a=b:b=d
End If
Ifb>c Then
X=b
Elseif a>c Then
x=c
Else
x=a
End If
A. 100
B. 20
C. 1000
D. 0
[单项选择]下列程序执行后,变量X的值为( )。
Dim f1, b, c, d As Single
Dim X As Single
f1=10
b=30
C=400
If b>f1 Then
d=f1:f1=b:b=d
EndIf
If b>e Then
x=b
ElseIf f1>c Then
x=c
Else
x=a
EndIf
A. 10
B. 30
C. 400
D. 430
[单项选择]下列程序执行后,变量a的值为( )。
Dim a,b,c,d as single
a=100
b=20
c=1000
if b>a Then
d=a:a=b:b=d
End if
if c>a Then
d=a:a=c:c=d
End if
if c>b Then
d=b:b=c:c=d
End if
A. 0
B. 1000
C. 20
D. 100
[单项选择]下列程序执行后,变量x的值为______。
Dim a, b, c, d As Single
Dim x As Single
a=100
b=20
c=1000
If b>a Then
d=a: a=b: b=d
End If
If b>c Then
x=b
Elseif a>c then
x=c
Else
x=a
End If
A. 100
B. 20
C. 1000
D. 0
[单项选择]下列程序执行后,变量a的值为______。
dim a, b, c, d as single
a=100
b=20
c=1000
if b>a then
d=a: a=b: b=d
end if
if c>a then
d=a: a=c: c: d
end if
if c>b then
d=b: b=c: c=d
end if
A. 0
B. 1000
C. 20
D. 100
[单项选择]下列程序段执行后,变量c的值为( )。
public class Test
public static void main(String[ ] args)
float a=10, b=9, c=8;
if (--a==B) c= --a/c;
System. out. println (c) ;
A. 1.125
B. 1.0
C. 1.25
D. 0.0
[填空题]下面程序段运行后,变量X的值为 【14】 。
Dim X As Integer
Dim I as Integer
X = 0
For i = 0 to 50 step 10
X=X+i
Print X
[填空题]下面程序段运行后,变量x的值为上 【15】 。
Dim x As Integer
Dim i As Integer
x=O
for i=0 to 50 step 10
X=X+i
next i
[填空题]下面程序段运行后,变量X的值为【16】。
Dim x AS Integer
Dim I AS Integer
x=0
for I=0 to 50 step 10
X=X+I。
next I
Print X
[填空题]下面程序段运行后,变量X的值为 【16】 。
Dim x AS Integer
Dim I As Integer
x=0
for I=0 to 50 step 10
x=x+1
next I
Print x
[填空题]下面程序段运行后,变量x的值为上 【15】 。
Dim x As Integer
Dim i As Integer
x=O
for i=0 to 50 step 10
X=X+i
next i
[单项选择]下列程序执行后,执行的结果是______ 。
Dim M(2)
For i = 1 To 2
M(i) = 0
Next i
k=2
For i = 1 To k
For j = 1 To k
M(j) = M(i) + 1
Print M(k):
Next j
Next I
A. 1234
B. 0123
C. 0223
D. 2345
[填空题]在窗体上画一个命令按钮,然后编写如下程序(假定变量x是—个窗体级变量)
Dim x As Integer
Sub inc(a AS Integer)
X=K+a
End Sub
Private Sub Command1_Click( )
inc2
inc3
inc4
Prmt x;
Ead Sub
程序执行后,单击Command1命令按钮,输出的结果是 【11】 。