Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Competitions › SOF ICSO › unit 8 of 16

Memory and storage units

SOF ICSO · Computer Science · about 6 minutes

RAM is fast, temporary working memory that is lost when power goes off; ROM keeps its contents. Storage (HDD, SSD, pen drive) keeps files permanently.

Sizes go bit → byte → KB → MB → GB → TB, each 1024 times the last (in binary units).

In this lesson

  1. The memory pyramid
  2. Counting bytes
  3. Worked examples
  4. Where marks are lost
  5. Check yourself

1The memory pyramid

Registers and cache are tiny but very fast; RAM is bigger and slower; storage is huge but slowest. The computer keeps what it needs right now as close to the CPU as possible.

2Counting bytes

An uncompressed image of 1000 × 1000 pixels with 3 bytes per pixel needs 3,000,000 bytes, about 2.9 MB.

Worked examples

  1. Example 1How many 4 MB songs fit on a 1 GB drive?

    1. 1 GB = 1024 MB.
    2. 1024 ÷ 4.

    Answer: 256

See it move

Where marks are lost

  • Using 1000 instead of 1024 when the question uses binary units.
  • Saying ROM is lost when power is off.

Exam tips

  • 8 bits = 1 byte; 1 KB = 1024 bytes.
  • Cache is the fastest memory, inside or near the CPU.
  • SSDs have no moving parts and are faster than hard disks.

Practice questions

  1. Which memory loses its data when power is off?

  2. How many bytes in 2 KB?

  3. Which is the fastest?

More worked examples

Try each one first, then open the working.

  1. 5 byte = ? bits

    Show the working

    Start: Computers count in powers of 2.

    1 byte = 8 bits.

    Answer: 40

  2. A 10 MB file over a 50 Mbps link. Seconds? (1 byte = 8 bits)

    Show the working

    Start: Bits ÷ bits per second.

    Megabytes × 8 = megabits.

    Answer: 1.6 s

  3. How many copies of the largest file fit on an 8 GB pen drive? (1 GB = 1024 MB)

    0100200300400450photo.zipsong.mp3video.mp4notes.pdfMB
    Show the working

    Start: Convert GB to MB, then divide and round down.

    8 × 1024 = 8192 MB; 8192 ÷ 450 = 18.2, so 18 whole copies.

    Answer: 18

  4. An image is 1024 × 600 pixels with 16-bit colour. How big is it, in KB? (1 KB = 1024 bytes)

    Show the working

    Start: Pixels × bits per pixel ÷ 8 ÷ 1024.

    1024 × 600 × 16 ÷ 8 = 1228800 bytes ÷ 1024 = 1,200 KB.

    Answer: 1200 KB

Practise more

New questions every time, at exam level

3 GB = ? MB

Learn it properly

Full chapters with animations, each with an “Explained simply” version.

  • Number systemsClass 7

Sit a timed SOF ICSO mock test

Hardware and softwareNext: Operating systems and files