Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Subject:
Topics:
Cambridge IGCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Data representation
Unit 2
Data transmission
Unit 3
Hardware
Unit 4
Software
Unit 5
The internet and its uses
Unit 6
Automated and emerging technologies
Automated systems
Automated systems
0%
Artificial intelligence
Artificial intelligence
0%
Avg
score:
–
Topics
done:
0/39

Data storage units and file size calculations

Practise 34 exam-style questions on Data storage units and file size calculations for Cambridge IGCSE Computer Science (Paper 1). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with an AI tutor on hand if you get stuck.

  • 34 questions
  • 1–6 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

Write the number of bytes in one tebibyte as a power of 2.

Model answer

2 to the power 40 bytes.

Explanation

1024 is 2 to the power 10, and a tebibyte is four steps up from a byte (KiB, MiB, GiB, TiB). So it is 1024 × 1024 × 1024 × 1024 = 2 to the power (10 × 4) = 2 to the power 40 bytes.

Mark scheme
  1. 1 mark

    2 to the power 40

    accept 2^40

Question 2

2 marks

Identify which is larger, 3000 KiB or 3 MiB. Show your working.

Model answer

3 MiB = 3 × 1024 = 3072 KiB.
3072 KiB is more than 3000 KiB, so 3 MiB is larger.

Explanation

This question tests whether you use 1024. If you think 1 MiB is 1000 KiB, the two look equal. Converting to the same unit with 1024 shows 3 MiB is 72 KiB larger.

Mark scheme
  1. 1 mark

    3 MiB = 3 × 1024 = 3072 KiB

    working

  2. 1 mark

    3 MiB is larger (by 72 KiB)

Question 3

3 marks

An image has a resolution of 256 × 256 pixels. It uses 16 different colours, with the smallest possible colour depth.

Calculate the file size of the image in kibibytes (KiB). Show your working.

Model answer

16 colours need 4 bits per pixel, because 2 to the power 4 = 16.
File size = 256 × 256 × 4 = 262 144 bits.
262 144 ÷ 8 = 32 768 bytes.
32 768 ÷ 1024 = 32 KiB.

Explanation

First find the colour depth from the number of colours, then use width × height × colour depth. 4 bits is half a byte, so the image needs 65 536 ÷ 2 = 32 768 bytes, which is 32 KiB.

Mark scheme
  1. 1 mark

    Colour depth = 4 bits (2 to the power 4 = 16)

  2. 1 mark

    256 × 256 × 4 = 262 144 bits / 32 768 bytes

    follow through their colour depth

  3. 1 mark

    32 KiB

    must use 1024, not 1000

Question 4

4 marks

A digital camera takes photographs with a resolution of 4096 × 2048 pixels and a colour depth of 24 bits. The camera's memory card has 6 GiB of free space.

Calculate how many photographs can be stored in the free space. Show your working.

Model answer

24 bits = 3 bytes per pixel.
One photograph = 4096 × 2048 × 3 = 25 165 824 bytes.
25 165 824 ÷ 1024 ÷ 1024 = 24 MiB (or by cancelling: 4 × 2 × 3 = 24 MiB).
Free space = 6 × 1024 = 6144 MiB.
6144 ÷ 24 = 256 photographs.

Explanation

Work out the size of one photograph, put it in the same unit as the free space, then divide. Cancelling the 1024s (4096 = 4 × 1024 and 2048 = 2 × 1024) means you never need to handle the 8-digit number. Using 1000 anywhere gives a wrong answer.

Mark scheme
  1. 1 mark

    4096 × 2048 × 3 (bytes) / 4096 × 2048 × 24 (bits)

    working for one photograph

  2. 1 mark

    One photograph = 24 MiB

    accept 25 165 824 bytes or 24 576 KiB

  3. 1 mark

    6 GiB = 6144 MiB

    accept the free space in the same unit as their photograph size

  4. 1 mark

    6144 ÷ 24 = 256 photographs

    follow through their values

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

AI Tutor Hints first, answers after you try

Hi! Stuck? Ask me for a hint and I’ll help you work it out. Once you’ve checked your answer I can explain exactly where the marks are.