Where NOT applies in an expression
NOT before a bracket flips the whole bracket's result. In (NOT A) AND B, NOT flips only input A, so NOT (A AND B) gives different results.
Understanding Where NOT applies in an expression in IGCSE Computer Science Paper 2
What it does: Only A is inverted. B goes into the AND gate unchanged, so the NOT is on one input only. The bracket holds A AND B, and NOT flips its output. This is the same as a NAND gate. NOT is placed before the bracket, so it flips the result of everything inside the bracket. A AND B = 1, and NOT makes it 0. For (NOT A) AND B: NOT 1 = 0, then 0 AND 1 = 0 as well, so check carefully. Here NOT (A AND B) is 0, and (NOT A) AND B is also 0, so use A = 0 and B = 1 to tell them apart.
Common mistakes: NOT must go before the bracket so it flips the whole result of A AND B. (NOT A) AND B only flips A, giving 0 here instead of 1. It should be X = NOT (A AND B). The comment says NOT applies to input A only, so A needs its own brackets: (NOT A) AND B. NOT (A AND B) flips the whole bracket and gives 1, not 0.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 552–561) and word search (Modules 539–580).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
NOT (A AND B)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →