Difficulty: Easy
Correct Answer: Bit manipulation
Explanation:
Introduction / Context:
Many systems-level tasks—device drivers, cryptography, compression, checksums, and graphics—depend on altering specific bits rather than whole numbers. The umbrella term for these operations is essential vocabulary for computer engineers and embedded programmers.
Given Data / Assumptions:
Concept / Approach:
The correct term is bit manipulation. It encompasses using operators such as AND, OR, XOR, NOT, shifts, and rotates to set, clear, test, and pack flags or fields. Bit manipulation improves performance and memory footprint by avoiding larger data structures when only flags are needed.
Step-by-Step Solution:
Verification / Alternative check:
Programming references describe idioms such as flags = flags | (1 << k) to set bit k, or flags = flags & ~(1 << k) to clear bit k—canonical examples of bit manipulation practiced across C, C++, Java, and assembly.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Bit manipulation.
Discussion & Comments