Question # 1: Formulate the symbolic expression ~ ( p  q)  r in words using
p =:       Today is Holiday
q =:       It is raining
r =:       We should study.
Solution:
If it is not true that today is holiday or it is raining, then we should study.
Question # 2: Check the validity of the following argument form using truth table:
                          pq
                          pq
                          p
Solution:
p      q    pq     pq p
F      F     T       F  F
F      T      T       T       F
T      F      F       T       T
T      T      T       T       T
Row 2 and 4 are critical rows, in second row conclusion is false so it is an invalid argument.
Question # 3: Write the output of each gate in the following circuit
Solution:
X   Y       Z   X Y   ~Z        X Y   ~ Z     ~   X Y   ~ Z 
0    0      0    0      1                 1                 0
0    0      1    0      0                 0                 1
0    1      0    0      1                 1                 0
0    1      1    0      0                 0                 1
1    0      0    0      1                 1                 0
1    0      1    0      0                 0                 1
1    1      0    1      1                 1                 0
1    1      1    1      0                 1                 0
Question # 4: Construct a truth table to determine whether the following statement is logically
equivalent or not:
    p  q   r and p   q  r     .
Solution:
p   q       r   pq     p  q  r       qr    p   q  r
F   F       F    F          F              F          F
F   F       T    F          T              T          F
F   T       F    F          F              T          F
F   T       T    F          T              T          F
T   F       F    F          F              F          F
T   F       T    F          T              T          T
T   T       F    T          T              T          T
T   T       T    T          T              T          T
Columns 5 and 7 tells that they are not equivalent
                5: By using the laws of logic verify the following logical equivalence:
Question #
~ ((~ p  q )   ~ p  ~ q  )   p  q   p .
Solution:
~   ~ p  q    ~ p  ~ q     p  q   ~  ~ p   q ~ q     p  q    Distributive Law
                                              ~  ~ p  t    p  q              Negation Law
                                              ~  ~ p    p  q                  Identity Law
                                               p   p  q                         Double Negation Law
                                              p                                     Absorption Law
Question # 6: Construct the input/output table for ( p v q)
Solution:
    Inputs                                                Output
      p                  q            ( p v q)  r     ~ ( p v q)  s
      1                  1                  1                 0
      1                  0                  1                 0
      0                  1                  1                 0
      0                  0                  0                 1
Question # 7: Construct circuit for the Boolean expression (~ p  q) ~ r .
Solution: