Question
Question: The Boolean expression \( \sim \left( {p \vee q} \right) \vee \left( { \sim p \wedge q} \right)\) is...
The Boolean expression ∼(p∨q)∨(∼p∧q) is equivalent to:
A) q
B) ∼q
C) ∼p
D) p
Solution
Here the Boolean expression is given that is ∼(p∨q)∨(∼p∧q). Boolean expression is a logical statement that returns either true or false. We need to draw the Boolean table.
Complete step-by-step answer:
Boolean expression is the expression of logic. It deals with variables that can have two discrete values, 0 means False (F) and 1 means True (T). So here, Boolean expression is given
∼(p∨q)∨(∼p∧q).
So first find out ∼(p∨q).
Now, let us draw the table.
Here the symbol ∨ is of OR and we follow additional property. If p is true, then it is treated as 1 and if q is false, it is treated as 0. Then, p∨q=p+q=1+0=1.
p | q | p∨q | ∼(p∨q) |
---|---|---|---|
T | T | T | F |
T | F | T | F |
F | T | T | F |
F | F | F | T |
∼ is the negation mark. For example, if we get p∨q as true , then ∼(p∨q) must be false.
Now let us find (∼p∧q).
Here ∧ is the symbol of AND and we follow multiplication property.
p | ∼p | q | p∧q | ∼p∧q |
---|---|---|---|---|
T | F | T | T | F |
T | F | F | F | F |
F | T | T | F | T |
F | T | F | F | F |
Now we have to find ∼(p∨q)∨(∼p∧q)
Now let us arrange the table
p | q | ∼(p∨q) | (∼p∧q) | ∼(p∨q)∨(∼p∧q) |
---|---|---|---|---|
T | T | F | F | F |
T | F | F | F | F |
F | T | F | T | T |
F | F | T | F | T |
Here we got just opposite of p. So the answer is ∼p.
So option C is the correct answer.
Note: If we write p∧q, then it is an AND operator but if ∼(p∧q)is given, then it becomes a NAND operator. Now, if we write p∨q, then it is an OR operator and similarly, if ∼(p∨q)is given, then it becomes a NOR operator.