1.2 Memory And Storage Flashcards
What does primary storage consist of
RAM (random access memory)
ROM (read only memory)
What is ROM
Small piece of read only memory
Non volatile (contents remain when power turned off)
Programs may be stored in it in embedded systems
Contains very first instructions for computer when its turned on (bootstrap)
What’s RAM
Temporary storage of instructions & data
Volatile (contents lost when power is turned off)
Read and write
Much faster than the hard disk
Holds operating system, programs and data in use by CPU when computer’s running
How does virtual memory work
Needed when not enough physical RAM to store open programs
Held on hard disk
Programs swapped to virtual memory from RAM when not currently in use
Programs swapped back to RAM from virtual memory when they’re needed
Why is secondary storage needed
ROM is read only + for bootstrap and RAM is volatile + for the working memory
What’s secondary storage needed for
Storage of programs when power is turned off
Long term storage
Backup of data files
What’s optical storage + examples
CD, DVD, blu-ray
Low capacity compared to other types of storage
Slow to access data
Lightweight + portable
What’s magnetic storage + examples
Hard disk drive, magnetic tape
High storage capacity
Quick to access data
Has moving parts - eventually fail
What’s solid state storage + examples
SSD, memory sticks, flash memory cards, SD cards
Medium storage capacity
Very quick to access data
No moving parts - very reliable/durable
Limited number of read/write cycles
Expensive per gig compared to other types of storage
Why do we use binary
A CPU is made of millions of transistors that can be in one of two states - on or off
How do you calculate text files sizes
Bits per character x number of characters
How do you calculate image file size
Colour depth x image height x image width
How do you calculate sound file size
Sample rate x duration in seconds x bit depth
What are the placeholder headings in binary
128 64 32 16 8 4 2 1
Why do we use hexadecimal
Binary can be difficult to work with, its shorter, it can easily be converted to/from binary as theres 1 hex digit per nibble and hex is less susceptible to errors