Difficulty: Easy
Correct Answer: Mask
Explanation:
Introduction / Context:
Low-level programming and digital logic often use a special value to clear, set, or test selected bits of another value. Recognizing the correct terminology is essential for understanding bitwise operations and systems programming.
Given Data / Assumptions:
Concept / Approach:
A bitmask, or simply mask, is a number whose bits are used to select or modify bits in another number. For example, AND with 0 clears a bit; OR with 1 sets a bit. Thus the controlling number is called a mask.
Step-by-Step Solution:
Verification / Alternative check:
Example: To zero the lower 4 bits of 0xAB (10101011), AND with 0xF0 (11110000). The value 0xF0 is the mask controlling the operation.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Mask.
Discussion & Comments