Computer Sci. Quiz 3 (JAVA Basics)
1. What is the range of data type byte in Java?A. | -35536 to 35536 | B. | -128 to 127 |
C. | -128 to 128 | D. | -8 to 8 |
2. Which data type value is returned by all transcendental math functions?
A. | double | B. | float |
C. | long | D. | int |
3. What is the numerical range of a char in Java?
A. | 0 to 65536 | B. | 0 to 65535 |
C. | 0 to 127 | D. | 0 to 8 |
4. Which of these encoding types is commonly used for characters in Java?
A. | UNICODE | B. | EBCDIC |
C. | ASCII | D. | Visual |
5. Who is known as the father of Java programming language?
A. | Jeff Gosling | B. | Jephrey Gosling |
C. | James Gaon | D. | James Gosling |
6. Currently, which company is the official developer of JAVA standards?
A. | SSLC Labs | B. | Sun Microsystems |
C. | Oracle Corporation | D. | Google Inc. |
7. Which of these is returned by operators &, ?
A. | Boolean | B. | Character |
C. | Float | D. | Integer |
8. Modulus operator, %, can be applied to which of these?
A. | Integers | B. | Characters |
C. | Numbers | D. | All of the above |
9. Decrement operator, +, increases value of variable by what number?
A. | 0 | B. | 1 |
C. | 2 | D. | 3 |
10. Which operator is used to invert all the digits in binary representation of a number?
A. | << | B. | >> |
C. | !! | D. | ~ |
CACKLE comment system