Question 1
1 markA program works out how many different values can be represented using n bits, using this statement.
combinations = 2 ^ nState the value of combinations when n is 6.
Model answer
64
2 ^ 6 = 2 × 2 × 2 × 2 × 2 × 2 = 64
Explanation
2 ^ 6 means 2 multiplied by itself 6 times: 2, 4, 8, 16, 32, 64. A common mistake is to multiply 2 × 6 = 12, or to work out 6 ^ 2 = 36 by swapping the numbers. The base comes first and the power second.
Mark scheme
-
1 mark
64
Do not accept 12 (2 × 6) or 36 (6 ^ 2).