TOPIC 01
Binary
Each binary place represents a power of two. From the right, the first four place values are 1, 2, 4 and 8.
Convert binary 1011 to decimal.
Reveal answer
8 + 0 + 2 + 1 = 11.
Maths & technology · CAMBRIDGE 0478
Practise algorithms, data representation and logic.
Try each question before revealing the answer. Check your exam-year syllabus for the full topic list.
TOPIC 01
Each binary place represents a power of two. From the right, the first four place values are 1, 2, 4 and 8.
Convert binary 1011 to decimal.
8 + 0 + 2 + 1 = 11.
TOPIC 02
A trace table records how variables change as an algorithm runs. Track one loop iteration at a time.
Start total at 0. Add 2, then 4, then 6 in a loop. List total after each iteration.
The running totals are 2, 6 and 12.
TOPIC 03
An AND operation is true only when both inputs are true. OR is true when at least one input is true. NOT reverses its input.
Evaluate NOT(A AND B) when A is true and B is false.
A AND B is false. NOT false is true.