‘O’ level sake Flashcards
Random-access memory (RAM)
Read-only memory (ROM)
RAM
Where data and instructions are stored temporarily so that they can be quickly accessed by the processor when needed
ROM
Where data and instructions that rarely need to change or would be needed for a computer to start up are stored
Bi-directional
Uni-directional
Bi
2, to and fro
Uni
1
Secondary storage (definition, factors)
Way of storing large amounts of data that will not be lost when power supply is interrupted
Capacity Speed Portability Durability Cost
Magnetic storage media
Advantages
1. Large storage capacity of up to terabytes of data
2. Relatively cheaper than optical and solid-state storage media
Disadvantages
1. Easily damaged and will eventually break over time
2. Much slower than solid-state storage media
Optical storage media
Advantage
Large capacity storage of up to gigabytes of data
Disadvantage
Vulnerable to scratches and fingerprints
Solid-state storage media
Advantage
Much faster than magnetic or optical storage media
Disadvantage
Much more expensive than magnetic or optical storage media
Data bus, address bus
DATA BUS
Bi-directional because data can be sent in both directions between the processor and memory
ADDRESS BUS
Uni-directional because address information is always sent in one direction between the processor and memory
Stages of developing a program
Gather requirements Plan solutions Write code Test and refine code Implement code
Compiler
Code translator program that translates source code into machine code completely before running the compiled program
Interpreter
Code translator program that translates source code into machine code while the interpreter program is running
Compiler advantage and disadvantage
ADVANTAGE
Syntax errors are detected even before the program runs
DISADVANTAGE
Compilers usually do not offer an interactive mode
Interpreter advantage and disadvantage
ADVANTAGE
Interpreters usually have an interpreter mode, which facilitates learning and experimentation
DISADVANTAGE
Syntax errors may interrupt the running of a program