举一反三
- 以下程序段实现的输出是()。for(i=0;i<;=9;i++)s[i]=i;for(i=9;i>;=0;i--)printf("%2d",s[i]);[/i][/i] A: 9 7 5 3 1 B: 1 3 5 7 9 C: 9 8 7 6 5 4 3 2 1 0 D: 0 1 2 3 4 5 6 7 8 9
- 以下程序的输出结果是() main( ) { int i , x[3][3]={9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1} , *p=&x[1][1] ; for(i=0 ; i<4 ; i+=2) printf("%d " , p[i]) ;
- 【单选题】Which of the following matrices does not have the same determinant of matrix B: [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -1, 0, -9,-5] A. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 0; -1, 0, -9, -5] B. [1, 3, 0, 2; -2, -5, 7, 4; 1, 0, 9, 5; -1, 0, -9, -5] C. [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -3, -5, -2, -1] D. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 1; -1, 0, -9, -5]
- 下图所示机构自由度计算,( )是正确的。 A: mg src="http://p.ananas.chaoxing.com/star3/origin/cb07ca0fb12be985c301490389c1e187.jpg" B: F=3×7 –(2×9 + 2 – 2)– 2 = 1 C: F=3×7 –(2×9+ 2– 0)– 0 = 1 D: F=3×7 –(2×8+ 2 – 0)– 2 = 1 E: F=3×5 –(2×6+ 2– 0)– 0 = 1
- 有以下程序 ,其输出结果是 main() { int x,i; for(i=1;i < =50;i++) { x=i; if(x%2==0) if(x%3==0) if(x%7==0) printf("%d",i); } }
内容
- 0
for (int i = 1; i <= 10; i++){ if (i % 5 != 0) continue; Console.WriteLine("{0}", i); }该段程序执行后输出_____。 A: 5 10 B: 1 2 3 4 6 7 8 9 C: 5 D: 1 2 3 4 5 6 7 8 9 10
- 1
下面代码的输出结果为( ) 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
- 2
运行以下程序输出的结果是:( )。for i in range(3,9):if i%2==0:continueprint(i,end=' ') A: 3 5 7 9 B: 3 5 7 C: 3 D: 3 4 5 6 7 8 9
- 3
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
- 4
以下程序段运行后的输出结果是()inti;for(i=1;i<=7;i++){if(i%2!=0)continue;printf("%d",i);} A: 2 4 6 B: 1 3 5 C: 1 3 5 7 D: 1 2 3 4 5 6 7