Unit I - Lecture 1 - Types of Programming Languages
Unit I - Lecture 1 - Types of Programming Languages
Machine
understands.
• Merits:
• It is directly understood by the processor so has faster execution time since the programs written in this language need not to be
translated.
• It does not need larger memory space
Language
• Demerits:
• It is very difficult to program since all the instructions are to be represented by 0’s and 1’s.
• Use of this language makes programming time consuming
• It is difficult to find error and to debug
• It can be used by experts only
• This language uses mnemonics code (symbolic operation code like ‘ADD’ for addition) in place of 0s and 1s. The program is converted
into machine code by assembler. The resulting program is referred to as an object code.
• Merits:
Assembly
• It is makes programming easier than Machine Language since it uses mnemonics code for programming. Eg: ADD for addition, SUB for
subtraction, DIV for division, etc.
• It makes programming process faster than that using Machine Language
• Error can be identified much easily compared to Machine Language coding
• It is easier to debug than machine language
Language
• Demerits:
• Programs written in this language is not directly understandable by computer so translators(assembler) should be used
• It is hardware dependent language so programmers are forced to think in terms of computer’s architecture rather than to the problem
being solved
• Being machine dependent language, programs written in this language are very less or not portable
• Programmers must know its mnemonics codes to perform any task
Unit I - Lesson 1 - Types of Programming Languages - Author: Prof. Jeo Joy A, Kristu
3
Jayanti College (Autonomous) Bengaluru
High Level Language
Instructions of this language closely resembles to human language or English like words. It uses mathematical
notations to perform the task. The high level language is easier to learn. It requires less time to write and is easier
to maintain the errors. The high level language is converted into machine language by one of the two different
languages translator programs; interpreter or compiler.
High level language can be further categorized as:
Procedural- • Procedural Programming is a methodology for modeling the problem being solved, by determining the
steps and the order of those steps that must be followed in order to reach a desired outcome or
Oriented Language
specific program state. These languages are designed to express the logic and the procedure of a
problem to be solved. It includes languages such as Pascal, COBOL, C, FORTAN, etc.
Problem-Oriented • It allows the users to specify what the output should be, without describing all the details of how the
data should be manipulated to produce the result. These are result oriented and include database
query language.
Language • Eg: Visual Basic, C#, PHP, etc.
Natural Language
• Natural languages are in developing stage where we could write statements that would look like
normal sentences.
Merits
variety of problems
• Programmer does not need to think in term of computer architecture
which makes them focused on the problem
• Programs written in this language are portable
Merits • Programmer need not to think about the procedure of the program. So,
programming is much easier
• Easy to program
Merits
• Since, the program uses normal sentences, they are easy to understand
• The programs would be much more interactive and interesting
• Uses Artificial Intelligence
Demerits
• It is slower than previous generation language as it should be completely
translated into binary code which is a tedious task
• Highly advanced and expensive electronic devices are required to run programs
developed in natural language. Therefore, it is an expensive approach.