阅读以下程序,选择程序的输出结果
A: x = -5 y = -1
B: x =- 7 y = 0
C: x =- 6 y = -1
D: x = 7 y = -1
A: x = -5 y = -1
B: x =- 7 y = 0
C: x =- 6 y = -1
D: x = 7 y = -1
举一反三
- int x = 1, y =6; A: x = 6 y = 0 B: x = 7 y = 0 C: x = 6 y = -1 D: x = 7 y = -1 E: Compilation fails.
- intx=5,y=8,z=7;表达式z=!(x>y)||(x=1,y=3)计算后的结果 A: x=1,y=3,z=1 B: x=1,y=3,z=0 C: x=5,y=8,z=0 D: x=5,y=8,z=1
- 若要求:当数学式3 A: if(x>3)if(x<7)y=1; B: if(x>3||x<7)y=1; C: if(x<3);elseif(x<7)y=1 D: if(!(x<=3))y=y;elseif(7>x)y=1;
- 有如下事件程序,运行该程序后输出结果是_________。 Private Sub Command33_Click() Dim x As Integer, y As Integer x=1:y=0 Do Until y<=25 y=y+x*x x=x+1 Loop MsgBox "x=" & x &",y=" & y End Sub A: x=1,y=0 B: x=4,y=25 C: x=5,y=30 D: 输出其他结果
- 阅读下面的java语言代码,输出结果是( )。 int x, y = 1, z=0; if( z < 0 ) x= 3; else if ( y == 0 ) x= 5; else x= 7; System.out.println(x+”,”+ y); A: 7, 0 B: 7, 1 C: 3, 3 D: 以上都不正确