4、下列代码( )会出错。1) public void modify() {2) int I, j, k;3) I = 100;4) while ( I >; 0 ) {5)j = I * 2;6) System.out.println (" The value of j is " + j );7) k = k + 1;8) I--;9) }10} A: line 4 B: line 6 C: line 7 D: line 8
4、下列代码( )会出错。1) public void modify() {2) int I, j, k;3) I = 100;4) while ( I >; 0 ) {5)j = I * 2;6) System.out.println (" The value of j is " + j );7) k = k + 1;8) I--;9) }10} A: line 4 B: line 6 C: line 7 D: line 8
下列代码哪行会出错: 1) public void modify() { 2) int I, j, k; 3) I = 100; 4) while ( I > 0 ) { 5) j = I * 2; 6) System.out.println (” The value of j is ” + j );7) k = k + 1; 8) I–; 9) } 10) } A: 4 B: 6 C: 7 D: 8
下列代码哪行会出错: 1) public void modify() { 2) int I, j, k; 3) I = 100; 4) while ( I > 0 ) { 5) j = I * 2; 6) System.out.println (” The value of j is ” + j );7) k = k + 1; 8) I–; 9) } 10) } A: 4 B: 6 C: 7 D: 8
若排列1 2 7 4 i 5 6 k 9 是偶排列,则i= 。
若排列1 2 7 4 i 5 6 k 9 是偶排列,则i= 。
变量a所占的内存字节数是 ______。 A: 4 B: 5 C: 6 D: 8 E: union U F: char st[4]; G: int i; H: long l; I: ; J: Struct A K: int c; L: union U u; M: a;
变量a所占的内存字节数是 ______。 A: 4 B: 5 C: 6 D: 8 E: union U F: char st[4]; G: int i; H: long l; I: ; J: Struct A K: int c; L: union U u; M: a;
有以下程序main(){inta[4][4]={{1,4,3,2},{8,6,5...l;k<4;k++)if(a[i][i]
有以下程序main(){inta[4][4]={{1,4,3,2},{8,6,5...l;k<4;k++)if(a[i][i]
下面程序的执行结果是 ______。 int k; for (k=10 ; k<3 ; k--) { if (k%3) k--; -k; k; cout<<k<< ", "; } A: 6, 3 B: 7, 4 C: 6, 2 D: 7, 4, 1
下面程序的执行结果是 ______。 int k; for (k=10 ; k<3 ; k--) { if (k%3) k--; -k; k; cout<<k<< ", "; } A: 6, 3 B: 7, 4 C: 6, 2 D: 7, 4, 1
Given the following code: 1) public void modify() { 2) int i, j, k; 3) i = 100; 4) while ( i > 0 ) { 5) j = i * 2; 6) System.out.println (" The value of j is " + j ); 7) k = k + 1; 8) i--; 9) } 10) } Which line might cause an error during compilation?() A: line 4 B: line 6 C: line 7 D: line 8
Given the following code: 1) public void modify() { 2) int i, j, k; 3) i = 100; 4) while ( i > 0 ) { 5) j = i * 2; 6) System.out.println (" The value of j is " + j ); 7) k = k + 1; 8) i--; 9) } 10) } Which line might cause an error during compilation?() A: line 4 B: line 6 C: line 7 D: line 8
以下程序的运行结果是: M=0 DO I=1,4 J=I DO K=1,3 L=K M=M+1 ENDDO ENDDO PRINT *, I, J ,K ,L,M END A: 5 4 4 3 12 B: 4 4 3 3 12 C: 5 4 4 3 5 D: 5 4 3 3 12
以下程序的运行结果是: M=0 DO I=1,4 J=I DO K=1,3 L=K M=M+1 ENDDO ENDDO PRINT *, I, J ,K ,L,M END A: 5 4 4 3 12 B: 4 4 3 3 12 C: 5 4 4 3 5 D: 5 4 3 3 12
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
下面代码的输出结果为( ) for i in range(1, 7): if i % 2 == 0: print(i, end=" ") A: 1 2 3 4 5 6 7 B: 1 2 3 4 5 6 C: 2 4 6 7 D: 2 4 6
下面代码的输出结果为( ) for i in range(1, 7): if i % 2 == 0: print(i, end=" ") A: 1 2 3 4 5 6 7 B: 1 2 3 4 5 6 C: 2 4 6 7 D: 2 4 6