公務人員特種考試關務人員計算機概要111 年第 7 題單選題
下列那一個布林運算式與(F = A xor B)完全等效?
AF =((not A)or B)and( A or(not B))
BF = ((not A)and B)or(A and(not B))正確答案
CF =(A and B)or ((not A)and(not B))
DF =(A or B)and((not A)and(not B))
B正確答案
XOR 的標準展開式為 (not A and B) or (A and not B),選項 B 完全等效。
逐選項解析
AF =((not A)or B)and( A or(not B))✕ 易錯陷阱
此式為 (A'+B)(A+B'),展開後為 A'B' + AB,即 XNOR(同或),與 XOR 互補,並非等效。
BF = ((not A)and B)or(A and(not B))✓ 正確
CF =(A and B)or ((not A)and(not B))✕ 易錯陷阱
此式為 AB + A'B',即 XNOR(同或 gate),輸出與 XOR 恰好相反,並非等效。
DF =(A or B)and((not A)and(not B))✕ 錯誤
立即註冊,看完整詳解
這題的完整詳解,註冊就能看 · 每天 2 題免費
精選詳解- 完整逐選項解析
- 秒殺解題技巧與破題關鍵
- 關鍵知識表整理
- 陷阱與易錯提醒
- 同考點歷屆題庫連續刷題與錯題本