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. /The circuit in the picture is built from NOT, AND and OR gates…
HardComputer ScienceHigh School (9–10)Computer Science › Boolean LogicConceptualNumericalIGCSE

The circuit in the picture is built from NOT, AND and OR gates…

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.

The circuit in the picture is built from NOT, AND and OR gates. B goes into a NOT gate and A goes into a second NOT gate. A and the output of the first NOT gate go into an AND gate. The output of the second NOT gate and B go into a second AND gate. The outputs of the two AND gates go into an OR gate, whose output is X.

A logic circuit drawn with the standard gate symbols. Inputs A and B are on the left and the output X is on the right. B goes into the first NOT gate; A goes into the second NOT gate; A and the output of the first NOT gate go into the first AND gate; the output of the second NOT gate and B go into the second AND gate; the output of the first AND gate and the output of the second AND gate go into an OR gate, whose output is X. Two wires cross without a dot near the NOT gates, so they are not joined.
  1. How many gates does the circuit use?
  1. In how many rows is X = 1?
  1. Does the circuit give the same outputs as one XOR gate? Give 1 for yes and 0 for no.

Check your answer

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

Need a reminder? The key ideaShowHide

XOR (EOR) gives 1 when the two inputs are different and 0 when they are the same: column 0, 1, 1, 0. It differs from OR only in the row 1 1. The symbol is the OR shape with an extra curved line behind its back.

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. Count the gates. Two NOT, two AND and one OR gate: 555 gates.

Step 2. The expression. X = (A AND (NOT B)) OR ((NOT A) AND B).

Step 3. The table. Call the AND outputs P and Q.

A BP QX
0 00 00
0 10 11
1 01 01
1 10 00

X = 1 in 222 rows.

Step 4. Compare with XOR. The column 0, 1, 1, 0 is the XOR column, so the answer is 111, yes.

Answer: (a) 555. (b) 222. (c) 111, yes.

Log in to save this for later
← All Problems
← A quiz show has two buttons. A judge wants a buzzer X that sounds when exactly one player presses a…A gate has two inputs. Its output column, in the rows 0 0, 0 1, 1 0, 1 1, is 1, 0, 0, 0… →
More onComputer Science › Boolean Logic

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. The XOR gateNAND, NOR and XOR Gates 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 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
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
  • All problems on this topic →