3. WHAT IS COMPUTER LANGUAGE
• A Computer language is a formal language that specifies a set of instructions that can
be used to produce various kinds of output. Programming languages generally consist of
instructions for a computer. Computer languages can be used to create programs that
implement specific algorithms.
• Prince Arsal
4. TYPES OF COMPUTER LANGUAGE
1. LOW-LEVEL LANGUAGE
2. HIGH-LEVEL LANGUAGE
5.
6. LOW- LEVEL LANGUAGE
The programming languages that are close to machine language are
called low-level Programming language.
There are two examples of low-level language
1. Machine language 2. Assembly language
7. MACHINE LANGUAGE
The programming language in which instructions of the programs are written in
binary Form is called “machine language”.It is fundamental computer language. It is
very difficult to learn and use.There is no need to translate the program written in
machine language .It is because; the instructions are already in machine code i.e
binary form.
8. ASSEMBLY LANGUAGE
The programming language in which instructions of the programs are written in
Symbols or English words, is called “assembly language". Assembly language was
developed to make the programming task easier.it is very easy to learn than
“machine language". This language is usually used for writing system software and
firmware.
9. HIGH-LEVEL LANGUAGE
The programming languages that are close to human languages are called “high-
level language”. The program instructions written in these programming Languages
are similar to English language. These languages are easy to learn.
Some commonly used high-level language are as following:
C/C++
FORTRAN
COBOL
JAVA
PASCAL
BASIC
10. C/C++:
The C or C++ languages mostly used to develop system software such as operating system and
application software.
FORTRAN:
FORTRAN stand for “FORmula TRAnslation” . This language is used to develop software for
solving mathematical problems.
COBOL:
COBOL stands for Common Buisneess Oriented Language. This language is used to develop
software for business and commerce.
11. JAVA
It is used for network programming and web page designing.
PASCAL
It is used to develop software for scientific and business purposes.
BASIC
BASIC stands for Biginner All Purpose symbolic Instruction Code. It is used for beginners to learn
the basic concepts of programming.
13. Why we use translators
SOURCE CODE:
The program instruction written by following rules of any high-
level language. The source code is like English statement.
OBJECT CODE:
The translated program into machine code because the
source code must be translated into machine code. Because
the computer only understand instructions in machine code.
14. WHAT IS LANGUAGE TRANSLATORS:
A type of system software that is used to translate the program written in high-level
language (or assembly language) into machine code is called “language translator". Its
also known as language processor. Every language has its own language translator
program. it is difficult to write computer program directly in machine code. So we use
language translators.
Types of language Translators:
i. Compiler
ii. Interpreter
iii. Assembler
15. COMPILER
The language translator program that translates the complete source code program
into machine code as a whole is called “compiler”. C/C++ are the examples of
compilers. The program translated into machine code is called the “object
program". The source code is translated into object code successfully if it is free of
errors. If there are errors in the source code, the compiler can successfully compile
the source code.
16. INTERPRETER
The language translator program that translates the complete source code program
into machine code statement by statement is called “Interpreter”.It translates one
statement of source program into machine code and executes it immediately before
translating the next statement.It also display the errors.GWBASIC is an example of
an interpreter program.
17. DIFFERENCE BETWEEN COMPILER AND INTERPRETER
1) It translate source code into object
code as a whole.
2) It creats an object file.
3) Program execution is very fast
4) Translator program is not required to
run the program.
5) It is not easier to correct the errors in
source code.
1) It translate the source code into
machine code statement –by-
statement.
2) It does not creat an object file.
3) Program execution is slow.
4) Translator program is required to run
the program
5) It is easier to correct the errors.
COMPILER INTERPRETER
18. ASSEMBLER
The language translator program that translates the program written in assembly
language into machine code is called “assembler”.