Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Computer Science Grade 9-12

Computer Science: Logic Gates

Building and analyzing Boolean logic circuits

View Answer Key
Name:
Date:
Score: / 15

Building and analyzing Boolean logic circuits

Computer Science - Grade 9-12

Instructions: Read each problem carefully. Use 0 for false or off and 1 for true or on. Show your work in the space provided.
  1. 1
    Two-input AND gate symbol with input and output wires.

    Complete the truth table for an AND gate with inputs A and B. List the output for A,B values 00, 01, 10, and 11.

  2. 2
    Two-input OR gate symbol with input and output wires.

    Complete the truth table for an OR gate with inputs A and B. List the output for A,B values 00, 01, 10, and 11.

  3. 3
    NOT gate symbol with one input wire and one output wire.

    Complete the truth table for a NOT gate with input A. List the output for A values 0 and 1.

  4. 4
    Simple circuit showing two inputs connected to an AND gate.

    A circuit has inputs A = 1 and B = 0 connected to an AND gate. What is the output? Explain your answer.

  5. 5
    Simple circuit showing two inputs connected to an OR gate.

    A circuit has inputs A = 1 and B = 0 connected to an OR gate. What is the output? Explain your answer.

  6. 6
    Circuit where one input is inverted before entering an AND gate with a second input.

    A circuit first sends input A through a NOT gate, then sends the result and input B into an AND gate. If A = 0 and B = 1, what is the final output?

  7. 7
    Two inputs enter an AND gate, and the result is inverted.

    Write the Boolean expression for a circuit where inputs A and B go into an AND gate, and the result is inverted by a NOT gate.

  8. 8
    Two-input NAND gate symbol with an output inversion bubble.

    A NAND gate is the opposite of an AND gate. Complete the NAND output for A,B values 00, 01, 10, and 11.

  9. 9
    Two-input NOR gate symbol with an output inversion bubble.

    A NOR gate is the opposite of an OR gate. Complete the NOR output for A,B values 00, 01, 10, and 11.

  10. 10
    Two-input XOR gate symbol.

    An XOR gate outputs 1 when exactly one input is 1. Complete the XOR output for A,B values 00, 01, 10, and 11.

  11. 11
    Circuit showing two inputs combined by OR, then combined with a third input by AND.

    A circuit computes (A OR B) AND C. If A = 0, B = 1, and C = 1, what is the output?

  12. 12
    Circuit showing one direct input ANDed with an inverted second input.

    A circuit computes A AND (NOT B). If A = 1 and B = 1, what is the output?

  13. 13
    Circuit with two AND gates feeding one OR gate, with one shared input branch.

    For the expression (A AND B) OR (A AND C), find the output when A = 1, B = 0, and C = 1.

  14. 14
    Night and motion sensor inputs connected to a logic block controlling a security light.

    A security light should turn on only when it is night and motion is detected. Let N = 1 mean it is night, and M = 1 mean motion is detected. Which logic gate should be used, and why?

  15. 15
    Open door and open window inputs connected to a logic block controlling a buzzer.

    A warning buzzer should turn on if a door is open or a window is open. Let D = 1 mean the door is open, and W = 1 mean the window is open. Which logic gate should be used, and why?

LivePhysics™.com Computer Science - Grade 9-12

More Grade 9-12 Worksheets

See all Grade 9-12 worksheets