Worksheets › Class 7 › Logic: If–Then, AND, OR, NOT

Class 7 · Computational Thinking and AI worksheet

Logic: If–Then, AND, OR, NOT

CBSE Computational Thinking and AI. True or false statements, truth table rows, counting with conditions, Venn diagrams and rules that are broken. Every sheet has 20 questions in three sections and an answer key, and the questions change every time.

Open a printable sample sheet

Sample questions

Real questions from this chapter, as the app sets them. Tap Answer to see the answer and working.

Section A · multiple choice

  1. 1.

    "P AND Q" is true only when:

    1. both are false
    2. P is false
    3. at least one is true
    4. both P and Q are true
    Answer

    (d) both P and Q are true

  2. 2.

    Is this statement true or false? "NOT (20 is a multiple of 5) AND 20 ends in 9"

    1. True
    2. Sometimes true
    3. False
    4. Cannot be decided
    Answer

    (c) False

    NOT true AND false

  3. 3.

    For how many numbers in the list is "x < 31 OR x is a multiple of 10" true? 8, 19, 7, 29, 1, 44, 32

    1. 5
    2. 4
    3. 2
    4. 6
    Answer

    (a) 5

    true for: 8, 19, 7, 29, 1

Section B · short answer

  1. 4.

    When is "P AND Q" true, and when is "P OR Q" true?

    Answer

    "P AND Q" is true only if both are true; "P OR Q" is true if at least one is true.

  2. 5.

    Write True or False for each: (a) NOT (49 is greater than 40); (b) 41 ends in 7 OR 41 is a multiple of 5

    Answer

    (a) False; (b) False

    (a) NOT true; (b) false OR false

Section C · long answer

  1. 6.

    Make a truth table for "P AND Q" and "P OR Q" (four rows: TT, TF, FT, FF).

    Answer

    P AND Q: T, F, F, F. P OR Q: T, T, T, F.

Fresh sheets for your child

In the app, every Logic: If–Then, AND, OR, NOT sheet is new: the app remembers the questions your child has already had and leaves them out. Print the sheet as a PDF, or use notebook mode and write the answers in a notebook.

Coming soon for Android and iPhone.

More Class 7 Computational Thinking and AI