Discussion
Which one of the following logic expression is incorrect?
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.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development