Multiple Choice Quiz
Question 1: Bitwise Operations
Question 2: Bitwise Shift Operations
Question 3: Complex Bitwise Expression
Question 4: Precedence and Math Operations
Question 5: Comparison and Control Statements
Question 6: Complex Control Flow
Question 7: Logical Operators with Bitwise Logic
Question 8: Increment/Decrement Operators
Question 9: Switch and Fall-through Behavior
Question 10: Ternary Operator and Bitwise Operations
Question 11: Bitwise Manipulation
Question 12: Bit Counting
Question 13: XOR Swap
Question 14: Bitmask Operations
Question 15: Finding Single Number
Summary of Key Concepts
Bitwise Operators
- & (AND): Sets a bit to 1 if both corresponding bits are 1
- | (OR): Sets a bit to 1 if either corresponding bit is 1