Mcq On Java Data types

1. Which of the following is smallest integer data type ?

A. int
B. byte
C. short
D. long

View Answer

2. Which of the following is not a primitive data type ?

A. byte
B. enum
C. short
D. int

View Answer

3.Integer Data type does not include following primitive data type ____________.

A. long
B. byte
C. short
D. double

View Answer

4. Which of the following data types comes under floating data types ?

A. int
B. double
C. long
D. byte

View Answer

5. Character data type cannot store following value.

A. Digit
B. Letter
C. Special Character
D. String

View Answer

6. Range of Byte Data Type is ____________.

A. -128 to 128
B. -127 to 127
C. -127 to 128
D. -128 to 127

View Answer

7. What is size of integer in Java Programming.

A. 1 Bytes
B. 2 Bytes
C. 4 Bytes
D. 8 Bytes

View Answer

8. Which of the following data type(s) can store 64 bit Value.

A. boolean
B. int
C. float
D. long

View Answer

9. Short data type has a minimum value of _____________.

A. -32,768
B. -32,767
C. 32768
D. 32767

View Answer

10.Default value of variable having boolean data type is ___________.

A. True
B. False
C. Null
D. Garbage

View Answer

Also check :


* You must be logged in to add comment.