Java - MCQ

Multiple Choice Questions


Share with a Friend

 

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

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



22. 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



23. 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



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



25. 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



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper