312-50V11 · Question #768
A common cryptographical tool is the use of XOR. XOR the following binary values: 10110001 00111010
The correct answer is B. 10001011. XOR (exclusive OR) is a bitwise operation that outputs 1 when corresponding bits differ and 0 when they are the same.
Question
A common cryptographical tool is the use of XOR. XOR the following binary values: 10110001 00111010
Options
- A10011101
- B10001011
- C10111100
- D11011000
How the community answered
(33 responses)- A9% (3)
- B85% (28)
- C3% (1)
- D3% (1)
Why each option
XOR (exclusive OR) is a bitwise operation that outputs 1 when corresponding bits differ and 0 when they are the same.
10011101 results from incorrect XOR calculations at multiple bit positions, particularly positions 3 and 4, where the bits actually cancel to 0.
Performing XOR bit-by-bit on 10110001 and 00111010 gives: 1^0=1, 0^0=0, 1^1=0, 1^1=0, 0^1=1, 0^0=0, 0^1=1, 1^0=1, yielding 10001011. This matches choice B and demonstrates the fundamental XOR rule that only differing bits produce a 1.
10111100 does not match the correct bit-by-bit XOR result and appears to confuse XOR with OR or AND operations at several positions.
11011000 is incorrect and would require flipping multiple bits from the true XOR result, indicating arithmetic errors in the calculation.
Concept tested: Bitwise XOR operation in binary cryptography
Source: https://csrc.nist.gov/glossary/term/xor
Topics
Community Discussion
No community discussion yet for this question.