2210 · Chapter 1

Data Representation

Learn each subtopic step by step, check yourself, practise past papers, then revise.

Start here

By the end of this chapter

  • I can explain why computers represent all data in binary.
  • I can convert between denary, binary and hexadecimal (up to 16 bits).
  • I can explain the benefits of hexadecimal and give examples of where it is used.
  • I can add two 8-bit binary numbers and explain overflow.
  • I can perform logical shifts and use two's complement for negative numbers.
  • I can describe how text, sound and images are represented, and calculate file sizes.
  • I can compare lossy and lossless compression.

How to use this page

  1. Learn each subtopic in order: watch the Video lecture, read the Detailed notes, learn the Key terms, then try the labs and the practice questions.
  2. Read the Exam traps so you don't lose easy marks.
  3. Check yourself with the quiz: it shows which objectives need more work.
  4. Do the past-paper questions, then mark them with the answers.
  5. Before the exam, Revise with the full notes, infographics and revision key.

Syllabus

From the Cambridge O Level Computer Science 2210 syllabus for 2026, 2027 and 2028.

1.1 Number systems

Candidates should be able to:

  1. Understand how and why computers use binary to represent all forms of data
  2. (a) Understand the denary, binary and hexadecimal number systems
    (b) Convert between
    (i) positive denary and positive binary
    (ii) positive denary and positive hexadecimal
    (iii) positive hexadecimal and positive binary
  3. Understand how and why hexadecimal is used as a beneficial method of data representation
  4. (a) Add two positive 8-bit binary integers
    (b) Understand the concept of overflow and why it occurs in binary addition
  5. Perform a logical binary shift on a positive 8-bit binary integer and understand the effect this has on the positive binary integer
  6. Use the two’s complement number system to represent positive and negative 8-bit binary integers
Notes and guidance
  • Any form of data needs to be converted to binary to be processed by a computer
  • Data is processed using logic gates and stored in registers
  • Denary is a base 10 system
  • Binary is a base 2 system
  • Hexadecimal is a base 16 system
  • Values used will be integers only
  • Conversions in both directions, e.g. denary to binary or binary to denary
  • Maximum binary number length of 16-bit
  • Areas within computer science that hexadecimal is used should be identified
  • Hexadecimal is easier for humans to understand than binary, as it is a shorter representation of binary
  • An overflow error will occur if the value is greater than 255 in an 8-bit register
  • A computer or a device has a predefined limit that it can represent or store, for example 16-bit
  • An overflow error occurs when a value outside this limit should be returned
  • Perform logical left shifts
  • Perform logical right shifts
  • Perform multiple shifts
  • Bits shifted from the end of the register are lost and zeros are shifted in at the opposite end of the register
  • The positive binary integer is multiplied or divided according to the shift performed
  • The most significant bit(s) or least significant bit(s) are lost
  • Convert a positive binary or denary integer to a two’s complement 8-bit integer and vice versa
  • Convert a negative binary or denary integer to a two’s complement 8-bit integer and vice versa

1.2 Text, sound and images

Candidates should be able to:

  1. Understand how and why a computer represents text and the use of character sets, including American standard code for information interchange (ASCII) and Unicode
  2. Understand how and why a computer represents sound, including the effects of the sample rate and sample resolution
  3. Understand how and why a computer represents an image, including the effects of the resolution and colour depth
Notes and guidance
  • Text is converted to binary to be processed by a computer
  • Unicode allows for a greater range of characters and symbols than ASCII, including different languages and emojis
  • Unicode requires more bits per character than ASCII
  • A sound wave is sampled for sound to be converted to binary, which is processed by a computer
  • The sample rate is the number of samples taken in a second
  • The sample resolution is the number of bits per sample
  • The accuracy of the recording and the file size increases as the sample rate and resolution increase
  • An image is a series of pixels that are converted to binary, which is processed by a computer
  • The resolution is the number of pixels in the image
  • The colour depth is the number of bits used to represent each colour
  • The file size and quality of the image increase as the resolution and colour depth increase

1.3 Data storage and compression

Candidates should be able to:

  1. Understand how data storage is measured
  2. Calculate the file size of an image file and a sound file, using information given
  3. Understand the purpose of and need for data compression
  4. Understand how files are compressed using lossy and lossless compression methods
Notes and guidance
  • Including:
    • bit
    • nibble
    • byte
    • kibibyte (KiB)
    • mebibyte (MiB)
    • gibibyte (GiB)
    • tebibyte (TiB)
    • pebibyte (PiB)
    • exbibyte (EiB)
  • The amount of the previous denomination present in the data storage size, e.g.:
    • 8 bits in a byte
    • 1024 mebibytes in a gibibyte
  • Answers must be given in the units specified in the question. Calculations must use the measurement of 1024 and not 1000
  • Information given may include:
    • image resolution and colour depth
    • sound sample rate, resolution and length of track
  • Compression exists to reduce the size of the file
  • What the impact of this is, e.g.:
    • less bandwidth required
    • less storage space required
    • shorter transmission time
  • Lossy compression reduces the file size by permanently removing data, e.g. reducing resolution or colour depth, reducing sample rate or resolution
  • Lossless compression reduces the file size without permanent loss of data, e.g. run length encoding (RLE)
humaimrancsPrepared by Miss Huma Imran

1.1 Number systems

Video lecture

The video lecture for 1.1 Number systems is coming soon.

Until then, read the Detailed notes, or book a session and I will explain it to you live.

Book a slot
humaimrancsPrepared by Miss Huma Imran

1.1 Number systems

Detailed notes

What you need to know (1.1 syllabus)

From the Cambridge O Level Computer Science 2210 syllabus for 2026, 2027 and 2028.

1.1 Number systems

Candidates should be able to:

  1. Understand how and why computers use binary to represent all forms of data
  2. (a) Understand the denary, binary and hexadecimal number systems
    (b) Convert between
    (i) positive denary and positive binary
    (ii) positive denary and positive hexadecimal
    (iii) positive hexadecimal and positive binary
  3. Understand how and why hexadecimal is used as a beneficial method of data representation
  4. (a) Add two positive 8-bit binary integers
    (b) Understand the concept of overflow and why it occurs in binary addition
  5. Perform a logical binary shift on a positive 8-bit binary integer and understand the effect this has on the positive binary integer
  6. Use the two’s complement number system to represent positive and negative 8-bit binary integers
Notes and guidance
  • Any form of data needs to be converted to binary to be processed by a computer
  • Data is processed using logic gates and stored in registers
  • Denary is a base 10 system
  • Binary is a base 2 system
  • Hexadecimal is a base 16 system
  • Values used will be integers only
  • Conversions in both directions, e.g. denary to binary or binary to denary
  • Maximum binary number length of 16-bit
  • Areas within computer science that hexadecimal is used should be identified
  • Hexadecimal is easier for humans to understand than binary, as it is a shorter representation of binary
  • An overflow error will occur if the value is greater than 255 in an 8-bit register
  • A computer or a device has a predefined limit that it can represent or store, for example 16-bit
  • An overflow error occurs when a value outside this limit should be returned
  • Perform logical left shifts
  • Perform logical right shifts
  • Perform multiple shifts
  • Bits shifted from the end of the register are lost and zeros are shifted in at the opposite end of the register
  • The positive binary integer is multiplied or divided according to the shift performed
  • The most significant bit(s) or least significant bit(s) are lost
  • Convert a positive binary or denary integer to a two’s complement 8-bit integer and vice versa
  • Convert a negative binary or denary integer to a two’s complement 8-bit integer and vice versa

The notes for 1.1 Number systems. Use the buttons, the arrow keys, or swipe on a phone.

Loading…

humaimrancsPrepared by Miss Huma Imran

1.1 Number systems

Practice questions

Every question is from a Cambridge past paper. Each topic is a set of 10 questions, and each new set gives you questions you have not had yet. Use the place value grid: click a bit to switch it between 0 and 1, then check your answer.

humaimrancsPrepared by Miss Huma Imran

1.1 Number systems

Exam traps

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

1.2 Text, sound and images

Video lecture

The video lecture for 1.2 Text, sound and images is coming soon.

Until then, read the Detailed notes, or book a session and I will explain it to you live.

Book a slot
humaimrancsPrepared by Miss Huma Imran

1.2 Text, sound and images

Detailed notes

What you need to know (1.2 syllabus)

From the Cambridge O Level Computer Science 2210 syllabus for 2026, 2027 and 2028.

1.2 Text, sound and images

Candidates should be able to:

  1. Understand how and why a computer represents text and the use of character sets, including American standard code for information interchange (ASCII) and Unicode
  2. Understand how and why a computer represents sound, including the effects of the sample rate and sample resolution
  3. Understand how and why a computer represents an image, including the effects of the resolution and colour depth
Notes and guidance
  • Text is converted to binary to be processed by a computer
  • Unicode allows for a greater range of characters and symbols than ASCII, including different languages and emojis
  • Unicode requires more bits per character than ASCII
  • A sound wave is sampled for sound to be converted to binary, which is processed by a computer
  • The sample rate is the number of samples taken in a second
  • The sample resolution is the number of bits per sample
  • The accuracy of the recording and the file size increases as the sample rate and resolution increase
  • An image is a series of pixels that are converted to binary, which is processed by a computer
  • The resolution is the number of pixels in the image
  • The colour depth is the number of bits used to represent each colour
  • The file size and quality of the image increase as the resolution and colour depth increase

The notes for 1.2 Text, sound and images. Use the buttons, the arrow keys, or swipe on a phone.

Loading…

humaimrancsPrepared by Miss Huma Imran

1.2 Text, sound and images

Text, sound and image lab

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

1.2 Text, sound and images

Image and sound practice

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

1.2 Text, sound and images

Exam traps

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

1.3 Data storage and compression

Video lecture

The video lecture for 1.3 Data storage and compression is coming soon.

Until then, read the Detailed notes, or book a session and I will explain it to you live.

Book a slot
humaimrancsPrepared by Miss Huma Imran

1.3 Data storage and compression

Detailed notes

What you need to know (1.3 syllabus)

From the Cambridge O Level Computer Science 2210 syllabus for 2026, 2027 and 2028.

1.3 Data storage and compression

Candidates should be able to:

  1. Understand how data storage is measured
  2. Calculate the file size of an image file and a sound file, using information given
  3. Understand the purpose of and need for data compression
  4. Understand how files are compressed using lossy and lossless compression methods
Notes and guidance
  • Including:
    • bit
    • nibble
    • byte
    • kibibyte (KiB)
    • mebibyte (MiB)
    • gibibyte (GiB)
    • tebibyte (TiB)
    • pebibyte (PiB)
    • exbibyte (EiB)
  • The amount of the previous denomination present in the data storage size, e.g.:
    • 8 bits in a byte
    • 1024 mebibytes in a gibibyte
  • Answers must be given in the units specified in the question. Calculations must use the measurement of 1024 and not 1000
  • Information given may include:
    • image resolution and colour depth
    • sound sample rate, resolution and length of track
  • Compression exists to reduce the size of the file
  • What the impact of this is, e.g.:
    • less bandwidth required
    • less storage space required
    • shorter transmission time
  • Lossy compression reduces the file size by permanently removing data, e.g. reducing resolution or colour depth, reducing sample rate or resolution
  • Lossless compression reduces the file size without permanent loss of data, e.g. run length encoding (RLE)

The notes for 1.3 Data storage and compression. Use the buttons, the arrow keys, or swipe on a phone.

Loading…

humaimrancsPrepared by Miss Huma Imran

1.3 Data storage and compression

Compression lab

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

1.3 Data storage and compression

File size estimation practice

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

1.3 Data storage and compression

Exam traps

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

Check yourself

Check each objective: 41 questions, marked instantly against CAIE mark-scheme keywords. Your results show which objectives are secure and which need work.

humaimrancsPrepared by Miss Huma Imran

Games

Sorting games, quick-fire recall, memory hooks, fill the gaps and answer builders for this chapter. Play them after each subtopic, and again before a test.

Play the Chapter 1 games

humaimrancsPrepared by Miss Huma Imran

Exam practice

Topical questions

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

Exam practice

Answers

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

Revise

Detailed notes (whole chapter)

The whole chapter in one document, for revision.

Loading…

humaimrancsPrepared by Miss Huma Imran

Revise

Infographics

This part of Chapter 1 is in the full course. The video lectures, the notes, the conversion practice, the Number systems quiz questions and the games are free for everyone.

See course plans Log in

humaimrancsPrepared by Miss Huma Imran

Stuck on this chapter?

Book a 30-minute clinic and we'll work through it together.

Book a session