The Gray-code equivalent of the binary number 1010 is:

2025

The Gray-code equivalent of the binary number 1010 is:

  1. A.

    1100

  2. B.

    1111

  3. C.

    1010

  4. D.

    0101

Attempted by 43 students.

Show answer & explanation

Correct answer: B

For binary 1010, the Gray-code bits are 1, 1 XOR 0 = 1, 0 XOR 1 = 1, and 1 XOR 0 = 1. Hence the Gray code is 1111.

Explore the full course: Cdac C Cat Complete Preparation