1.2 Memory and storage Flashcards
1.2.1 Primary storage (memory)
The need for primary storage
- low capacity
- internal storage
- directly accesed from the CPU
1.2.1 Primary storage (memory)
RAM vs ROM
RAM:
* volatile (temporary) storage
* stores currently running instructions/data
* able to read and written into
ROM:
* non-volatile
* stores boot program to turn on a computer
* read only memory
1.2.1 Primary storage (memory)
Virtual memory
- using hard disk drive as an extension of RAM for when there is insufficient space on RAM
- unused data in RAM is moved to hard drive, so new & needed data can be put into the RAM
- allows users to run more programs simultaneously with less system slow down
1.2.2 Secondary storage
The need for secondary storage
- non-volatile
- save/stores repeatedly accessed data
- slower to access than primary data - further away from CPU
1.2.2 Secondary storage
Optical storage
- eg: CDs, DVDs, Blu-Ray
- read and write, using lasers
Pros: thin, very portable, cheap
Cons: low capacity, not durable, slowest access speed
1.2.2 Secondary storage
Magnetic storage
- eg: hard disk drive, tape drivers
pros: large capacity, quicker than optical, cheap
cons: not durable, not portable, slow access speed
1.2.2 Secondary storage
Solid state
- eg: solid state drives, USB memory sticks, SD cards
Pros: high capacity, durable, portable, fastest access speeds
Cons: expensive, per gigabyte
1.2.2 Secondary storage
which storage type is the best and worst?
Solid state is the best
Optical is the worst
1.2.3 Units
Storage unit order
- bit
- nibble
- byte
- kilobyte
- megabyte
- gigabyte
- terabyte
- petabyte
Kites Make Great Toy Planes
1.2.4 Data storage - Numbers
Hex, binary, denary conversion
Hex to denary:
* base 16, letter.
* 2A = (2x16)+10 = 42 in denary
Denary to hex:
* 27 = 27/16 = 1r11 = 1B
Binary to hex:
* split into nibble and add and calculate
* 11100101 = 1110 | 0101 = 14 | 5 = 14 +5 = E5
Hex to binary:
* 3B
* 3 = 0011
* B = 11 = 1011
* 3B = 00111011
1.2.4 Data storage - Numbers
Binary shifts
shift left = multiple
shift right = divide
eg: shift right by 3 place:
01010001 = 00001010
cut 3 digits off from the right, replace with 3 0s on the left
shift 1 = effect 2 | shift 2 = effect 4 |shift 3 = effect 8
1.2.4 Data storage - characters
definition of character set
Character set: a table that matches together a character and a binary value.
Necessary as they allow computers to exchange data and humans to input characters
1.2.4 Data storage - characters
ASCII vs Unicode
ASCII:
* doesn’t take much memory
* uses 1 byte to provide 256 characters
* enough for english language, can’t be used for different languages
Unicode:
* uses more memory space
* uses 2 bytes to provide 65,536 characters
* allows different languages and thousand of symbols & emojis
1.2.4 Data storage - images
How is an image presented to a computer?
- as a series of pixels: each pixel has a specific colour, with a specific code
- also represented in binary
1.2.4 Data storage - images
What is metadata
- stores additional image information
- eg: height, width