Skills101
← All practice quizzes

Quiz: Boolean Algebra and Logic

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Boolean algebra is propositional logic written with 0 and 1. Learn its laws and the duality principle, generate truth tables in Python, write any function in canonical SOP and POS form, simplify with a Karnaugh map, build every gate from NAND, and test whether an argument is valid with a truth table.

Log in to take the quiz

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

  1. Question 1

    In Boolean algebra, what is 1 + 1?

  2. Question 2

    What is the dual of the law x + 0 = x?

  3. Question 3

    Which of these holds in Boolean algebra but NOT for ordinary numbers?

  4. Question 4

    What does this print?

    from itertools import product
    f = lambda a, b: (a | b) & (1 - (a & b))
    print([f(a, b) for a, b in product([0, 1], repeat=2)])
    
  5. Question 5

    The majority function of A, B, C in SOP form is:

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →