6 mistakes learners make with data representation, each one named and explained.
Everything is stored as binary, and the units and place values have fixed sizes.
1 + 1 in binary is written as 2.
Adding in denary is automatic, and nothing about binary stops a 2 being written.
Question. Add 1 + 1 in binary.
A common answer. 2
The answer. 10
Why. Binary only has 0 and 1, so 1 + 1 is 0 carry 1, written 10.
In binary, any 2 becomes 0 with a 1 carried.
A binary number is converted with the columns shifted, giving a power of two out.
The columns double rather than going up in tens, so a slip of one column changes the answer by a factor of two.
Question. What is 1010 in denary?
A common answer. 12
The answer. 10
Why. The columns are 8, 4, 2, 1. Ones sit in the 8 and the 2 columns, giving 8 + 2 = 10.
Always write 8 4 2 1 above the digits before converting.
A byte is said to be one bit, or a bit to be 8 bytes.
The two words sound alike and both are units of data.
Question. How many bits are in a byte?
A common answer. 1
The answer. 8
Why. A bit is a single 0 or 1; a byte is 8 of them.
Bit is the shorter word and the smaller unit.
A file size is out by a factor of eight, or kilo is treated as exactly a thousand where the question wants 1024.
The words sound alike and the factors are close enough that a wrong one still looks plausible.
Question. How many bits are in 2 bytes?
A common answer. 2
The answer. 16
Why. A byte is 8 bits, so 2 bytes is 16 bits. Bit and byte differ by a factor of eight throughout.
Write the factor of 8 down before calculating.
Increasing the colour depth from 2 to 3 bits is said to give one more colour.
One more bit sounds like one more of anything.
Question. How many colours can 3 bits represent?
A common answer. 3
The answer. 8
Why. Each extra bit doubles the number of patterns: 2^3 = 8.
Each bit doubles the number of values: 2 to the power of the number of bits.
A price is stored as an integer, or an identifier that is never calculated with is stored as a number.
Types are chosen by what the value looks like rather than by what will be done with it.
Question. Which type suits a price like 4.99?
A common answer. Integer
The answer. Real or float
Why. Integers hold whole numbers only, so 4.99 would lose its pence. A value with a fractional part needs a real type.
Choose the type from what the value must be able to hold and do.
WAJD spots these patterns in your child's answers and names the one behind their wrong answers, instead of just marking them wrong.