ITPEC IP April 2020 Question 4

Source exam: ITPEC IP April 2020Topic: Basic Theory

ITPEC IP April 2020 — Question 4 of 100

AND with 00001111 clears the high-order four bits and preserves the low-order four bits of X. For every high bit, AND with 0 produces 0. For every low bit, AND with 1 returns the corresponding bit of X unchanged.

Answer (c)

Why not others:
- the mask does not preserve the high-order half

- AND cannot force a result bit to 1 unless both corresponding input bits are already 1

Key rule: In a bit mask used with AND, 0 clears a bit and 1 preserves the original bit.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.