更多"下列语句执行后,i的值是( )。 public class Tes"的相关试题:
[单项选择]下列语句序列执行后,k的值是( )。 public class Test{ public static void main (String[] args) { int m=3,n=6,k=0; while ((m++) <(n--)) ++k; System. out. println (k); } }
A. 0
B. 1
C. 2
D. 3
[单项选择]下列语句输出结果为( )。 public class test { public static void main (String args [ ]) { byte b=OXA; System.out.println(b); } }
A. OXA
B. A
C. 1
D. 10
[单项选择]下列语句输出结果为( )。 public class test { public static void main (String args[]) { int x=10,y=9; boolean b=true; System.out.println(x<y||!b); } }
A. true
B. false
C. 1
D. 0
[单项选择]下列语句输出结果为( )。 public class test { public static void main(String args[]) String s1 =newString("HOW"); String s2=newString("How"): System.out.pnntln(!(s1.equals(s2))); } }
A. false
B. true
C. 0
D. 1
[单项选择]下列语句输出结果为( )。 public class test { public static void main (String args[]) { int a=-67,b=116,c=78; int e=~c>>2&(al~b); System.out.println(e); } }
A. 70
B. 84
C. 65
D. 80
[单项选择]下列程序执行后,j的值是( )。 public class Test { public static void main(String args[]) { int j=1; for(int i=7; i>0; i-=2) j*=2; System.out.println(j); } }
A. 15
B. 1
C. 32
D. 16
[单项选择]下列语句输出结果为( )。public class test{public static void main(String args []){String s1=new String("How");String s2=new String("How");System.out. println(!(s1 ==s2));}
A. false
B. true
C. 1
D. 0
[单项选择]下列语句输出的结果为( )。 public class test { public static void main(String args[]) { byte b=OXA; System.out.println(b); } }
A. OXA
B. A
C. 1
D. 10
[单项选择]下列语句输出结果为( )。 public class test/ { public static void main (String args[]) { String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1.equals(s2))); } }
A. false
B. true
C. 0
D. 1
[单项选择]下列语句中变量result的结果为( )。 public class test { public static void main(String args[ ]) { int sum=10; int r=3; int result=sum %( ++r); System.out.println(result); } }
A. 3
B. 10
C. 2
D. 4