Given binary numbers A = 101010 and B = 111111, what is the result of (A AND…

2025

Given binary numbers A = 101010 and B = 111111, what is the result of (A AND B) OR (A XOR B)?

  1. A.

    111111

  2. B.

    101111

  3. C.

    111010

  4. D.

    101010

Attempted by 322 students.

Show answer & explanation

Correct answer: A

Step 1: Perform A AND B. The AND operation results in 1 only when both bits are 1. A = 101010 B = 111111 A AND B = 101010 Step 2: Perform A XOR B. The XOR operation results in 1 when the bits are different. A = 101010 B = 111111 A XOR B = 010101 Step 3: Perform (A AND B) OR (A XOR B). The OR operation results in 1 if at least one bit is 1. A AND B = 101010 A XOR B = 010101 (A AND B) OR (A XOR B) = 111111

Explore the full course: Bpsc