C Programming Multiple Choice Questions (MCQ) | IT Developer <?php echo $page_title; ?>
IT Developer

Java Programming Multiple Choice Questions (MCQ)

Introduction to Java - Multiple Choice Questions (MCQ) - Set 19



Share with a Friend

Multiple Choice Questions


Java - Introduction to Java - Multiple Choice Questions (MCQ) - Set 19

91. What is the output of relational operators ?
A). Integer
B). Boolean
C). Characters
D). Double
View Answer
Correct: B




92. Which of these is returned by "greater than", "less than" and "equal to" operators ?
A). Integers
B). Floating - point numbers
C). Boolean
D). None of the mentioned
View Answer
Correct: C




93. Which of the following operators can operate on a boolean variable ?
   1. &&
   2. ==
   3. ?:
   4. +=
 
A). 3 & 2
B). 1 & 4
C). 1, 2 & 4
D). 1, 2 & 3
View Answer
Correct: D




94. Which of these operators can skip evaluating right hand operand ?
A). !
B). |
C). &
D). &&
View Answer
Correct: D




95. Which of these statements is correct ?
A). true and false are numeric values 1 and 0
B). true and false are numeric values 0 and 1
C). true is any non zero value and false is 0
D). true and false are non numeric values
View Answer
Correct: D