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


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