Chapter 16. Answer Key for Sample Test Two
1. D
2. A
3. A, B, C, D
4. B
5. B
6. A, C
7. C
8. B
9. C
10. B, D
11. A, C
12. D
13. D, E
14. B
15. E
16. B
17. A, C, D
18. C
19. A, C
20. B, C
21. C, D
22. A, C
23. A, C
24. A
25. A
26. A, C
27. E
28. B, D
29. A
30. B, C
31. Either public static void or static public void
32. B
33. C
34. A, B
35. C
36. A, C, D
37. A, B, D
38. A
39. A
40. D
41. B
42. B
43. C
44. B
45. A
46. B
47. B
48. F
49. C
50. B
51. B, C
52. C
53. D
54. A, B, D
55. D
56. B, D
57. B, C
58. E
59. B, D
60. B
61. B
A1: | Answer D is correct. char is an unsigned 16-bit integer. Note that answer C is the range for the short primitive and is therefore incorrect. short and char both use 16 bits but char is never treated as a signed variable. ... |
Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.