Which two statements are equivalent? 1. 16*4 2. 16>>2 3. 16/2^2 4. 16>>>2
Answer options
A
1 and 2
B
2 and 4
C
3 and 4
D
1 and 3
Correct answer: 2 and 4
Explanation
Both signed (>>) and unsigned (>>>) right shifts of 16 by 2 bits result in 4.
Correct answer: 2 and 4
Both signed (>>) and unsigned (>>>) right shifts of 16 by 2 bits result in 4.
PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.