CSE MCQs :: JAVA MCQs
- Which of these statements are incorrect?
- Which of these is returned by greater than, <, and equal to, ==, operator?
-
Which of the following operators can operate on a boolean variable?
1. &&
2. ==
3. ?:
4. +=
- Which of these statement is correct?
- What should be expression1 evaluate to in using ternary operator as in this line? expression1 ? expression2 : expression3
-
What is the order of precedence (highest to lowest) of following operators?
1. &
2. ^
3. ?:
A.
The left shift operator, <<, shifts all of the bite in a value to the left specified number of times.
|
B.
The right shift operator, >>, shifts all of the bite 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.
|