Difficulty: Easy
Correct Answer: 163 92
Explanation:
Introduction / Context:
This snippet tests understanding of bitwise AND (&) and XOR (^) on byte values and how hexadecimal translates to decimal output.
Given Data / Assumptions:
Concept / Approach:
Perform bitwise operations bit-by-bit:
Step-by-Step Solution:
Verification / Alternative check:
Compute using a calculator in programmer mode; confirm 0xF7 & 0xAB = 0xA3 and 0xF7 ^ 0xAB = 0x5C.
Why Other Options Are Wrong:
They invert the order or provide results inconsistent with AND/XOR truth tables.
Common Pitfalls:
Confusing decimal vs. hex outputs; remember Console.Write on a byte prints its decimal numeric value by default.
Final Answer:
163 92
Discussion & Comments