Page 112 - Trackpad_V1_Book 6_Flipbook
P. 112
There are two categories of low-level languages:
Machine Language LANGUAGE TRANSLATOR
Machine language is the only language understood by the computer. It is also known as the A language translator is a software that converts a high-level language program into a machine
first-generation language (1GL). Machine language is very difficult for programmers to use language. There are three types of language translators:
because it only consists of two digits, 0 and 1, called binary digits or bits. Where the bit ‘0’
represents the OFF state and the bit ‘1’ represents the ON state. ASSEMBLER
An assembler is a program used to translate assembly language into machine language so that
Assembly Language the computer can understand it. The assembler enables the computer to convert the assembly
Assembly language is also known as second-generation language (2GL). It is the language language instructions into machine code, i.e., 0’s and 1’s.
in which program codes are written in the form of alphanumeric symbols called 'Mnemonics'
instead of 0 and 1. In the assembly language, a programmer writes abbreviations such as A for COMPILER
addition, C for compare, L for load, and M for multiply. A compiler reads an entire set of instructions written in a high-level language and then translates
them into machine language. A major drawback of a compiler is that if there is an error in the
program, the programmer only comes to know it after the entire program has been translated.
HIGH-LEVEL LANGUAGE
INTERPRETER
High-level language is considered to be closer to human beings. It is machine-independent.
However, they need to be translated into binary or machine language. Programs written in An interpreter reads one line of instruction at a time and translates it into machine language. Any
high-level languages are called source code. Since the computer understands only 0s and 1s, all error in the instruction is reported immediately and the programmer can correct it accordingly.
It is slower than the compiler.
high-level languages require a software called language processor or translator to convert the
instructions into machine language. Let’s discuss about some high-level languages.
Third-Generation Languages (3GL)
In third-generation languages (3GL), the programmer writes a series of English like words that tell
the computer what and how to accomplish. Many third generation languages also use arithmetic
operators such as * for multiplication and + for addition. Some early procedural 3GL are BASIC,
PASCAL, C and FORTRAN. Some other advanced object-oriented 3GL are C++, Java, and C#.
Fourth-Generation Languages (4GL)
The fourth-generation languages also use English-like statements. They specify what the
program should accomplish without explaining how. 4GL is fast and requires less time and effort
on the part of the programmer. In fact, 4GLs are so easy to use that programmers, with very little
programming background can develop programs. Examples of 4GL are SQL, Perl, Python, etc.
Natural Languages (5GL)
The fifth-generation languages, also known as natural languages are the programming
languages that have visual tools to develop a program. Examples of fifth-generation languages
include Mercury, OPS5, and Prolog. Natural language is very easy to use. Natural languages are
often associated with expert systems and artificial intelligence.
uiz Bee Which language is also known as computer's native language?
_______________________________________________________________
110 Trackpad (Version 1.0)-VI

