Cambridge O Level CS
Code Like a Star! 🌟
Dashboard
Home
/
Week 1
Week 2
Week 1: Introductory Boolean Logic
Ready to tackle 8 questions? Let's code! 💻
Your name (optional)
Q1
Describe the function of an XOR gate. Under what precise condition does an XOR gate produce a 1 output?
Q2
A single logic gate outputs a 1 ONLY when both of its inputs are 0. What is the name of this logic gate?
Q3
A warning siren (W) should sound (W = 1) if the master switch (A) is ON (1) AND the emergency lock (B) is NOT activated (0). Write the logic expression for the siren output (W).
Q4
Write the single logic gate that is equivalent to a circuit made up of an AND gate followed immediately by a NOT gate.
Q5
A circuit uses the expression X = (NOT A) OR B. If the inputs are A=1 and B=0, what is the final binary output X?
Q6
A logic circuit is represented by the expression X = (A AND B) XOR C. If the inputs are A=1, B=0, and C=1, what is the final binary output X?
Q7
A safety light (L) turns on (L=1) if Input P is 0 AND Input Q is 1, OR if Input P is 1 AND Input Q is 0. Write the full logic expression for L.
Q8
The expression is X = NOT (A NAND B). If the inputs are A=0 and B=1, what is the resulting output X?
Submit & Get O/L Helper's Feedback!