You are on page 1of 1

Logic in Computer Science

Quiz 1
Total: 10 marks Time : 25 minutes
1. Construct well formed formulas (w ) and and expressions and such that
( ) = ( ). (1Marks)
2. Construct a w of length 13 and height 5. (1Marks)
3. Prove that every w has balanced parenthesis. (3Marks)
4. Check validity and satisability of the following formulas.
(((p q) p) p)
(((p q) r) s)
(2Marks)
5. Write the derivation tree, derivation sequence and set of all subformulas of the w
((p (q r)) ((p q) ((r) (p)))) (3Marks)

You might also like