Skills101
← All practice quizzes

Quiz: Logic

5 questionsNo time limitPass: 60%+10 XP on first pass

Logic for programmers: propositions and connectives, truth tables generated with Python, the tricky implication, tautologies and contradictions, De Morgan's and other laws, converse and contrapositive, and predicates with ∀ and ∃ — plus negating them correctly.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    When is p → q false?

  2. Question 2

    Which statement is logically equivalent to p → q?

  3. Question 3

    What is ¬(p ∧ q) by De Morgan's law?

  4. Question 4

    The negation of "every student passed" is:

  5. Question 5

    In the demo, p → (p and q) was classified as: