Generations of Programming Languages
Generations of Programming Languages
Programming Languages
Programming
This is the art of writing the solution to a
problem using a language that the computer
can understand.
A programmer actually instructs the
computer how to solve a problem since it
cannot come up with a solution to the
problem itself.
Computer Program
These are a set of instructions that tells the
computer what to do and how to do it.
These instructions are usually converted into
a sequence of numeric code (0’s and 1’s)
called machine code which are stored in
memory.
The processor interprets this code in order
to carry out the instructions of the program
Programming Languages
There are many different types of
programming languages that can be used to
write program or create all kinds of software.
These languages are grouped into two main
categories.
• Low level languages
• High level languages
Low level languages
Low level languages are machine
dependent. That is the code written can
only be understood by the particular
computer or processor that was used to
write the code.
Advantage of Low level languages
• It has a faster execution time. ( code runs
very fast and efficiently because it is
directly executed by the CPU.
Disadvantages of Low level
languages
• It machine dependent.
• It is difficult to understand.
• It is time consuming to write
High level languages
High level languages are different from low
level languages in that they are not machine
dependent. Therefore programs written on
one computer can generally be used on
another similar computer. They also use
keywords similar to English and are easier
to write.
Advantage of high level languages
• They are easier to understand
• They are easier to write
• They are not machine dependent
Disadvantages of high level
languages
• It has a longer execution time. ( This is
because the codes has to be converted to
machine language before the instructions
can be carried out)
• Programs can be too wordy.
Generations of Programming
Languages
Generations of Programming
Languages
There are five generations of programming
languages:
• First generation language
• Second generation language
• Third generation language (3GLs)
• Fourth generation language (4GLs)
• Fifth generation language (5GLs)
Generations of Programming
Languages
First and second generations of
programming languages are classified as
low level languages.
While third, fourth and fifth generations of
languages are classified as high level
languages
First generation Languages
First generations programming languages
uses digits 0 and 1 that make up the binary
code. An instruction written in first
generation language might look like this:
10110000 01100001
An example of first generation of language is
machine language.
Advantage of first generation
languages
• It has a faster execution time. ( code runs
very fast and efficiently because it is directly
executed by the CPU.
Disadvantage of first generation
languages
• It machine dependent.
•It is difficult to understand.
•It is time consuming to write