1.2 Memory and Storage Flashcards
The need for primary storage
To hold data, programs and instructions that are currently in use.
Types of Primary Storage
RAM
ROM
RAM
Random Access Memory
ROM
Read Only Memory
The difference between RAM and ROM
- ROM is read-only, RAM can be read from and written to.
- RAM is volatile, ROM is non-volatile
Purpose of RAM
RAM is used to hold the operating system and any open documents and programs that are Running At the Moment.
Purpose of ROM
ROM stores instructions and data that are needed for the computer to run, such as BIOS program.
Virtual Memory
Virtual Memory is the use of secondary storage as additional primary memory.
The need for Virtual Memory
Allows data in RAM that isn’t currently being used to be transferred to the hard disk to free up space.
Cache
Cache is a type of high-speed RAM that is used to temporarily hold frequently used instructions.
The need for Secondary Storage
- Storage of programs and data when the power is turned off.
- Semi-permanent storage of data that can change.
- Backup of data files.
- Archive of data files.
Types of Secondary Storage
- Optical
- Magnetic
- Solid State
Advantages of Optical
- Cheap
- Portable
Disadvantages of Optical
- Slow write speed
- Not durable
- Low storage
Examples of Optical
CD, DVD, Blu-Ray
Advantages of Magnetic
- Cheap
- Durable
- High storage
Disadvantages of Magnetic
- Slow write speed
- Not portable
Examples of Magnetic
Hard drive, tape drive, floppy disk.
Advantages of Solid State
- Portable
- Durable
- High storage
- Fast write speed
Disadvantages of Solid State
- Expensive
Examples of Solid State
USB drive, SD card, Micro SC card.
Nibble
4 bits
Byte
8 bits
Kilobyte (KB)
1000 bytes
Megabyte (MB)
1000KB
Gigabyte (GB)
1000MB
Terabyte (TB)
1000GB
Petabyte (PB)
1000TB
Why must data be stored in binary?
All information that is processed by a computer is in the form of binary in order for it to be understood.
Metadata
Additional data stored with the image/audio about the file. Eg. file type, date created, author
Right binary shift
Halves the value
Left binary shift
Doubles the value.
Character set
A defined list of characters that can be stored an recognised by a computer system.
Example of character sets
- ASCII
- Unicode
Calculate text file size
Bits per character x Number of characters
Representation of Images
Each pixel has a binary value that corresponds to a colour, and when they come together they make an image.
Bitmap
An image made up of different coloured pixels, each with their own binary value.
Vector
The mathematics needed to store the square are stored.
Colour depth
The number of bits per pixel.
The more bits per pixel, more colours are available to be represented.
Effect of Colour Depth on file size
The greater the colour depth, the larger the file size.
Calculate image file size
Colour depth x Image height x Image width
Representation of Sound
A microphone picks up sound as an analogue wave, which is then converted to binary with an ADC for the computer to understand.
ADC
Analogue to Digital Converter
Bit Depth
The number of bits stored per sample
Effect of Bit Depth on file size
The greater the bit depth, the larger the file size.
Sample Rate
How often you record the amplitude of a sound wave. Measured in Hz.
Effect of Sample Rate on file size
The greater the sample size,
Calculate sound file size
Bit Depth x Sample Rate x Track Length
Compression
Reducing the number of bits in a file.
Lossy Compression
The file size is greatly reduced however some data is permanently lost in the process.
Lossless Compression
The file size is reduced and no data is lost, rather it is encoded differently.
Advantages of Lossy Compression
- Reduces the file size greatly
- Suitable for image, sound and video files
Disadvantages of Lossy Compression
- Reduces the quality of the image/audio file.
- Unsuitable for text or executable files
Advantages of Lossless Compression
- No data is lost.
- Can be turned back into original format.
- Can be used on all types of data
Disadvantages of Lossless Compression
- Less effective than lossy compression at reducing file size.