下列程序段的执行结果是( )。 x = 5: y = 7: z = 8 If x < y Then t = x: x = y: y = t End If If y < z Then t = y: y = z: z = t If x < y Then t = x: x = y: y = t End If End If Print x, y, z A: 8 5 7 B: 8 7 5 C: 5 7 8 D: 7 5 8
下列程序段的执行结果是( )。 x = 5: y = 7: z = 8 If x < y Then t = x: x = y: y = t End If If y < z Then t = y: y = z: z = t If x < y Then t = x: x = y: y = t End If End If Print x, y, z A: 8 5 7 B: 8 7 5 C: 5 7 8 D: 7 5 8
下列程序的运行结果是( )。t = 0 while t < 5: print(t, " is less than 5") t = t + 1else: print(t, " is not less than 5") A: 0 is less than 51 is less than 52 is less than 53 is less than 54 is less than 55 is not less than 5 B: 1 is less than 52 is less than 53 is less than 54 is less than 55 is less than 55 is not less than 5 C: 0 is less than 51 is less than 52 is less than 53 is less than 54 is less than 5 D: 1 is less than 52 is less than 53 is less than 54 is less than 55 is less than 5
下列程序的运行结果是( )。t = 0 while t < 5: print(t, " is less than 5") t = t + 1else: print(t, " is not less than 5") A: 0 is less than 51 is less than 52 is less than 53 is less than 54 is less than 55 is not less than 5 B: 1 is less than 52 is less than 53 is less than 54 is less than 55 is less than 55 is not less than 5 C: 0 is less than 51 is less than 52 is less than 53 is less than 54 is less than 5 D: 1 is less than 52 is less than 53 is less than 54 is less than 55 is less than 5
测试题5 A: 51 B: 52 C: 53 D: 54
测试题5 A: 51 B: 52 C: 53 D: 54
若有int x=5,y=7,t;,则执行下列程序段后t的输出结果是() t=x *=x>y?x:y; A: 5 B: 7 C: 35 D: 49
若有int x=5,y=7,t;,则执行下列程序段后t的输出结果是() t=x *=x>y?x:y; A: 5 B: 7 C: 35 D: 49
Public Sub Proc(a%( )) Static i% Do a(i) = a(i) + a(i + 1) i = i + 1 Loop While i < 2 End Sub Private Sub Command1_Click( ) Dim m%, i%, x%(10) For i = 0 To 4: x(i) = i + 1: Next i For i = 1 To 2: Call Proc(x): Next i For i = 0 To 4: Print x(i);: Next i End Sub A: 3 4 7 5 6 B: 3 5 7 4 5 C: 2 3 4 4 5 D: 4 5 6 7 8
Public Sub Proc(a%( )) Static i% Do a(i) = a(i) + a(i + 1) i = i + 1 Loop While i < 2 End Sub Private Sub Command1_Click( ) Dim m%, i%, x%(10) For i = 0 To 4: x(i) = i + 1: Next i For i = 1 To 2: Call Proc(x): Next i For i = 0 To 4: Print x(i);: Next i End Sub A: 3 4 7 5 6 B: 3 5 7 4 5 C: 2 3 4 4 5 D: 4 5 6 7 8
下列程序段的执行结果为 i=9 x=5 Do i=i + 1 x=x + 2 Loop Until i>=7 Print "i=":i Print "x=":X A.i=4x=5 B.i=7x=15 C.i=6x=8 D.i=10x=7
下列程序段的执行结果为 i=9 x=5 Do i=i + 1 x=x + 2 Loop Until i>=7 Print "i=":i Print "x=":X A.i=4x=5 B.i=7x=15 C.i=6x=8 D.i=10x=7
下列关于串行化说法有误的是( )。 A: I=4 x=5 B: I=7 x=15 C: I=6 x=8 D: I=7 x=11
下列关于串行化说法有误的是( )。 A: I=4 x=5 B: I=7 x=15 C: I=6 x=8 D: I=7 x=11
下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click() Dim x (10)As Integer,y(5)As Integer For i=1 to 10 x(i)=10-i+1 Next For i=1 to 5 y(i)=x(2*i-1)+x(2*i) Next For i=1 to 5 Print y(i) Next End Sub A.3 7 11 45 19 B.19 15 11 7 3 C.1 3 5 7 9 D.不确定的值
下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click() Dim x (10)As Integer,y(5)As Integer For i=1 to 10 x(i)=10-i+1 Next For i=1 to 5 y(i)=x(2*i-1)+x(2*i) Next For i=1 to 5 Print y(i) Next End Sub A.3 7 11 45 19 B.19 15 11 7 3 C.1 3 5 7 9 D.不确定的值
有int型变量x,i,j,k,则表达式x=(i=5,j=6,k=7)的值为()。 A: 5 B: 7 C: 6 D: 18
有int型变量x,i,j,k,则表达式x=(i=5,j=6,k=7)的值为()。 A: 5 B: 7 C: 6 D: 18
在VB中,要表示条件x是5或7的倍数应采用的表达式为_______。 A: x\5 or x\7 B: x mod 5=0 and x mod 7=0 C: x mod 5=0 or x mod 7=0 D: x\5 and x\7
在VB中,要表示条件x是5或7的倍数应采用的表达式为_______。 A: x\5 or x\7 B: x mod 5=0 and x mod 7=0 C: x mod 5=0 or x mod 7=0 D: x\5 and x\7