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 →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Astronomy & Space Science
  • Earth & Environmental 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. Quizzes
  2. /A school bell rings (X = 1) when the timer shows the lesson has ended (T = 1) and it is not a holiday (H = 1 on a holiday). It also rings when the head teacher presses the manual button (M = 1). Which expression is right?
Computer ScienceMediumHigh School (9–10)Algorithms, Programming and Logic › Boolean LogicIGCSE
StemPy LabCreated by StemPy Lab
Read about Boolean Logic first

Inside a computer, every decision comes down to true or false, written as 1 or 0. Boolean logic is the algebra of these two values, and logic gates carry it out in hardware. An AND gate gives 1 only when both inputs are 1. An OR gate gives 1 when at least one input is 1, and a NOT gate reverses its input. NAND, NOR and XOR are other common gates. A truth table lists the output for every set of inputs. A problem statement can be turned into a logic expression, drawn as a circuit and checked with a truth table.

Lessons, worked problems and more questions on Boolean Logic →

A school bell rings (X = 1) when the timer shows the lesson has ended (T = 1) and it is not a holiday (H = 1 on a holiday). It also rings when the head teacher presses the manual button (M = 1). Which expression is right?

The group is 'lesson ended and not a holiday'. The manual button is enough on its own, so it joins by OR. T AND ((NOT H) OR M) never lets the button ring the bell by itself. (T OR (NOT H)) AND M needs the button every time. (T AND H) OR M rings on holidays.
Log in to save
← All Quizzes
← List the outputs of X = (A NOR B) AND C for the eight input patterns from 0 0 0 to 1 1 1.Testing a mystery circuit gives an output of 1 only for the patterns 1 0 0 and 1 0 1 of A, B and C. What is the simplest expression for it? →
More onAlgorithms, Programming and Logic › Boolean Logic

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A night alarm is wired as X = (A OR B) NOR C. Describe every input pattern that sets the alarm to 1.Hard
  2. Two designs are proposed: X = (NOT A) AND (B OR C) and Y = (NOT A) AND B. Over all eight input…Hard
  3. A parity checker outputs 1 whenever an odd number of its three inputs are 1. Which expression is…Hard
  4. An alarm sounds (X = 1) when the system is armed (S = 1) and the window (W = 1) or the door (D =…Hard
  5. An engineer wants to save a gate in X = (A AND C) OR (B AND C). Which shorter expression behaves…Hard
All questions on this topic →

Problems 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 water heater has a safety cut-out. The cut-out switches the heater off (X = 1) when the water is…Hard
  3. 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
  4. A lift moves (X = 1) when its door is shut (S = 1) and a button is pressed…Easy
All problems on this topic →