Professional Documents
Culture Documents
Q III. State whether the given statements are true or false: 5X1=5
1.Java compiler is used to compile your code.
a. True
b. False
2. Ctrl+D key is used to delete the pre-written code already in it.
a. True
b. False
3. Java offers five types of tokens.
a. True
b. False
4. Default value of char data type is ‘\u0000’
a. True
b. False
5. A variable can be used in a Java program even if it has not been declared.
a. True
b. False
Q IV. Name the Size and Range for the following: 5X1=5
1. What is the size of short data type in java?
a. 16 bits (2 bytes)
b. 16 bits (1 bytes)
c. 16 bits (3 bytes)
d. 16 bits (4 bytes)
2. What is the size of int data type in java?
a. 32 bits (3 bytes)
b. 32 bits (1 bytes)
c. 32 bits (4 bytes)
d. 32 bits (0 bytes)
a. boolean
b. char
c. string
d. real
6. Arrange the following primitive data types in the ascending order 2X1=2
of their size.
i. char
ii. byte
iii. double
iv. int
******************