Subject: Computer Basics
The language that is used to write a computer program is called computer language. They are broadly classified into two types:
It is a language that is understandable by the computer. Here each programme statements is converted to single machine language statement. There are two types of low level languages.
In this language the data and instruction are represented in the form of strings of 0s and 1s. Every instruction is represented in the form of binary bit pattern. For e.g., the instructions add is represented as "0110001". Similarly the instruction divide has bit pattern of "0110000".
Disadvantages of machine level language:
Advantages of machine level language:
In this language, instead of using binary codes, short codes are used which are called "MNEMONICS". Each "MNEMONICS" has two parts, the first part is instruction and second part is data for, e.g. ADD A, B is a MNEMONICS, where ADD is instruction part and A & B are data parts. Due to use of short codes, programmers do not require remembering bit pattern which is very tedious task.
Advantages of Assembly language:
Disadvantages:
High level language statements are written in English-like structure. Structure written in this language is called statements or command. It is easier to learn and master this language. Either complier or interpreter is used to convent high level language statements to machine understandable form for e.g. PASCAL, C, C++, Java, QBASIC.
Advantages:
Disadvantages:
It is an advanced form of high level language. The programme statements of fourth generation computers are more user friendly than other level of languages. It is also called 4G.L. and are designed to provide higher level abstraction, reduced programming effort and reduce cost of development. The languages are result oriented and has heavy data processing and query capability. 4G.L. needs to be translated to machine understandable form by using either interpreters or compiler for e.g. 4GL , oracle, access, MARLAB.
Advantages:
Disadvantages:
A fifth generation (programming) language (5GL) is a grouping of programming languages build on the premise that a problem can be solved, and an application built to solve it, by providing constraints to the program (constraint-based programming), rather than specifying algorithmic-ally how the problem is to be solved (imperative programming).
Language translator does the work of conversation of high level language into machine understandable form. There are three types of language translator:
It converts assembly language statements into machine understandable form, i.e. of Os and 1s.
It converts high level language statements into binary file Os and 1 s. Conversion is done letter by letter, word by word and line by line. When every letter, word and line are correctly written, the interpreter will convent that line into file of O and 1. The conversion process is slow in comparison to compiler.
It converts high level language statements into machine understandable form and is done at single step unlike interpreter. A compiler checks entire user written programmes and if error free, produces the complete program in machine language. If the program use some library functions, the library functions are linked to other object program to generate executable program.
Difference between high and low level language:
High level programming language | Low level programming language |
High level programming languages are more structured, are closer to spoken language. | High level programming languages are less structured and is very complecated.. |
Some examples of higher level languages are Java, Visual Basic, COBOL, BASIC, C++ | Examples: Assembly level language. |
No need to remember loots of MNEOMIC codes or other unusual codes as in assembly language or machine language. | Need to remember loots of MNEOMIC codes or other unusual codes as in assembly language or machine language. |
The differences between high and low level programming languages are as follows:
High Level Language | Low Level Language |
This language is written in simple English form that is not understandable by the computer. | It is a language that is understandable by the computer. |
Simple English is used for program coding. | Mnemonics are used for program coding. |
It is machine independent. | It is machine dependent. |
There are five generation of the computer explained below.
In this language the data and instruction are represented in the form of strings of 0s and 1s. Every instruction is represented in the form of binary bit pattern. For e.g., the instructions add is represented as "0110001". Similarly the instruction divide has bit pattern of "0110000".
Advantages of machine level language:
In this language, instead of using binary codes, short codes are used which are called "MNEMONICS". Each "MNEMONICS" has two parts, the first part is instruction and second part is data for, e.g. ADD A, B is a MNEMONICS, where ADD is instruction part and A & B are data parts. Due to use of short codes, programmers do not require remembering bit pattern which is very tedious task.
Advantages:
High level language statements are written in English-like structure. Structure written in this language is called statements or command. It is easier to learn and master this language. Either complier or interpreter is used to convent high level language statements to machine understandable form for e.g. PASCAL, C, C++, Java, QBASIC.
Advantages:
It is an advanced form of high level language. The programme statements of fourth generation computers are more user friendly than other level of languages. It is also called 4G.L. and are designed to provide higher level abstraction, reduced programming effort and reduce cost of development. The languages are result oriented and has heavy data processing and query capability. 4G.L. needs to be translated to machine understandable form by using either interpreters or compiler for e.g. 4GL , oracle, access, MARLAB.
Advantages:
A fifth generation (programming) language (5GL) is a grouping of programming languages build on the premise that a problem can be solved, and an application built to solve it, by providing constraints to the program (constraint-based programming), rather than specifying algorithmic-ally how the problem is to be solved (imperative programming).
Some languages that belong to third generation programming languages are PASCAL, QBASIC, C, C++ etc.
© 2019-20 Kullabs. All Rights Reserved.