Generations of Programming Language
Generations of Programming Language
PROGRAMMING LANGUAGE
Presented by:
Advantage:
Translation free and directly executed by the
computer
Disadvantage:
Difficult to learn and understand
1GL EXAMPLE
SECOND GENERATION PROGRAMMING
LANGUAGE (2GL)
The second generation languages are also called
assembler languages/ 2G language.
Assembly language contains human readable
notations that can be further converted to machine
language using an assembler.
Advantage:
Easier to understand compared with 1GL
Disadvantage:
Language is architecture dependent
2GL EXAMPLE
THIRD GENERATION PROGRAMMING
LANGUAGE (3GL)
The third generation programming languages were
designed to overcome the various limitations of the
first and second generation programming languages.
The languages of the third and later generation are
considered as a high-level language because they
enable the programmer to concentrate only on the
logic of the programs without considering the internal
architecture of the computer system.
Advantage:
Can be developed in very less time than 1GL and 2GL.
Disadvantage:
Compiler/interpreter is needed.
3GL EXAMPLE
C source code
#include <stdio.h>
int main( ) {
printf(“Hello Vincentians!”);
return 0;
}
FOURTH GENERATION PROGRAMMING
LANGUAGE (4GL)
The fourth generation language is also called a non –
procedural language/4GL. It enables user to access the
database.
Advantage:
Less time required for application creation.
Disadvantage:
Memory consumption is high.
4GL EXAMPLE
SQL source code