ICTCampus

Logic gates, explained with the actual symbols

Paper I asks you to identify a gate from its symbol or complete its truth table. Paper II asks you to write or simplify a Boolean expression. Both come from the same seven gates below — learn the symbol and the one row that makes each gate distinct from its closest lookalike.

AND, OR, NOT වගේ logic gates වල truth table සහ symbols මෙතන සරලව පැහැදිලි කර ඇත.

Converting between number systems first? Binary, hex and two's complement, worked step by step.

De Morgan's theorem, proved rather than stated

(A·B)′ is meant to behave exactly like A′+B′. Instead of taking that on faith, check every row of both truth tables side by side:

AB(A·B)′A′+B′Match?
0011
0111
1011
1100

Every row matches, so the two expressions are equivalent — which is exactly what an exam question asking you to "prove De Morgan's theorem using a truth table" wants to see. The mirror rule, (A+B)′ = A′·B′, is proved the same way.

Questions students ask

How many logic gates are there in the A/L ICT syllabus?

Seven basic gates: AND, OR, NOT, NAND, NOR, XOR and XNOR. NAND and NOR are sometimes called "universal gates" because either one alone can be wired up to build every other gate — a common structured-question angle.

What is the fastest way to tell NAND and NOR apart under exam pressure?

Check only the row where both inputs are 0. NOR outputs 1 there (nothing is on, so "neither" is true); NAND outputs 1 everywhere except when both inputs are 1. If you can't remember the whole table, that one row is enough to identify which gate you're looking at.

What's the difference between OR and XOR?

They agree on three of the four input rows and differ on exactly one: when both inputs are 1, OR outputs 1 but XOR outputs 0. XOR means "one or the other, but not both."

What is De Morgan's theorem, in plain terms?

It states that (A·B)′ = A′ + B′, and separately (A+B)′ = A′·B′ — in words, "NOT (A AND B)" behaves exactly like "(NOT A) OR (NOT B)", and "NOT (A OR B)" behaves like "(NOT A) AND (NOT B)". You can prove either version by building both truth tables and checking every row matches.

More free A/L ICT resources

Drill this under real exam pressure

Every subject's Practice section includes gate-identification and truth-table questions with instant marking, plus the full digital circuits unit taught live.

Join a class