Categories of Programming Language

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

CATEGORIES OF PROGRAMMING LANGUAGE

LECTURER:

PUAN MAZNIHA BINTI BERAHIM

NAME STUDENT:

NUR SABRINA BINTI NORIZAL

SITI NUR HASIMAH BINTI JAMIL

NOOR FAZLINA BINTI AB.RAUF

MACHINE
LANGUAGES

ASSEMBLY CATEGORIES OF
PROGRAMMING HIGH - LEVEL
LANGUAGES LANGUAGE LANGUAGE

FOURTH -
GENERATION
LANGUAGE (4GL)
Machine language

 Programming language that can be directly understood and obeyed by a machine


(computer) without conversion.

 Different for each type of CPU, it is the native binary language (comprised of only two
characters: 0 and 1) of the computer and is difficult to be read and understood by humans.

 Programmers commonly use more English-like languages (called high level languages) such
as Basic, C, Java, etc., to write programs which are then translated into machine language
(called a low level language) by an assembler, compiler, or interpreter.

Advantage

1. The only advantage is that program of machine language run very fast because no
translation program is required for the CPU.

2. 3. Machine language makes fast and efficient use of the computer.

4. It requires no translator to translate the code and directly understood by the computer.

Disadvantages

1. It is very difficult to program in machine language. The programmer has to know details of
hardware to write program.

2. All operation codes have to be remembered.

3. All memory addresses have to be remembered.

4. It is hard to move or find errors in a program written


Assembly language

 Assembly language was developed to overcome some of the many inconveniences of


machine language. This is another low-level but very important language in which
operation codes and operands are given in the form of alphanumeric symbols
instead of 0’s and l’s.

 These alphanumeric symbols are known as mnemonic codes and can combine in a
maximum of five-letter combinations e.g. ADD for addition, SUB for subtraction,
START, LABEL etc. Because of this feature, assembly language is also known as
‘Symbolic Programming Language.'

 This language is also very difficult and needs a lot of practice to master it because
there is only a little English support in this language. Mostly assembly language is
used to help in compiler orientations. The instructions of the assembly language are
converted to machine codes by a language translator and then they are executed by
the computer.

Advantage

1. Easier to understand and use as compared to machine language.


2. It is easy to locate and correct errors.
3. It is easily modified.

Disadvantages

1. Like machine language, it is also machine dependent/specific.


2. Since it is machine dependent, the programmer also needs to understand the hardware.
High – Level Languages

 High-level computer languages use formats that are similar to English. The purpose of
developing high-level languages was to enable people to write programs easily, in their own
native language environment (English).

 High-level languages are basically symbolic languages that use English words and/or
mathematical symbols rather than mnemonic codes. Each instruction in the high-level
language is translated into many machine language instructions that the computer can
understand.

Advantages

1. High-level languages are user-friendly


2. They are similar to English and use English vocabulary and well-known symbols
3. They are easier to learn
4. They are easier to maintain
5. They are problem-oriented rather than 'machine'-based
6. A program written in a high-level language can be translated into many machine
languages and can run on any computer for which there exists an appropriate
translator
7. The language is independent of the machine on which it is used i.e. programs
developed in a high-level language can be run on any computer text

DISADVANGE

1. A high-level language has to be translated into the machine language by a


translator, which takes up time.
2. The object code generated by a translator might be inefficient compared to an
equivalent assembly language program.
FOURTH - GENERATION LANGUAGE

 A fourth generation (programming) language (4GL) is a grouping of programming languages that


attempt to get closer than 3GLs to human language, form of thinking and conceptualization.

 4GLs are designed to reduce the overall time, effort and cost of software development. The main
domains and families of 4GLs are: database queries, report generators, data manipulation,
analysis and reporting, screen painters and generators, GUI creators, mathematical optimization,
web developmentand general purpose languages.

 Also known as a 4th generation language, a domain specific language, or a high productivity
language.

ADVANTAGES

1. Smallest in size because of high component density.


2. Very reliable.
3. Heat generated is negligible.
4. No air conditioning required in most cases.
5. Much faster in computation than previous generations.
6. Hardware failure is negligible and hence minimal maintenance is required.
7. Easily portable because of their small size.
8. Totally general purpose.
9. Minimal labour and cost involved at assembly stage.
10. Cheapest among all generations.

DISADVANTAGES

1. Highly sophisticated technology required for the manufacture of LSI chips.


EXAMPLES
MACHINE LANGUAGE
ASSEMBLY LANGUAGE
HIGH – LEVEL LANGUAGE
THANK YOU

You might also like