Fatskills
Practice. Master. Repeat.
Study Guide: Computer Science - ICT Grade 6 Boolean Logic AND OR NOT
Source: https://www.fatskills.com/6th-grade-science/chapter/computer-science-ict-grade-6-boolean-logic-and-or-not

Computer Science - ICT Grade 6 Boolean Logic AND OR NOT

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~5 min read

Grade 6 Computer Science (ICT) Study Guide: Boolean Logic (AND, OR, NOT)



1. The Driving Question

"If your phone’s alarm only goes off when it’s both a school day AND after 6:30 AM, how does the phone ‘decide’ to wake you up? And why can’t it just use regular words like ‘maybe’ or ‘sometimes’—why does it need these weird AND/OR/NOT rules?"


2. The Core Idea — Built, Not Listed

Imagine you’re at a school carnival, and the ring-toss game has these rules: - You win a small prize if you land a ring on EITHER the red bottle OR the blue bottle.
- You win a big prize if you land a ring on BOTH the red bottle AND the blue bottle.
- But if you land a ring on the green bottle, you get NOTHING—no matter what else happens.

Your phone, a video game, or even a vending machine uses the same kind of "yes/no" rules to make decisions. Instead of bottles, they check things like: - "Is it a school day?" (yes/no) - "Is it after 6:30 AM?" (yes/no) - "Is the battery above 20%?" (yes/no)

Boolean logic is the set of rules that combines these yes/no questions to make a final decision. It’s like a digital referee that only understands "true" (yes) and "false" (no).



Key Vocabulary

  1. Boolean
  2. Definition: A type of data that can only be true or false (like a light switch: on or off).
  3. Example: In a game, "Is the player’s health above 0?" is a Boolean question—it’s either true (alive) or false (game over).
  4. Note: In programming, Booleans are used in if-statements to control what code runs next.

  5. AND (&&)

  6. Definition: A Boolean operator that is only true if BOTH conditions are true.
  7. Example: A library book checkout only works if "You have your library card AND the book isn’t overdue."
  8. Note: In math, this is like the intersection of two sets (what they share).

  9. OR (||)

  10. Definition: A Boolean operator that is true if AT LEAST ONE condition is true.
  11. Example: A free school lunch is given if "You forgot your lunch OR your family qualifies for assistance."
  12. Note: In logic, this is called "inclusive OR"—it includes the case where both are true (unlike "either/or" in everyday speech).

  13. NOT (!)

  14. Definition: A Boolean operator that flips true to false and false to true.
  15. Example: A motion-sensor light turns on when "NOT dark" (i.e., when it’s light outside).
  16. Note: In programming, ! is often used (e.g., !isRaining means "it is NOT raining").

3. Assessment Translation

How This Appears on Tests

  • Multiple Choice: Questions like: "Which Boolean expression correctly represents ‘You can ride the roller coaster if you are tall enough OR have a parent with you’?"
  • Distractors often mix up AND/OR or forget NOT (e.g., height > 5ft AND hasParent instead of height > 5ft OR hasParent).
  • Short Answer: "Write a Boolean expression for: ‘A student gets a detention if they are late AND it’s not a Friday.’"
  • Proficient answer: isLate AND NOT isFriday
  • Developing answer: isLate OR isFriday (wrong operator) or isLate AND isFriday (missing NOT).
  • Diagram/Table: Given a truth table, fill in the missing outputs for AND/OR/NOT.

What a Proficient Response Looks Like

Prompt: "A video game character can jump if they are on the ground AND NOT carrying a heavy object. Write the Boolean expression for this rule."

Proficient Answer:
canJump = isOnGround AND NOT isCarryingHeavy

Why It Works:
- Uses AND correctly (both conditions must be true).
- Includes NOT to flip the "heavy object" condition.
- Matches the logic of the scenario (not just memorized syntax).


4. Mistake Taxonomy

Mistake 1: Mixing Up AND/OR

Question: "A robot can open a door if it has a key OR the door is unlocked. Which expression is correct?" - A) hasKey AND isUnlocked - B) hasKey OR isUnlocked - C) NOT hasKey OR isUnlocked

Common Wrong Answer: A) hasKey AND isUnlocked Why It Loses Credit:
- The question says "OR", but the student used AND, which would mean the robot needs both a key and an unlocked door (impossible!).
- Correct Approach: The robot only needs one condition to be true, so OR is correct.


Mistake 2: Forgetting NOT Flips the Condition

Question: "A phone’s alarm rings if it’s a weekday AND NOT a holiday. Write the Boolean expression." Common Wrong Answer: isWeekday AND isHoliday Why It Loses Credit:
- The student ignored the NOT, so the alarm would ring only on holidays (the opposite of what’s needed).
- Correct Approach: isWeekday AND NOT isHoliday (the alarm rings on weekdays unless it’s a holiday).


Mistake 3: Overcomplicating with Extra Conditions

Question: "A vending machine gives a discount if you’re a student OR a senior citizen. Write the Boolean expression." Common Wrong Answer: isStudent AND isSenior OR hasCoupon Why It Loses Credit:
- The student added an unnecessary condition (hasCoupon) that wasn’t in the prompt.
- Correct Approach: isStudent OR isSenior (only the two given conditions matter).


5. Connection Layer

  1. Within Computer Science:
    Boolean logic → Search engines — When you type "cats AND dogs", Google uses AND to show pages with both words, not just one.

  2. Across Subjects:
    Boolean logic → Biology (genetics) — A child inherits traits like "brown eyes AND curly hair" (both must be present in the genes).

  3. Outside School:
    Boolean logic → Smart home devices — Your thermostat might turn on the AC if "temperature > 75°F AND NOT windowOpen" (so it doesn’t waste energy).


6. The Stretch Question

"If you combine AND, OR, and NOT in one expression—like (A AND B) OR NOT C—how many possible true/false combinations can there be? And why does this matter for things like password security?"

Pointer Toward the Answer:
- Each variable (A, B, C) has 2 possibilities (true/false), so for 3 variables, there are 2³ = 8 combinations.
- In security, hackers try all combinations to guess passwords—so longer expressions (more variables) make it harder to crack! - Try drawing a truth table for (A AND B) OR NOT C to see all 8 cases.





ADVERTISEMENT