Systems Flashcards
Two main types of translators
Compiler
Interpreter
Compiler
A compiler translates a complete high level program by converting every instruction into machine code before it executes the program.
Interpreters
An interpreter translates a high level language program one line at a time then performs the high level command. This is repeated until the whole program has been interpreted.
Compiler Advantages
- Only translate once
- Immediately available for use
- Runs faster than interpreted programs
- Can be loaded and executed on other computers which do not have the translator programs
Compiler Disadvantages
- Program errors are only detected when the program is compiled
- Development of programs is awkward as the whole program has to be compiled before it can be run
Interpreter Advantages
It error checks each line of a program as it is written which is useful for people learning to program
Interpreter Disadvantages
- The program has to be translated every time it is executed
- Runs slower than compiled programs
How many bits are in a byte?
8
01100110
102
67
01000011
What is the Mantissa of 0.75843 x 10³
75843
What is the exponent of 0.75843 x 10³
3
How are real numbers stored
Floating point representation - Mantissa and Exponent
How is text stored in the computer?
ASCII
8 bits
Each character has its own 8 bit number
What does ASCII stand for?
American Standard Code for Information Interchange
Vector Graphic Shapes
- Rectangle
- Ellipse
- Line
- Polygon
Vector Graphics Attributes
x/y co-ordinates
Fill colour
Line colour