Computer Science – Boolean logic | e-Consult
Boolean logic (1 questions)
Login to see all questions.
Click on a question to view the answer
The truth table indicates that the output is 1 (True) when P is 0 and Q is 1, or when P is 1 and Q is 0, or when P is 1 and Q is 1. This corresponds to the logic expression:
Output = (NOT P) OR Q OR (P AND Q)
Alternatively, this can be simplified to:
Output = ¬P OR Q OR P&Q
Another equivalent expression is Output = P & Q OR Q