更多"下列根据此段程序的运算的结果正确的是( )。 Dim x AS Si"的相关试题:
[单项选择]下列根据此段程序的运算的结果正确的是( )。
Dim × As Single
Dim y As Single
If ×< 0 Then
y=3
Elself ×< l Then
y=2 * x
Else:y=-4 * x 十 6
End If
A. 当x=2时,y=-2
B. 当x=-1时,y=-2
C. 当x=0.5时,y=4
D. 当x=-2.5时,y=ll
[单项选择]下列根据此段程序的运算的结果正确的是( )。 Dim x AS Single Dim y As Single If x < 0 Then y = 3 ElseIf x< 1 Then y = 2 * x Else:y = -4 * x + 6 End If
A. 当x=2时,y=-2
B. 当X=-1时,y=-2
C. 当x=0.5时,y=4
D. 当x=-2.5时,y=11
[单项选择]下列程序执行后,变量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
[单项选择]下面程序的运算结果为 ( )。 #include < iostream > using namespace ~td; int i; int fun( ) { static int i = 10; return + + i; void main ( ) { fun( ); cout <<fun( ) <<" ," <<i; }
A. 10,100
B. 12,100
C. 12,12
D. 11,100
[单项选择]执行下列逻辑运算(即逻辑或运算):01010100 V 10010011,其运算结果是
A. 00010000
B. 11010111
C. 11100111
D. 11000111
[单项选择]下列程序执行后,变量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=10:b=20:c=40
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. 10
B. 40
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=b:b=c:c=d
End if
A. 0
B. 1000
C. 20
D. 100
[单项选择]执行下列二进制逻辑乘法运算(即逻辑与运算)01011001^10100111其运算结果是()。
A. 00000000
B. 11111111
C. 00000001
D. 11111110
[单项选择]下列程序执行后,变量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