0% found this document useful (0 votes)
22 views1 page

02 Programming Languages, Translators

A programming language consists of commands and instructions written in a specific syntax to perform tasks, with examples including BASIC, C, Java, and Python. There are three main types of programming languages: machine language (binary code), assembly language (mnemonics), and high-level languages (closely resembling human language). These languages are translated into machine code using compilers, interpreters, or assemblers.

Uploaded by

p25neeharika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

02 Programming Languages, Translators

A programming language consists of commands and instructions written in a specific syntax to perform tasks, with examples including BASIC, C, Java, and Python. There are three main types of programming languages: machine language (binary code), assembly language (mnemonics), and high-level languages (closely resembling human language). These languages are translated into machine code using compilers, interpreters, or assemblers.

Uploaded by

p25neeharika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

A programming language is a set of commands, instructions, which are written using some

specific syntax to perform a specific task in a particular language. The term programming
language usually refers to any high-level languages such as BASIC, C, C++, Java, Python,
FORTRAN, Pascal etc.

There are three main kinds of programming language:

1. Machine language: Machine language instructions consist of binary numbers (i.e. 0s and 1s)
and it is the only one language that the processor directly understands. Machine language has an
advantage of very fast execution speed.

2. Assembly language: Assembly language uses mnemonics code (symbolic code like ‘ADD’
for addition, ‘SUB’ for subtraction) as instructions in the program. The program is converted into
machine code by Assembler for execution.

3. High-level language: The instructions of this language closely resembles to human language
or English like words. The high level language is easier to learn and understand. It requires less
time to write and is easier to find the errors. A language is converted into machine language by
one of the following translator programs.

Compiler: Compiler scans the entire program and translates the whole of it into machine code at
once.

Interpreter: Interpreter translates one statement of the program at a time into machine code

Assembler: It is used to convert Assembly level language to Machine level language.

Hierarchy of programming languages with respect to Hardware.

You might also like