GSCE Computer Science Flashcards
why do we need primary storage
RAM- store instructions while computer is running. CPU fetches instructions from RAM, stores operating system, currently in use programs, open applications and data in use
ROM- stores boot-up sequence for BIOS, loads operating system
difference between RAM and ROM
ROM= non-volatile, usually fixed, contents of it hardly ever changes, smaller than RAM, stores boot up sequence, stores BIOS, loads operating system RAM= volatile, easily expandable, contents change frequently, larger than ROM, stores programs currently in use, open applications, data in use and operating system
virtual memory
Part of secondary storage
Used to store data temporary’s when ram full, data moved from RAM to VM
Make space in RAM
So ram can be filled up with new data
Let’s you run applications larger than what ram can support
Let’s more memory be used than there is in the system
Allows us to open programs when RAM is full
When data in vm is needed, moved back to ram
Virtual memory disadvantage
slows down CPU performance - disk thrashing ( overuse of virtual memory)
Data has to go from virtual memory to ram to CPU and virtual memory is apart of solid state drive/hard disk/secondary storage
this transferring takes processor time
What is secondary storage
long term non-volatile storage of data/files
not constantly connected to computer and devices
isn’t directly accessible by CPU
Why is secondary storage needed
To permanently save files, data and programs when the computer is switched off
back up the data stored in ram
Need for larger storage capacity
RAM is volatile, ROM cannot be written to
what are the types of secondary storage
optical
magnetic
solid state
optical storage
- slow
- easily scratched - low reliability, low durability
- small capacity 700mb -50gb
- small
- portability , easy to move about
- cheap
- no moving parts
- can be backed up easily
- can’t be over written, read-only
- Can be read by other devices
magnetic storage
has moving parts so:
- only reliable in a machine that doesn’t move
- not portable though portable HDD can be get
- has moving parts so not durable
- slow-medium speed
- very large capacity 1-12tb
- cheap
- Data could be corrupted if close enough to a magnetic field
Solid state storage
No moving parts Fast speed Large capacity 250gb-2tb Portable Durable Reliable As no moving parts Expensive cost Can get lost Wear out over a long time period
Properties you should consider when deciding on type of storage to use
capacity
cost
speed
size
portability- physical and if data can be moved from one device to another
durability- ability to resist damage, length of time expected for data to last
reliability- whether data will be saved as expected, data is not affected when saved, no changes to file formatting
robustness
How does optical storage work?
Laser light creates marks in a pattern on a disc
laser light detects where marks are and translates it into readable format
Optical storage capacity
CVD rom- up to 720mb
DVD- up to 8.4 gb
Blu ray- up to 50gb
How does magnetic storage work?
Info is written to/read from the storage medium as it spins by read-and-write heads that changes how magnetised that part of the medium is. heads that detect/ modify the magnetism to read data. magnetism is 1, demagnetised is 0
How do solid state storage work?
made of microchips (switches)
state of switches determine if 1 or 0 is stored
Optical storage examples
Magnetic storage examples
Solid state examples
Solid state storages- USBS drives, Solid state (SD) drives, memory cards, flash memory
Magnetic storage- magnetic tape, mechanical hard disk drives, portable HDD
Optical- Blu-ray, CVD-ROM, DVD
Units
Bit (0 or 1) Nibble (4 bits) Byte (8 bits) Kilobyte (1,000 bytes or 1KB) Megabyte (1,000 KB) Gigabyte (1,000 KB) Terabyte (1,000 GB) Petabyte (1,000 TB)
What is meant by a bit
the smallest representation of data, 1 or 0. Single binary digit
How data needs to be converted into a binary format to be processed by a computer
Computers consists of transistors/switches/logic circuits/ gates which only have two values/ on or off/1 or 0/ open or closed
Circuit only needs to check for two states/ uses switches electricity flowing or not flowing/on or off/1 and 0
Computers consist of
Binary numbers, 1 or 0
The circuit only needs to check for the states 1 or 0
Only understands binary
What is a overflow error
When we add or shift a number and it becomes too big for the register , number can’t fit into 8 bits and is greater than 11111111 and there is a extra carry/bit
Hexadecimal
One hexadecimal is equal to one nibble
made up of 4 bits per hex digit
used in: defining colours in graphics software, represent MAC addresses , displays address, for checksums
Advantages of hexadecimal
Why do people use hexadecimals to represent numbers stored in computers
Straightforward to convert, easier to convert to binary as each hexadecimal digit is a nibble in binary Shorter number to remember than binary Quicker to enter Less susceptible to errors Easier to work with than binary
Binary shifts
Shift to right of binary, if u convert to denary you’ll see it has been divided by 2
Shift to left, multiply by 2