Java MCQ : Data Types in Java (Multiple Choice Questions)
Question 1 |
Byte variables are declared by use of the ____________ keyword (Using Primitive Data Type).
bytes | |
byte | |
Byte | |
Bytes |
Question 2 |
Range of Byte Data Type is ____________.
-128 to 255 | |
-128 to 256 | |
-127 to 128 | |
-128 to 127 |
Question 3 |
In order to fetch stream of data from network or file , following data type is used ___________.
double | |
byte | |
char | |
int |
Question 4 |
What is size of integer in Java Programming.
2 Bytes | |
8 Bytes | |
3 Bytes | |
4 Bytes |
Question 5 |
Primitive data type 'byte' is having size _______ byte(s) in Java Programming.
4 | |
3 | |
1 | |
2 |
Question 6 |
Primitive data type 'long' is having size _______ byte(s) in Java Programming.
1 | |
8 | |
2 | |
4 |
There are 6 questions to complete.