Instruction
- Total number of questions : 10.
- Time alloted : 10 minutes.
- Each question carry 1 mark.
- No Negative marks
- DO NOT refresh the page.
- All the best :-).
1. |
Which of these literals can be contained in float data type variable? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Range of float data type is -(3.4e38) To +(3.4e38) |
2. |
Which one is a valid declaration of a boolean? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: Boolean can only be assigned true or false literals. |
3. |
Which of these can not be used for a variable name in Java? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Keywords are specially reserved words which can not be used for naming a user defined variable, example : class, int, for etc. |
4. |
What is Truncation is Java? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: None. |
5. |
Which of these is necessary to specify at time of array initialization? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: None. |
6. |
Which of these statements are incorrect? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: None. |
7. |
Which of these statements are incorrect? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The right shift operator automatically fills the higher order bit with its previous contents each time a shift occurs. This also preserves the sign of the value. |
8. |
Which of these statement is correct? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: true and false are keywords, they are non numeric values which do no relate to zero or non zero numbers. true and false are boolean values. |
9. |
Which of these statements are incorrect? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: Division operator, /, has equal precedence as of multiplication operator. In expression involving multiplication and division evaluation of expression will begin from right side when no brackets are used. |
10. |
Which of these statement is incorrect? |
|||||||||||||||||||
|