更多"下列程序执行后,i的值是( )。
public class "的相关试题:
[单项选择]下列程序执行后,i的值是( )。
public class Testfff {
pubic static void main(String args[])
{
int i;10;
do { i/=2;}
while(i- - >1);
System.out.println(i);
}
}
A. getCodeBase( )
B. getParameter(String)
C. getApplnfo( )
D. showStatus(String)
[单项选择]下列程序执行后,i的值是 public class Testfff { pubic static void main(String args[]) { int i;10; do { i/=2;} while(i- - >1); System.out.println(i); } }
A. 1
B. 5
C. 2
D. -1
[单项选择]下列语句序列执行后,j的值是______。 public class ex2 { public static void main(String[] args) { int j=2, i=5; while( j<i--) j++; System.out.println(j); } }
A. 3
B. 2
C. 4
D. 5
[单项选择]下面程序段的输出结果是______。 public class ex46 { public static void main(String args[]) { String str="Hello,"; str = str + "Guys!"; System.out .println (str); } }
A. Hello, Guys!
B. Guys!
C. Hello,
D. 编译不通过
[单项选择]下列程序的执行结果是( )。
public class Testgg {
public static void main(String args[]) {
float t=9.0f;
int q=5;
System.out.println((t++)*(- -q));
}
}
A. 12
B. 11
C. 10
D. 9
[单项选择]下列程序的执行结果是( )。
public class Testaa {
public static void main(String args[ ])
{ System.out.println(5/2);
}
}
A. 复选框
B. 列表框
C. 命令按钮
D. 选项组