OCR J277 · Computer systems
Representing data revision
Work with binary, hexadecimal, characters, bitmap images and sampled sound using accurate worked examples.
What to know about representing data
Binary and hexadecimal
Unsigned eight-bit binary represents values from 0 to 255. From right to left, column weights are 1, 2, 4, 8, 16, 32, 64 and 128. Add the weights of the 1 bits to convert to denary. Hexadecimal uses sixteen digits: 0–9 and A–F. Two hex digits represent one byte; each hex digit maps to exactly four binary bits.
Worked conversions and addition
The denary value 86 = 64 + 16 + 4 + 2, so its eight-bit binary form is 01010110. Grouping into 0101 and 0110 gives hexadecimal 56. Binary addition uses carries: 1 + 1 gives 10 in binary. In an eight-bit unsigned field, 200 + 80 = 280 cannot fit; the ninth bit is overflow and the retained low eight bits alone do not represent the true sum.
Focus areas: Representing data.
Test yourself: questions and answers
Answer each prompt from memory before opening the explanation. These 4 samples come from this topic's 16 original retrieval cards.
What range does an unsigned eight-bit value represent?
0 to 255 inclusive.
What denary values do hexadecimal A and F represent?
A is 10 and F is 15.
Convert denary 86 to eight-bit binary.
01010110: 64 + 16 + 4 + 2.
Convert hexadecimal 56 to denary.
5 × 16 + 6 = 86.
Worked examples for this topic
Binary and hexadecimal conversion: worked examples — Use place values and four-bit groups to convert numbers, then check your answer in the opposite direction.
Turn this topic into a revision session
- Explain one idea without looking at the notes.
- Compare your answer with the guidance and identify the missing link.
- Apply it in a question or short program, then revisit it after a delay.
Free accounts choose one revision topic pack. Pro includes all 26 packs in this course and both published qualifications. Public samples and coding practice are free; PDF guides are separate purchases.
Create a free accountSpecification and sources
Check the required scope against the official OCR J277 specification (PDF). RecallStride's explanations and examples are independent learning resources. See our editorial policy or report a correction, including the topic code and statement concerned.