Form 4G/ 4A: Prepared By: O. Hibbert
Form 4G/ 4A: Prepared By: O. Hibbert
Form 4G/ 4A: Prepared By: O. Hibbert
Programming and
Problem Solving
Form 4G\
4A
1. Machine Language
2. Assembly Language
3. High Level Languages
4. Fourth Generation Languages
5. Fifth Generation Languages
6. Natural Languages
Machine Language
1. consist of strings made up of 1s and 0s. The only programming
language the computer can understand. (it is understood by the
computer without any interpretation.)
Disadvantages
1. Writing of machine language is tedious and time consuming. Why is
this so?
2. Programming errors are difficult to find and correct (‘debug’)
Assembly Language
• is classified, as a low level language because detailed
knowledge of hardware specifics is still required.
• uses special code called mnemonic to represent
machine language instructions. e.g., instead of using
of 1s and 0s to represent an addition operation, a
programmer might use the mnemonic AD.
Interpreters
2. translate high-level statements one at a time, executing
each step immediately after it has been translated. No
permanent object program is generated. Each time a
source program is encountered, it is re-interpreted
Relationship between
source code, translator and
object code
SOURCE TRANSLATORS OBJECT
CODE CODE
Advantages of High Level Language
Over Machine Language
GO BACK
mnemonic
A word or string which is intended to be
easier to remember than the thing it
stands for. Most often used in
"instruction mnemonic" which are so
called because they are easier to
remember than the binary patterns they
stand for. characters also have
mnemonics like NAK, ESC, DEL intended
to evoke their meaning on certain
systems.
GO BACK