Basic Concepts (2nd Class)
Basic Concepts (2nd Class)
Basic Concepts (2nd Class)
{ by SZABIST-ZABTech
TYPES OF COMPUTER LANGUAGE
Code or syntax, used to write programs or
specific applications, defines computer language.
It is used to communicate with computers.
Broadly computer language can be classified into
three categories:-
assembly language,
machine language,
high-level language.
Machine language is a code or object code
consisting of binary digits 0 and 1.
A computer system can easily understand and
interpret these binary digits.
Since a central processing unit (CPU) can
directly understand and interpret it, machine
language is considered a native language.
Machine Language
The assembly language is low-level for
microprocessors and many other programmable
devices.
The assembly language is also considered a second-
generation language.
The first-generation language is machine language.
The assembly language is mostly famous for writing
operating systems and desktop applications.
Assembly Language
Programmers developed high-level languages in response
to the issues they faced while writing programs.
The older language poses portability issues, as code
written on one machine cannot be easily transferred to
other machines.
This led to the development of high-level language.
The high-level language is easy to understand, and the
code can be written easily as the programs written are
user-friendly in a high-level language.
High-Level Language
Translator
A translator is a programming language
processor that converts a computer program
from one language to another.
It takes a program written in source code and
converts it into machine code.
It translates a high-level language program into
a machine language program that the central
processing unit (CPU) can understand.
It also detects errors in the program.
Purpose of Translator
A compiler is a translator used to convert high-
level programming language to low-level
programming language.
It converts the whole program in one session
and reports errors detected after the
conversion.
Compiler
Just like a compiler, is a translator used to
convert high-level programming language to
low-level programming language.
It converts the program one at a time and
reports errors detected at once while doing the
conversion.
Interpreter
Assembly language is difficult to understand as
it is a low-level programming language.
An assembler translates a low-level language,
an assembly language to an even lower-level
language, which is the machine code.
Assembler
END