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 17



Share with a Friend

Multiple Choice Questions


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

81. Which of these is not a bitwise operator?
A). &
B). &=
C). |=
D). <=
View Answer
Correct: D




82. Which operator is used to invert all the digits in a binary representation of a number?
A). ~
B). <<<
C). >>>
D). ^
View Answer
Correct: A




83. On applying Left shift operator, <<, on integer bits are lost one they are shifted past which position bit?
A). 1
B). 32
C). 33
D). 31
View Answer
Correct: D




84. Which right shift operator preserves the sign of the value?
A). <<
B). >>
C). <<=
D). >>=
View Answer
Correct: B




85. Which of these statements are incorrect?
A). The left shift operator, <<, shifts all of the bits in a value to the left specified number of times
B). The right shift operator, >>, shifts all of the bits in a value to the right specified number of times
C). The left shift operator can be used as an alternative to multiplying by 2
D). The right shift operator automatically fills the higher order bits with 0
View Answer
Correct: D