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.

CS Grade 6-8

CS: Boolean Logic and Logic Gates

Using true and false values to model digital decisions

View Answer Key

Practice evaluating Boolean expressions, completing truth tables, and understanding how basic logic gates work in computer systems.

Read each problem carefully. Use true or false values as directed. Show your work in the space provided.

Name:
Date:
Score: / 12

Using true and false values to model digital decisions

CS - Grade 6-8

Instructions: Read each problem carefully. Use true or false values as directed. Show your work in the space provided.
  1. 1

    In Boolean logic, a value can be either true or false. A variable A is true. What is NOT A?

  2. 2

    Evaluate the expression: true AND false.

  3. 3

    Evaluate the expression: true OR false.

  4. 4

    Complete this truth table for A AND B: A = true, B = true. What is the output?

  5. 5

    Complete this truth table for A AND B: A = true, B = false. What is the output?

  6. 6

    Complete this truth table for A OR B: A = false, B = false. What is the output?

  7. 7

    Complete this truth table for A OR B: A = false, B = true. What is the output?

  8. 8
    Two switches are on and connected to a glowing light bulb.

    A light turns on only when switch A is on and switch B is on. Which logic gate models this rule: AND, OR, or NOT?

  9. 9
    A laptop login can be unlocked using either a credential card or a phone code.

    A school website allows login if a user has a password OR a one-time code. Which logic gate models this rule: AND, OR, or NOT?

  10. 10

    Evaluate the expression: NOT false AND true. Use normal order where NOT happens before AND.

  11. 11

    Evaluate the expression: NOT (true OR false).

  12. 12
    A game door stays closed while the player has a key but the puzzle is incomplete.

    A game door opens when a player has a key AND has completed the puzzle. If hasKey = true and puzzleComplete = false, does the door open? Explain using Boolean logic.

LivePhysics™.com CS - Grade 6-8

More CS Worksheets

See all CS worksheets

More Grade 6-8 Worksheets

See all Grade 6-8 worksheets