MadeByZack
Sign in
Back

1.2.3 Units · Paper 1

Units: bits, bytes and file sizes

Each section has pictures and things to try, then its key points and key words. Exam practice is at the end of the page.

You need to know

  • Why data must be stored in binary
  • The units from bit up to petabyte, and how to move between them
  • That storage devices have fixed capacities
  • How to work out the storage needed for a set of files
  • How to calculate the size of sound, image and text files

Also accepted

  • Using 1,024 instead of 1,000 in conversions is accepted.
  • You can allow extra space for metadata in calculations.

Why binary?

Computers are made of billions of tiny switches that are either on (1) or off (0). So everything, including numbers, text, images and sound, has to be turned into binary before a computer can process it.

Key points

Why computers use binary

  • A computer is made of billions of tiny switches called transistors.
  • Each switch can only be on (1) or off (0).
  • So all data (numbers, text, images, sound, programs) must be converted into binary before a computer can process it.
  • One binary digit (0 or 1) is called a bit.

Key words

Say what each one means, then tap to check.

The units

Bita single 0 or 1
Nibble4 bits
Byte8 bits
Kilobyte (KB)1,000 bytes
Megabyte (MB)1,000 KB
Gigabyte (GB)1,000 MB
Terabyte (TB)1,000 GB
Petabyte (PB)1,000 TB
Going down a step: × 1,000. Going up a step: ÷ 1,000. (Bits to bytes: ÷ 8.)

Try it

Convert between units. Watch each step.

Try it

Put the units in order, from smallest to biggest. Try it with the ladder covered.

  1. Bit
  2. Nibble
  3. Byte
  4. Kilobyte (KB)
  5. Megabyte (MB)
  6. Gigabyte (GB)
  7. Terabyte (TB)
  8. Petabyte (PB)

Key points

Bits, nibbles and bytes

Before this: Why computers use binary

  • Bit: a single 0 or 1.
  • Nibble: 4 bits.
  • Byte: 8 bits. One byte can store one character of text.
  • To change bits to bytes, divide by 8. Bytes to bits: × 8.

Kilobytes to petabytes

Before this: Bits, nibbles and bytes

  • 1 kilobyte (KB) = 1,000 bytes.
  • 1 megabyte (MB) = 1,000 KB. 1 gigabyte (GB) = 1,000 MB.
  • 1 terabyte (TB) = 1,000 GB. 1 petabyte (PB) = 1,000 TB.
  • Going to a smaller unit: × 1,000. Going to a bigger unit: ÷ 1,000.
  • Using 1,024 instead of 1,000 is also accepted in the exam.

Key words

Say what each one means, then tap to check.

File size formulas

Sound = sample rate × duration (seconds) × bit depth

Image = colour depth × image height (pixels) × image width (pixels)

Text = bits per character × number of characters

Each answer is in bits. Divide by 8 for bytes, then by 1,000 for kilobytes.

Example: an image 100 × 50 pixels with 8-bit colour = 8 × 50 × 100 = 40,000 bits = 5,000 bytes = 5 KB.

Try it

Work out a file size. Change the numbers.

Key points

Text file size

Before this: Kilobytes to petabytes1.2.4ASCII and Unicode

  • Text file size = bits per character × number of characters
  • ASCII uses 8 bits per character in the exam. Unicode may use more, e.g. 16 or 32.
  • Divide the answer by 8 to get bytes, then by 1,000 for KB.

Text file size (bits) = bits per character × number of characters

Image file size

Before this: Kilobytes to petabytes1.2.4Colour depth and resolution

  • Image file size = colour depth × height (pixels) × width (pixels)
  • The answer is in bits. ÷ 8 for bytes, ÷ 1,000 for KB.
  • Metadata adds a little extra, but you can ignore it unless the question mentions it.

Image file size (bits) = colour depth × height × width

Sound file size

Before this: Kilobytes to petabytes1.2.4Sample rate and bit depth

  • Sound file size = sample rate × duration (seconds) × bit depth
  • Sample rate is in hertz (samples per second).
  • The answer is in bits. ÷ 8 for bytes, ÷ 1,000 for KB, ÷ 1,000 again for MB.

Sound file size (bits) = sample rate × duration × bit depth

Key words

Say what each one means, then tap to check.

How much storage is needed?

Add up the sizes of all the files, making sure they are in the same unit first. Then compare with the device's capacity.

Example: 200 photos at 4 MB each = 800 MB. That fits on a 1 GB memory stick (1,000 MB).

Key points

How much storage do I need?

Before this: Text file sizeImage file sizeSound file size

  • Work out the size of each file, or each type of file.
  • Convert them all to the same unit.
  • Add them up, then compare with the device's capacity.
  • Number of files that fit = capacity ÷ size of one file (round down).

Key words

Say what each one means, then tap to check.

Exam practice

22 questions in the style of the OCR exam, 40 marks in total. Try each one, then check the mark scheme.

Why binary?

Question 1[2 marks]
Explain why computers use binary.
Hint

What is a computer made of, and how many states can each of those parts be in?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • Computers are made of switches / transistors…
  • …which have only two states, on and off.

Don't accept: "Computers understand 1s and 0s" with no reason. Link it to switches that have two states.

1 mark for each point.

Question 2[1 mark]
State what is meant by a bit.
Hint

"Bit" is short for binary digit.

State means give a short, clear answer. You don't need to explain it.

1 mark: one answer is enough.

Show mark scheme
  • A single binary digit (0 or 1).

The units

Question 3[1 mark]
State how many bits are in a nibble.
Hint

A nibble is half a byte.

State means give a short, clear answer. You don't need to explain it.

1 mark: one answer is enough.

Show mark scheme
  • 4
Question 4[1 mark]
Convert 48 bits to bytes.
Hint

There are 8 bits in every byte. Going from bits to bytes, do you multiply or divide?

Convert means change it into the other form. Show your working.

1 mark: for the correct answer.

Show mark scheme
  • 6 bytes.
Question 5[1 mark]
State how many bits are in 3 bytes.
Hint

Each byte is 8 bits.

State means give a short, clear answer. You don't need to explain it.

1 mark: one answer is enough.

Show mark scheme
  • 24
Question 6[1 mark]
Convert 3.5 GB to megabytes.
Hint

GB to MB is going to a smaller unit, so there will be more of them. Multiply by 1,000.

Convert means change it into the other form. Show your working.

1 mark: for the correct answer.

Show mark scheme
  • 3,500 MB (accept 3,584).
Question 7[1 mark]
Convert 750 KB to megabytes.
Hint

KB to MB is going to a bigger unit, so there will be fewer of them. Divide by 1,000.

Convert means change it into the other form. Show your working.

1 mark: for the correct answer.

Show mark scheme
  • 0.75 MB.

Also accept: 0.73 MB (using 1,024).

Question 8[1 mark]
Put in order, smallest first: PB, MB, TB, KB.
Hint

Kilo, mega, giga, tera, peta. Each one is 1,000 times the one before.

Put in order means arrange them from first to last.

Show mark scheme
  • KB, MB, TB, PB.

File size formulas

Question 9[2 marks]
A message has 500 characters stored using 8-bit ASCII. Calculate the file size in bytes.
Hint

Bits per character × number of characters gives bits. Then ÷ 8 for bytes.

Calculate means work out the answer. Show your working.

2 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 500 × 8 = 4,000 bits.
  • ÷ 8 = 500 bytes.

1 mark for the working, 1 mark for the answer.

Question 10[2 marks]
The same 500 characters are stored using 16-bit Unicode. Calculate the size in bytes.
Hint

Same method, but each character now takes 16 bits.

Calculate means work out the answer. Show your working.

2 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 500 × 16 = 8,000 bits.
  • ÷ 8 = 1,000 bytes.

1 mark for the working, 1 mark for the answer.

Question 11[3 marks]
An image is 400 × 300 pixels with a colour depth of 4 bits. Calculate its size in KB.
Hint

Colour depth × height × width gives bits. Then ÷ 8 for bytes, and ÷ 1,000 for KB.

Calculate means work out the answer. Show your working.

3 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 400 × 300 × 4 = 480,000 bits.
  • ÷ 8 = 60,000 bytes.
  • ÷ 1,000 = 60 KB.

Also accept: A correct final answer with no working gets full marks.

Don't accept: 480 KB. The bits were not divided by 8 to make bytes.

1 mark for each step. Accept 58.59 KB using 1,024.

Question 12[1 mark]
State what happens to the file size if the colour depth is doubled.
Hint

Look at the formula. If one of the numbers you multiply doubles, what happens to the answer?

State means give a short, clear answer. You don't need to explain it.

1 mark: one answer is enough.

Show mark scheme
  • The file size doubles.
Question 13[3 marks]
A 5-second sound is sampled at 8,000 Hz with a bit depth of 8 bits. Calculate the file size in KB.
Hint

Sample rate × seconds × bit depth gives bits. Then ÷ 8 for bytes, and ÷ 1,000 for KB.

Calculate means work out the answer. Show your working.

3 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 8,000 × 5 × 8 = 320,000 bits.
  • ÷ 8 = 40,000 bytes.
  • ÷ 1,000 = 40 KB.

Also accept: A correct final answer with no working gets full marks.

Don't accept: 320 KB. The bits were not divided by 8 to make bytes.

1 mark for each step. Accept 39.06 KB using 1,024.

Question 14[1 mark]
State what happens to the file size if the duration is halved.
Hint

Duration is one of the numbers in the formula. Halve it, and what happens to the answer?

State means give a short, clear answer. You don't need to explain it.

1 mark: one answer is enough.

Show mark scheme
  • It halves.

How much storage is needed?

Question 15[2 marks]
A student has 120 songs at 5 MB each and 40 photos at 2 MB each. Calculate the total storage needed in MB.
Hint

Work out the songs and the photos separately, then add them.

Calculate means work out the answer. Show your working.

2 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 120 × 5 = 600 MB and 40 × 2 = 80 MB.
  • Total = 680 MB.

1 mark for the working, 1 mark for the total.

Question 16[2 marks]
How many 250 MB videos can fit on a 32 GB memory card?
Hint

Change 32 GB into MB first, so both numbers are in the same unit. Then divide.

Calculate means work out the answer. Show your working.

2 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 32 GB = 32,000 MB.
  • 32,000 ÷ 250 = 128 videos.

1 mark for converting to the same unit, 1 mark for the answer. Accept 131 using 1,024.

Mixed questions on the whole page

Question 17[2 marks]
A student says: "Computers store photos and music in a different way from numbers, so they don't need binary." Explain why the student is wrong.
Hint

What is a computer made of? How many states can each of those parts be in?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • All data, including photos and music, has to be converted into binary…
  • …because a computer is made of switches / transistors that only have two states, on and off (1 and 0).

1 mark for each point.

Question 18[2 marks]
Put these units in order from smallest to largest: GB, nibble, KB, bit, TB.
Hint

A nibble is half a byte. Then go up in steps of 1,000.

Put in order means arrange them from first to last.

2 marks: check every part before you finish.

Show mark scheme
  • bit, nibble, KB, GB, TB.

2 marks all correct, 1 mark with one error

Question 19[3 marks]
An image is 200 pixels wide and 100 pixels high, with a colour depth of 8 bits. Calculate the file size in kilobytes. Show your working.
Hint

Width × height × colour depth gives bits. Then ÷ 8 for bytes, and ÷ 1,000 for KB.

Calculate means work out the answer. Show your working.

3 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 200 × 100 × 8 = 160,000 bits.
  • ÷ 8 = 20,000 bytes.
  • ÷ 1,000 = 20 KB.

Also accept: A correct final answer with no working gets full marks.

Don't accept: 160 KB. The bits were not divided by 8 to make bytes.

Accept 19.53 KB using 1,024

Question 20[3 marks]
A sound is recorded for 10 seconds with a sample rate of 40,000 Hz and a bit depth of 16 bits. Calculate the file size in kilobytes. Show your working.
Hint

Sample rate × seconds × bit depth gives bits. Then ÷ 8 for bytes, and ÷ 1,000 for KB.

Calculate means work out the answer. Show your working.

3 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 40,000 × 10 × 16 = 6,400,000 bits.
  • ÷ 8 = 800,000 bytes.
  • ÷ 1,000 = 800 KB.

Also accept: A correct final answer with no working gets full marks.

Don't accept: 6,400 KB. The bits were not divided by 8 to make bytes.

Accept 781.25 KB using 1,024

Question 21[2 marks]
A text file is 4 KB in size. It is stored using 8-bit ASCII. Calculate how many characters it contains.
Hint

Work backwards: change KB into bytes. How many bytes does one ASCII character take?

Calculate means work out the answer. Show your working.

2 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 4 KB = 4,000 bytes (or 32,000 bits).
  • Each character is 1 byte (8 bits), so 4,000 characters.

1 mark for the working, 1 mark for the answer. Accept 4,096 using 1,024.

Question 22[3 marks]
A student wants to copy 300 photos, each 3 MB, and one 2.5 GB video onto a 4 GB USB stick. Will they all fit? Show your working.
Hint

Work out the photos first. Then put everything in the same unit before you add it up and compare.

Show means show each step of your working, not just the answer.

3 marks: your working can earn marks as well as the answer.

Show mark scheme
  • 300 × 3 = 900 MB.
  • Converts to the same unit, e.g. 900 MB = 0.9 GB (or 2.5 GB = 2,500 MB).
  • Total = 3.4 GB (3,400 MB), which is less than 4 GB, so yes, they fit.

Also accept: Working with 1,024, e.g. 900 MB = 0.88 GB, so the total is about 3.38 GB.

Don't accept: "Yes" with no working. The working gets the marks.

1 mark for each step.