【单选题】请阅读下列示意代码inta=1;intb=a++;intc=++a;intd=a+++++a;System.out.print(a+","+b+","+c+","+d);下面选项中,哪一个是程序的输出结果()
A. 5,1,3,9
B. 5,2,3,9
C. 5,1,2,9
D. 5,1,3,8
A. 5,1,3,9
B. 5,2,3,9
C. 5,1,2,9
D. 5,1,3,8
举一反三
- 请阅读下列示意代码int a = 1;int b = a++;int c = ++a;int d = a++ + ++a;System.out.print(a + "," + b + "," + c + "," + d);下面选项中,哪一个是程序的输出结果( ) A: 5,1,3,9 B: 5,2,3,9 C: 5,1,2,9 D: 5,1,3,8
- 以下程序的输出结果是___________。for i in range(1,11): print(i, end = " ") A: 1 2 3 4 5 6 7 8 9 B: 1 2 3 4 5 6 7 8 9 10 C: 1 2 3 4 5 D: 1 3 5 7 9
- 【单选题】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]
- 【单选题】MATLAB中指令:a = 1: 2: 10,生成矩阵a,矩阵对应矩阵() A. [1 3 5 7 9 11] B. [1 3 5 7 9 ] C. [1 3 5 7] D. [2 4 6 8]
- 【单选题】下面程序段的输出结果是 () 。 int k,a[3][3]={1,2,3,4,5,6,7,8,9}; for (k=0;k<3;k++) printf(“%d”,a[k][2-k]); ( A ) 3 5 7 ( B ) 3 6 9 ( C ) 1 5 9 ( D ) 1 4 7 A. 3 5 7 B. 3 6 9 C. 1 5 9 D. ( A ) 1 4 7