Solveeit Logo

Question

Question: The Boolean expression \[\left( {p \wedge q} \right) \vee \left( {\left( { \sim q} \right) \vee p} \...

The Boolean expression (pq)((q)p)\left( {p \wedge q} \right) \vee \left( {\left( { \sim q} \right) \vee p} \right) is equivalent to
A.pq \sim p \vee q
B.qp \sim q \vee p
C.pqp \vee q
D.(p)(q)\left( { \sim p} \right) \vee ( \sim q)

Explanation

Solution

We will find the equivalent statement for the given Boolean expression with the help of truth table. The truth table that matches with that of the conditions given will be the correct option.

Complete step-by-step answer:
Let’s tabulate the expression.

pqpqp \wedge qq \sim q(q)p\left( { \sim q} \right) \vee p(pq)((q)p)\left( {p \wedge q} \right) \vee \left( {\left( { \sim q} \right) \vee p} \right)
000111
010000
100111
111011

Now if we observe the table above we will conclude that output is the same as (q)p\left( { \sim q} \right) \vee p.
This is one of the options also.
So the correct option is B.
Note: In AND operation output is 1 only if both the inputs are 1.
In OR operation output is 1 if any of the one inputs is 1.
We also can check for other options if we want

pqpqp \wedge q(q)p\left( { \sim q} \right) \vee p(pq)((q)p)\left( {p \wedge q} \right) \vee \left( {\left( { \sim q} \right) \vee p} \right)pq \sim p \vee qpqp \vee qpq \sim p \vee \sim q
00011101
01000111
10011011
11111110

So from the above table we observe that no other option matches with the given Boolean expression output.