Java MCQ : Data Types in Java (Multiple Choice Questions)


Question 1
Which of the following is data type stores longest ______________ floating point number.
A
boolean
B
double
C
float
D
long
Question 2
Which of the following data type(s) can store 64 bit Value.
A
float
B
double
C
long
D
int
Question 3
Short data type has a minimum value of _____________.
A
-127
B
-32,768
C
-2,147,483,648
D
-32,767
Question 4
Default value of variable having boolean data type is ___________.
A
0
B
1
C
false
D
true
Question 5
Default value of "double" data type is ___________.
A
0.0d
B
null
C
0.0
D
0
There are 5 questions to complete.