aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 1.2Storing data in binary
Back to Computer Science HL Topics
1.2.24 min read

Storing data in binary (Computer Science HL)

IB Computer Science • Unit 1

Smart study tools

Turn reading into results

Move beyond passive notes. Answer real exam questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  • Bits mean nothing on their own
  • Numbers, characters and text
  • Images, sound and video
  • Exam-style question
The big idea: Everything a computer stores is bits. A photo, a song and a spreadsheet are all just long runs of 1s and 0s.

What makes them different is the agreement about how to read them — and that agreement lives in the program, never in the bits.

One byte, 01000001, read four different ways. The bits never change.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime
A character set is a lookup list: Everyone agrees in advance that 65 means A, 66 means B, and so on.

Store the number, and any program that knows the same list can show the right letter.

Integers

  • Stored by place value — the columns double
  • One byte holds 0 to 255
  • Bigger numbers simply use more bytes
  • One extra bit can mark the number as negative

Characters

  • A character set assigns each character a number
  • ASCII — one byte per character, enough for English
  • Unicode — every writing system, using more bytes when needed
  • The character itself is never stored; only its number

Strings

  • A string is characters stored one after another
  • "CAT" is 67, 65, 84 — three bytes in a row
  • The computer also needs to know where the string ends
  • That is why a long name takes more storage than a short one
Why the same byte can be two things: 01000001 is 65 if a program is reading numbers and A if it is reading text.

Opening a file with the wrong program shows nonsense for exactly this reason: the bits are fine, the agreement is wrong.

Stop wasting time on topics you know

Our AI identifies your weak areas and focuses your study time where it matters. No more overstudying easy topics.

Try Smart Study FreeYour first topic is free to keep • No credit card required
Measure it, then store the measurements: Pictures and sound are not naturally made of numbers. So the computer samples them — takes many small measurements — and stores those.

More measurements means more detail, and more storage.
1

Images — one measurement per pixel

2

Audio — thousands of measurements a second

3

Video — images plus audio, many times a second

What this costs you: Storage and retrieval both scale with the number of measurements.

A bigger file needs more room, takes longer to read from storage, and takes longer to send over a network — which is the reason compression exists.

How this is tested — you must explain the ENCODING — what is measured, and what number gets stored. It comes up two ways:

Paper 1 Section A

  • Explain how a stated data type is stored, 2-4 marks
  • Say why one file is larger than another
  • Link detail or quality to storage size

Paper 1 Section B — case study

  • Explain the storage needs of the case study's data
  • Justify a format or a quality setting from them
The classic trap: Answering "it is stored as 1s and 0s". Everything is. The mark is for saying what was measured and what number was stored — brightness per pixel, wave height per sample.
IB-style questionExplain[4 marks]

Explain how a colour photograph is stored in binary, and why increasing its resolution increases the file size.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Storing data in binary. Write your answer and get instant AI feedback — just like a real IB examiner.

how a black-and-white image is stored in binary. [2 marks]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

1.1.1CPU components
1.1.2The GPU
1.1.3CPU vs GPU
1.1.4Primary memory
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
1.2.1Binary and hex
Next
Logic gates1.2.3

20 questions to test your understanding

Reading is just the start. Students who tested themselves scored 82% on average — try IB-style questions with AI feedback.

Start FreeView All Computer Science HL Topics