Full Marks

GCSE Computer Science · Topic 2

Data representation

Data representation is about how computers store everything, from numbers to music, as binary.

We will convert between binary, denary and hexadecimal, use storage units, and do binary addition and shifts.

Then we see how text, images and sound are stored, and how compression makes files smaller.

In this topic

  1. 2.1Binary, hexadecimal and unitsFree below · 70 questions
  2. 2.2Text, images, sound and compressionOpen in Full Marks · 72 questions

2.1 · Free notes

Binary, hexadecimal and units

Diagram: Binary, hexadecimal and units

Key points

In more detail

Practice

Binary, hexadecimal and units: 10 questions

Pick an answer to check it, or open the answer for the explanation.

1. What is binary 1010 in denary?

  1. 8
  2. 10
  3. 12
  4. 1010
Show answer

B: 10. 8 + 2 = 10.

2. How many bits are in a byte?

  1. 4
  2. 8
  3. 16
  4. 1024
Show answer

B: 8. One byte is 8 bits.

3. What is hexadecimal FF in denary?

  1. 15
  2. 16
  3. 255
  4. 256
Show answer

C: 255. (15 × 16) + 15 = 255.

4. What is the effect of a left binary shift of one place?

  1. Divides by 2
  2. Multiplies by 2
  3. Adds 1
  4. Reverses the bits
Show answer

B: Multiplies by 2. Each place shifted left doubles the value.

5. What is overflow?

  1. Too little data stored
  2. A result too large for the available number of bits
  3. A network error
  4. A syntax error
Show answer

B: A result too large for the available number of bits. Bits are lost, giving an incorrect result.

6. What is binary 11001 in denary?

  1. 19
  2. 25
  3. 26
  4. 31
Show answer

B: 25. 16 + 8 + 1 = 25.

7. What is denary 12 in hexadecimal?

  1. A
  2. B
  3. C
  4. D
Show answer

C: C. Hex digits run 0-9 then A-F, so 12 is C.

8. What is a right binary shift of two places equivalent to?

  1. Multiplying by 4
  2. Dividing by 4
  3. Adding 2
  4. Subtracting 2
Show answer

B: Dividing by 4. Each right shift divides by 2.

9. What is the 8-bit binary number 01101100 in denary?

  1. 118
  2. 102
  3. 108
  4. 216
Show answer

C: 108. 64 + 32 + 8 + 4 = 108. Place values from the left are 128, 64, 32, 16, 8, 4, 2, 1, and only the bits set to 1 are added.

10. Which is denary 37 written as an 8-bit binary number?

  1. 00101001
  2. 00100101
  3. 10100100
  4. 00110101
Show answer

B: 00100101. 37 = 32 + 4 + 1, so the bits for 32, 4 and 1 are set: 00100101. 00101001 is 41.

Keep going in Full Marks

Full Marks has 70 questions on Binary, hexadecimal and units (60 more than here), set out in practice levels. You also get notes and 3D models for all 2 subtopics of Data representation, plus games, timed exams and past papers.

On your exam board

All GCSE Computer Science topics