問題詳情

第6題Given:1. public class Breaker{2. static String o = "";3. public static void main(String[] args){4. z:5. o = o + 2;6. for(int x=3; x<8; x++){7. if(x == 4) break;8. if(x == 6) break z;9. o = o + x;10. }11. System.out.println(o);12. }13. }What is the result?
(A) 23
(B) 234
(C) 235
(D) 2345
(E) 2357A
(B) 23457A
(C) Compilation fails.

參考答案

答案:A,C
難度:非常困難0.156069
統計:A(50),B(22),C(75),D(17),E(15)

用户評論

【用戶】戴彣娟

【年級】幼稚園下

【評論內容】(C) Compilation fails. 答案應該是G (G) Compilation fails.

【用戶】【站僕】摩檸Morning

【年級】小一下

【評論內容】原本答案為99,修改為A,C

【用戶】【站僕】摩檸Morning

【年級】小一下

【評論內容】原本題目:第6題Given:1. public class Breaker{2. static String o = "";3. public static void main(String[] args){4. z:5. o = o + 2;6. for(int x=3; x<8; x++){7. if(x == 4) break;8. if(x == 6) break z;9. o = o + x;10. }11. System.out.println(o);12. }13. }What is the result?(A) 23(B) 234(C) 235(D) 2345(E) 2357(F) 23457(G) Compilation fails. 修改成為第6題Given:1. public class Breaker{2. static String o = "";3. public static void main(String[] args){4. z:5. o = o + 2;6. for(int x=3; x<8; x++){7. if(x == 4) break;8. if(x == 6) break z;9. o = o + x;10. }11. System...