HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A water heater has a safety cut-out. The cut-out switches the heater off (X = 1) when the water is…
HardComputer ScienceHigh School (9–10)Computer Science › Boolean LogicConceptualNumericalIGCSE

A water heater has a safety cut-out. The cut-out switches the heater off (X = 1) when the water is…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A water heater has a safety cut-out. The cut-out switches the heater off (X = 1) when the water is too hot (T = 1). It also does so when the tank is empty (E = 1) and the pump is not running (P = 0).

  1. Write the logic expression.
  1. How many gates does the circuit need?
  1. In how many of the 8 rows does the cut-out act?
  1. What is X when T = 0, E = 1 and P = 1?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Give each condition a letter and say what 1 means. and is AND, or is OR, not is NOT, but not both is XOR, neither nor is NOR. From a truth table: one AND term for each row with X = 1 (an input that is 0 gets NOT), joined by OR. Any expression with the same table is correct.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. The expression. X = T OR (E AND (NOT P)).

Step 2. The gates. NOT, AND and OR: 333 gates.

Step 3. The rows. In the order T E P:

T E PX
0 0 00
0 0 10
0 1 01
0 1 10
1 0 01
1 0 11
1 1 01
1 1 11

The 4 rows with T = 1 and the row 0 1 0: 555 rows.

Step 4. The row 0 1 1. The pump is running, so the AND part is 0, and T = 0. X = 000.

Answer: (a) X = T OR (E AND (NOT P)). (b) 333. (c) 555. (d) 000.

Log in to save this for later
← All Problems
← A logic analyser records X for every input pattern of A, B and C, from 0 0 0 up to 1 1 1: 0, 0, 0…A truth table with inputs A, B and C has the output column 0, 1, 0, 1, 0, 1, 0, 0 in the usual row… →
More onComputer Science › Boolean Logic

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. From a problem statement or a truth table to a circuitLogic Circuits, Logic Expressions and Truth Tables

More on this topic

  1. A truth table with inputs A, B and C has the output column 0, 1, 0, 1, 0, 1, 0, 0 in the usual row…Hard
  2. A logic analyser records X for every input pattern of A, B and C, from 0 0 0 up to 1 1 1: 0, 0, 0…Medium
  3. A lift moves (X = 1) when its door is shut (S = 1) and a button is pressed…Easy
A traffic-light controller contains the circuit drawn below…Hard
  • An irrigation valve opens on the rule X = (A XOR B) OR (NOT C), where C = 1 means it is raining…Medium
  • All problems on this topic →