教资会网络 | UGC NET CS 2016 年 7 月 – II |问题 6
以下哪个逻辑表达式不正确?
(A) 1 ⊕ 0 = 1
(B) 1 ⊕ 1 ⊕ 1 = 1
(C) 1 ⊕ 1 ⊕ 0 = 1
(D) 1 ⊕ 1 = 0答案: (C)
解释:我们知道 x ⊕ y = x`y + xy`
所以,
- 1 ⊕ 0 = 1`0 + 10` = 0 * 0 + 1 * 1 = 0 + 1 = 1
- 1 ⊕ 1 ⊕ 1 = (1 ⊕ 1) ⊕ 1 = (1`1 + 11`) ⊕ 1 = (0) ⊕ 1 = 1`0 + 10` = 0 * 0 + 1 * 1 = 0 + 1 = 1
- 1 ⊕ 1 ⊕ 0 = 1 ⊕ (1 ⊕ 0 ) = 1 ⊕ ( 1`0 + 10` = 0 * 0 + 1 * 1 = 0 + 1 ) = 1 ⊕ 1 = 1`1 + 11` = 0
- 1 ⊕ 1 = 1`1 + 11` = 0
所以,选项(C)是正确的。
这个问题的测验