Page 118 - Trackpad_V2.1_Class6
P. 118
arithmetic operators, such as * for multiplication and + for addition. Some early procedural
3GLs are BASIC, PASCAL, C, and FORTRAN. Other advanced object-oriented 3GLs include
C++, Java, and C#.
Fourth-Generation Languages (4GL)
Fourth-generation languages (4GLs) also use English-like statements. They specify what the
program should accomplish without explaining how. 4GLs are fast and require less time and effort
from the programmer. In fact, 4GLs are so easy to use that individuals with very little programming
background can develop programs. Examples of 4GLs include SQL, Perl, and Python.
Natural Languages (5GL)
Fifth-generation languages (5GLs) use natural language or visual tools to create programs.
They focus on specifying what the program should achieve rather than how to achieve it. 5GLs
are designed to be very user-friendly, allowing users with minimal programming experience to
develop complex applications. These languages are often employed in fields such as artificial
intelligence and expert systems. Examples of 5GLs include Mercury, OPS5, and Prolog.
uiz Bee Which language is also known as computer's native language?
_______________________________________________________________
LANGUAGE TRANSLATOR
A language translator is a software that converts a high-level language program into a machine
language. There are three types of language translators:
ASSEMBLER
An assembler is a software tool that translates assembly language into machine language. It
enables the computer to understand and execute assembly language instructions. This conversion
is essential for executing low-level code efficiently.
COMPILER
A compiler is a program that reads and translates all the instructions written in a high-level language
into machine language at once. 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.
INTERPRETER
An interpreter reads one line of instruction at a time and translates it into machine language. Any
error in the instruction is reported immediately and the programmer can correct it accordingly.
It is slower than the compiler.
116 Trackpad (V2.1)-VI

