更多"下列程序执行后,变量S的值为 Dim s As Long,x As "的相关试题:
[单项选择]下列程序执行后,变量S的值为
Dim s As Long,x As Integer
s=0
For x=1 To 10 Step 2
s=s+x
Next x
Text1.Text=s
A. 10
B. 25
C. 50
D. 100
[单项选择]下列程序执行后,变量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
[单项选择]下列程序执行后,变量S的值为______ 。 Dim s As Long,X As Integer s=0 X=1 Do While x<10 s= s+ x x=x+2 Loop Print s
A. 10
B. 25
C. 50
D. 100
[单项选择]下列程序执行后,变量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 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=b:b=c:c=d End if
A. 0
B. 1000
C. 20
D. 100
[单项选择]下列程序执行后,变量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
[单项选择]下列程序段执行后,内存变量y的值是( )。 x=76543 y=0 DO WHILE x>0 y=x%10+Y*10 X=int(x/10) ENDDO
A. 3456
B. 34567
C. 7654
D. 76543
[单项选择]下列程序段执行后,内存变量s1的值是
s1="network"
s1=stuff(s1,4,4,"BIOS")
s1
A. network
B. netBIOS
C. net
D. BIOS
[单项选择]
下列程序段执行后,内存变量s1的值是()。
S1="network"
s1=stuff(s1,4,4,"BIOS")
s1
A. network
B. netBIOS
C. net
D. BIOS
[单项选择]下列程序段执行后,内存变量s1的值是 s1="network" s1=stuff(s1,4,4,"BIOS") s1=()。
A. network
B. netBIOS
C. net
D. BIOS
[单项选择] 以下程序段执行后,整型变量s的值为()。 s=1 For i=1 To 4 s=s*i Next i
A. 1
B. 4
C. 24
D. 36
[单项选择] 以下程序段执行后,整型变量s的值为()。 s=4 For i=1 To 4 s=s-1 Next i
A. 0
B. -1
C. 4
D. 5
[单项选择]下列程序段执行后,执行的结果是______ 。 Dim M(10) Dim N(10) i=3 For j = 1 To 5 M(j) = j N(i) = 2 * i + j Next j Print N(i); M(i)
A. 12 4
B. 11 3
C. 3 11
D. 10 2