Introductory Discrete Mathematics for Computer Science/Logic Review

From testwiki
Jump to navigation Jump to search

Exercises

Template:Quiz Here are some exercises to practice your fluency with logical operators.

Problem 1

Template:ABCD Problem 2

Draw the relevant truth tables, to show that ¬pq is or is not logically equivalent to pq.

ANSWER: These statements are logically equivalent. Here is the truth table for both:

p q ¬p ¬pq pq
T T F T T
T F F F F
F T T T T
F F T T T

Problem 3

Show that a conditional statement is logically equivalent to its contrapositive.

Problem 4

This problem also requires you to draw the relevant truth tables. Template:ABCD