题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-06-05 03:20:49

[单项选择]下列程序执行后,变量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

更多"下列程序执行后,变量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】

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码