DoRevision Sign up free

True or False?

Computers make decisions by asking questions that are true or false. Learn the arithmetic, relational and logical operators, and how to work out a compound condition exactly.

⏱️ 17 min 🎯 14 activities Teachers Not yet rated Students Not yet rated

Revise this, the fun way

Play it interactively, earn XP and build a streak, free.

Start revising free

What you'll cover

Yes or no? 🔀

Computers make decisions by asking questions that are either **True** or **False**. They use **operators** to compare values and combine conditions. This module explores arithmetic, relational and logical operators, and how to work out whether a condition is true.

Words to know 🔑

Four ideas run through this topic:

What comes out? 🎯

What does a relational operator, such as greater-than, produce?

  • A Boolean value, True or False
  • Always a whole number
  • A line of text
  • An error message

Three kinds of operator ⚖️

Operators come in three main kinds.

Match the operator 🔗

  • The symbol >=
  • The symbol !=
  • AND
  • OR
  • Greater than or equal to
  • Not equal to
  • True only when both conditions are true
  • True when at least one condition is true

Watch the order ⚠️

When an expression mixes operators, work them out in order: do the arithmetic first, then the comparisons, then the logical AND, OR and NOT. Watch the boundary too: less-than is not the same as less-than-or-equal-to, so 15 is not less than 15.

Trace the check 📊

An interactive activity.

Find the remainder 🔢

An interactive activity.

Which are true? ✅

Which THREE of these expressions are TRUE?

  • 5 > 3
  • 10 != 7
  • 4 >= 4
  • 2 > 8
  • 6 = 9

Order of work 🪜

An interactive activity.

Complete the idea 🧩

An _____ acts on values. A relational operator, such as greater-than, gives a _____ value that is True or False. The _____ operator AND is true only when both conditions are true. When operators are mixed, do the _____ first, then the comparisons. Remember that less-than is not the same as less-than-or-equal-to, which is a common _____ error.

operator Boolean logical arithmetic boundary number relational text syntax loop

True or not? 🖍️

An interactive activity.

Pick the operator 🧭

An interactive activity.

Explain the check ✍️

An interactive activity.