C Programming - Bitwise Operators
Exercise :: Bitwise Operators - Yes / No Questions
1. |
Bitwise & can be used in conjunction with ~ operator to turn off 1 or more bits in a number. |
Answer: Option A
Explanation:
|
2. |
Bitwise can be used to reverse a sign of a number. |
Answer: Option B
Explanation:
|
3. |
Bitwise can be used to generate a random number. |
Answer: Option B
Explanation:
|
4. |
Bitwise | can be used to multiply a number by powers of 2. |
Answer: Option B
Explanation:
|
5. |
Bitwise | can be used to set multiple bits in number. |
Answer: Option A
Explanation:
|