Units of Data (Edexcel GCSE Computer Science)

Revision Note

Units of Data

What are units of data?

  • A unit of data is a term given to describe different amounts of binary digits stored on a digital device

  • These are the units you need to know for GCSE:

Unit

Symbol

Value

Bit

b

1 or 0

Nibble

 

4 b

Byte

B

8 b

Kibibyte

KiB

1024 B (210)

Mebibyte

MiB

1,048,576 KB (220)

Gibibyte

GiB

1,073,741,824 MB (230)

Tebibyte

TiB

1,099,511,626,776GB (240)

Megabyte vs Mebibyte

  • 1 kibibyte = 1024 bits - binary prefixes (to the power of 2)

  • 1 kilobyte = 1000 bits - decimal prefixes (to the power of 10)

Examiner Tip

Remember, in the exam you are expected to know how to 'construct an expression' rather than do any calculations .

It is a non-calculator paper!

All expressions should use the binary prefixes (power of 2) so 1024 and not 1000!

Converting between units

  • It is often a requirement of the exam to be able to convert between different units of data, for example bytes to mebibytes (larger) or kibibytes to bytes (smaller)

  • This process involves division, moving up in size of unit and multiplication, moving down in size of unit

  • When dealing with all units bigger than a byte we use multiples of 1024 (210)

  • For example, 2000 kibibytes in mebibytes would be 2000 / 1024 = 1.95 MiB and 2 tebibytes in gibibytes would be 2 * 1024 = 2048 GiB

  • When dealing with bits and bytes the same process is used with the value 8 as there are 8 bits in a byte

  • For example, 24 bits in bytes would be 24 / 8 = 3 B and 10 bytes in bits would be 10 * 8 = 80 b

 

Unit

 

Multiply by 8 ⇑

Bit

Divide by 8 ⇓

Byte

Multiply by 1024 ⇑

Kibibyte

Divide by 1024 ⇓

Mebibyte

Gibibyte

Tebibyte

Calculate File Sizes

How do you calculate file sizes?

  • To calculate file sizes you must follow a simple formula, each type of file has it's own

  • In the exam you are expected to be able to construct expressions to calculate file sizes BUT there is no need to perform them

  • Expressions should be constructed for

    • Images

    • Sound

Images

Width x height x colour depth

Width

500

pixels

Height

500

pixels

Colour Depth

24

bits

Expression =

500 x 500 x 24

Sound

Sample rate x bit depth x duration

Sample rate

10

per second

Bit depth

4

bits per sample

Duration

30

seconds

Expression =

10 x 4 x 30

Examiner Tip

Given the file size and the values of any two of the variables, you may be expected to be able calculate the value of the missing one

Worked Example

An image uses a 24-bit colour depth. It is 150 pixels wide and 230 pixels high.

Construct an expression to calculate the file size of the image in MiB. You do not have to do the calculation [4]

How to answer this question?

  • You are not doing the calculation! just the expression

  • How do you calculate in bits? w x h x cd

  • Bits to bytes (/8)

  • bytes to kibibytes (x1024)

  • kibibytes to mebibytes (x1024)

Answer

  • fraction numerator 150 space x space 230 space x space 24 over denominator 1024 space x space 1024 space x space 8 end fraction

Last updated:

You've read 0 of your 10 free revision notes

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

James Woodhouse

Author: James Woodhouse

Expertise: Computer Science

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.