Learn in your language
Skip to content
IGCSE · Cambridge (CIE) · 0478

Translate a problem statement into a Boolean expression

Convert words such as both, either, exactly one and not into gate expressions.

Section 10 · Boolean logic

Cambridge IGCSE Computer Science 0478 · Boolean logic · 2026–2028 Version 6 · Topic 10
Exam scope and assessment notes

This original learning sequence follows Topic 10 of Cambridge IGCSE Computer Science 0478, 2026–2028 syllabus Version 6. It covers standard symbols and functions for NOT, AND, OR, NAND, NOR and XOR/EOR, and translation among statements, expressions, circuits and truth tables. NOT has one input; other gates have at most two. Circuit practice is limited to three inputs and one output and keeps the requested design without simplification. Lessons and checks support learning but do not award an official Cambridge grade. Full timed-paper practice, practical programming in an executable workspace and human subject-teacher review remain outstanding; the separate 2029–2031 syllabus is not mapped here.

Before you begin

  • Be able to read binary 0 and 1 as the two possible logic values. Each lesson introduces the gate or translation skill it uses.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

Which word most strongly indicates AND?

What you will learn

  • Identify conditions and their input names
  • Select the gate matching each connective
  • Write a grouped expression from a statement

Core idea

Words describe the required logical relationship. “Both” usually signals AND; “at least one” signals OR; “exactly one” signals XOR; and “not” signals inversion. Define what each input means before writing the expression.

In a logic circuit, 1 represents TRUE and 0 represents FALSE. A gate applies a defined rule to its input value or values and produces one binary output.

A reliable method

Name each condition, translate the connective, and add brackets if two operations are combined. Then test one example that should make the output true and one that should make it false.

Keep the given statement, expression, diagram or table in view while working. Check each row or connection against the rule, and preserve the stated circuit structure; the syllabus does not ask you to simplify it.

Pause and explain

A light is on if at least one of A or B is 1. Which expression fits?

Put the idea to work

Worked example

A pump runs when level L is high and switch S is on. Write the expression.

Show the worked solution
  1. The inputs represent the two required conditions.
  2. Both must be true, so combine with AND.
  3. Use the output name P.

Answer P = L AND S.

Try a topic test

Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.

Test this topic →

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

A door unlocks only when card C is valid and code K is correct. Write an expression for U.

Give me a hint

Both conditions are necessary.

Compare my reasoning
  1. Name the inputs C and K.
  2. Join with AND.
  3. Use U for the output.

U=C AND K.

Look for these in your work

  • Inputs identified
  • AND selected
2 · Independent

A notification is sent when either sensor A or sensor B is triggered, or both. Write an expression.

Give me a hint

The words include both-true as an acceptable case.

Compare my reasoning
  1. “Either or both” means at least one input is 1.
  2. Use OR, not XOR.
  3. Name the output N.

N=A OR B.

Look for these in your work

  • Inclusive OR recognised
  • Expression complete
3 · Transfer

A backup starts when the main supply M is absent and the battery B is available. Define input meanings and write the expression.

Give me a hint

Absence of M needs inversion; availability is used directly.

Compare my reasoning
  1. Let M=1 mean main supply present and B=1 mean battery available.
  2. Main supply absent is NOT M.
  3. Both absence and battery availability are required.

Backup = (NOT M) AND B, where M=1 means the main supply is present and B=1 means the battery is available.

Look for these in your work

  • Meaning stated
  • NOT term
  • AND relationship

Common mistakes

  • Using OR for a requirement that says both
  • Using OR for exactly one
  • Leaving input meanings undefined
Recall without your notes

What can you explain now?

Which gate matches “exactly one of A or B”?

Compare with the explanation

XOR

XOR is true only when exactly one input is 1.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

Which statement wording distinguishes OR from XOR?

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Keep learning Computer Science

Course scope and assessment

165 original lessons map the listed objectives across all 10 main topics in the 2026–2028 Version 6 syllabus, with worked explanations and guided, independent and transfer practice. This is mapped teaching coverage, not proof of full exam readiness. Three earlier starter lessons remain available but are not counted as syllabus-mapped teaching. Practical programming experience in an executable browser workspace, full timed-paper practice, human subject-teacher review and the separate 2029–2031 syllabus remain outstanding. Practice is self-checked and does not award an official Cambridge grade.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.