TAILIEUCHUNG - Sun certified programmer developer for java 2 study guide phần 5

D cũng đúng bởi vì phần là một phần của hệ thống phân cấp của t, bởi vì Ticker mở rộng phần trong dòng 2. ý là không chính xác bởi vì cú pháp là sai. Một biến (hoặc null) luôn luôn xuất hiện trước khi các nhà điều hành instanceof, và một loại xuất hiện sau khi nó. C và E là không chính xác | Self Test 65 4. Given the following 1. public class Switch2 2. final static short x 2 3. public static int y 0 4. public static void main String args 5. for int z 0 z 4 z 6. switch z 7. case x 0 8. default def 9. case x-1 1 break 10. case x-2 2 11. 12. 13. 14. what is the result A. 0 def 1 B. 2 1 0 def 1 C. 2 1 0 def def D. 2 1 def 0 def 1 E. 2 1 2 0 def 1 2 F. 2 1 0 def 1 def 1 5. Given the following 1. public class If2 2. static boolean b1 b2 3. public static void main String args 4. int x 0 5. if b1 6. if b2 7. b1 true 8. x 9. if 5 6 10 . x 11 . 12 . if b1 x x 10 13 . else if b2 true x x 100 14 . else if b1 b2 x x 1000 15 . 16 . 66 Chapter 4 Flow Control Exceptions and Assertions 17. x 18. 19. what is the result A. 0 B. 1 C. 101 D. 111 E. 1001 F. 1101 Flow Control loops Sun Objective 6. Given the following 1. public class While 2. public void loop 3. int x 0 4. while 1 5. x plus one is x 1 6. 7. 8. Which statement is true A. There is a syntax error on line 1. B. There are syntax errors on lines 1 and 4. C. There are syntax errors on lines 1 4 and 5. D. There is a syntax error on line 4. E. There are syntax errors on lines 4 and 5. F. There is a syntax error on line 5. 7. Given the following 1. class For 2. public void test 3. 4. x x Self Test 67 5. 6. 7. and the following output x 0 x 1 which two lines of code inserted independently will cause this output Choose two. A. for int x -1 x 2 x B. for int x 1 x 3 x C. for int x 0 x 2 x D. for int x 0 x 2 x E. for int x 0 x 2 x 8. Given the following 1. public class Test 2. public static void main String args 3. int I 1 4. do while I 1 5. I is I 6. while I 1 7. 8. what is the result A. I is 1 B. I is 1 I is 1 C. No output is produced. D. Compilation error E. I is 1 I is 1 I is 1 in an infinite loop. 9. Given the following 11. int I 0 12. outer 13. while true 14. I 15. inner 16.

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.