What are logic gates?
Logic gates are electronic components that take one or more binary inputs (0 or 1) and produce a single output. The three main gates are AND (output 1 only if both inputs are 1), OR (output 1 if at least one input is 1) and NOT (reverses the input). Truth tables show every input combination and its output. Example: Find Q = A AND (NOT B) when A = 1 and B = 0. NOT B = NOT 0 = 1 Q = 1 AND 1 = 1 Answer: Q = 1
Logic gates are the building blocks of digital circuits. In GCSE Computer Science, you should know the symbols and truth tables for AND, OR and NOT, combine gates into simple circuits and write Boolean expressions. Work through a combined expression from the innermost operation outwards.
Worked example
Work out the output Q = A AND (NOT B) when A = 1 and B = 0.
- Deal with the bracket first: NOT B.
- NOT reverses the input, so NOT 0 = 1.
- Now evaluate A AND 1, with A = 1.
- AND gives 1 only when both inputs are 1: 1 AND 1 = 1.
Answer: Q = 1
Want one-to-one support?
One-to-one online tuition can help you build confidence in your subject. Find a tutor who teaches your course.
Find a TutorLearn face to face in Glasgow
Prefer in-person lessons? Visit the ExpertTutor Glasgow Southside centre.
See the centre