Answer the following questions about basic operations in the Java programming language. |
1. The type long can be used to store values in the following range:
Ο -231 to 231 - 1
Ο -264 to 264
Ο -232 to 232 - 1
Ο -263 to 263 - 1
-263 to 263 - 1
2. Which of the following is not a hexadecimal number?
(A) 999
(B) (hex)23
(C) 0x556
(D) 0x1F2
Ο (A)
Ο (C)
Ο (A) & (B)
Ο (A), (B) & (C)
(A) & (B)
3. Select the invalid assignment statements from the following:
(A) float x = 238.88;
(B) double y = 0x443;
Ο (B)
Ο (A) & (C)
Ο (B) & (D)
Ο (A) & (B)
(A) & (C)