5 years ago in Java Operators

# On applying Left shift operator, <<, on an integer bits are lost one they are shifted past which position bit?

[A] 1
[B] 32
[C] 33
[D] 31

## Overall Stats

Attempted 201
Correct 20
Incorrect 91
Viewed 90

Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying 1 is correct answer

Vaibhav Bisht - 1 month ago

Cos Sinus - 1 month ago

Cos Sinus from Casablanca, Morocco is saying 32 is correct answer

Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying 31 is correct answer

Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying 1 is correct answer

## Related Questions

### Which of these is returned by greater than, <, and equal to, ==, operator?

• [A] Integers
• [B] Floating - point numbers
• [C] Boolean
• [D] None of the mentioned

### Which of these statements are incorrect?

• [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.

• [A] 25
• [B] 24
• [C] 32
• [D] 33

### what is the output of the program ?``````class Equals { public static void main(String [] args) { int x = 100; double y = 100.1; boolean b = (x = y); System.out.println(b); } }``````

• [A] true
• [B] false
• [C] Compilation fails
• [D] An exception is thrown at run time

• [A] ~
• [B] <<<
• [C] >>>
• [D] ^