Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which one of the following logic expression is incorrect?

  • A.1 ⊕ 0 = 1
  • B.1 ⊕ 1 ⊕ 0 = 1
  • C.1 ⊕ 1 ⊕ 1 = 1 
  • D.1 ⊕ 1 = 0

Answer: B

Correct answer: 1 ⊕ 1 ⊕ 0 = 1

XOR gives 1 when an odd number of its arguments is 1. Here two of the three are 1, an even number, so the result is 0, not 1. Checking the others: \(1\oplus 0 = 1\) (one 1), \(1\oplus 1\oplus 1 = 1\) (three 1s), and \(1\oplus 1 = 0\) (two 1s).

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.