Worksheets › Class 7 › Logic: If–Then, AND, OR, NOT
Class 7 · Computational Thinking and AI worksheetLogic: 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.
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.
"P AND Q" is true only when:
- both are false
- P is false
- at least one is true
- both P and Q are true
Answer
(d) both P and Q are true
- 2.
Is this statement true or false? "NOT (20 is a multiple of 5) AND 20 ends in 9"
- True
- Sometimes true
- False
- Cannot be decided
Answer
(c) False
NOT true AND false
- 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
- 5
- 4
- 2
- 6
Answer
(a) 5
true for: 8, 19, 7, 29, 1
Section B · short answer
- 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.
- 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
- 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.