Q. What will be the output of the given code?
Code:
num=4>>2 puts num
β
Correct Answer: (D)
1
Explanation: left operands value is moved right by the number of bits specified by the right operand.So the answer is 1.