There are two types of programming languages: high-level languages and low-level languages. High-level languages are closer to human languages and provide more abstraction from machine-level instructions, while low-level languages like assembly language closely map to processor instructions. Programs written in high-level languages need to be translated into machine code using compilers or interpreters, while low-level language programs are assembled directly into machine code. Common examples of high-level languages include C++, Java, and Python, while assembly language and Basic are examples of low-level languages.
4. 1. HIGH LEVEL LANGUAGE
A high-level language is a programming language
It enables a programmer to write programs that are more
or less independent of a particular type of computer.
Such languages are considered high-level because they are
closer to human languages and further from
machine languages.
5. 2.LOW LEVEL LANGUAGE.
In computer science, a low-level programming language is
a programming language
It provides little or no abstraction from a computer's
instruction set architecturecommands or functions in
the language map closely to processor instructions.
Generally this refers to either machine code or
assembly language.
6. TRANSLATORS
A translator is a computer program that
performs the translation of a program
written in a given programming language
into a functionally equivalent program in a
different computer language.
7. TRANSLATORS USE IN HIGH
LEVEL LANGUAGE.
THERE ARE TWO TYPES OF
TRANSLATORS USED IN HIGH LEVEL
LANGUAGE:
1.COMPILER
2. INTERPRETER
8. 1. COMPILER
A compiler is a computer program (or a set
of programs) that transforms source code
written in a programming language (the
source language) into another computer
language (the target language)
9. 2. INTERPRETER
An interpreter is a computer program
that reads a statement from a
program written in a high level
language, performs the action
specified and the does the same with
the next statement and so on.
10. TRANSLATOR USE IN LOW
LEVEL LANGUAGE.
THERE IS ONE TYPE OF TRANSLATOR
USED IN LOW LEVEL LANGUAGE:
1. Assembler
11. 1. ASSEMBLER
An assembler is a computer program
that translates a program written in an
assembly language into machine code
so that it can be directly use by a
computer to perform a required task.
12. EXAMPLES OF HIGH LEVEL
LANGUAGE PROGRAMS.
1. C++
2. Delphi.
3. Java.
4 Pascal.
5. Python.
6. Visual basic.
13. EXAMPLES OF LOW LEVEL
LANGUAGE PROGRAMS.
1. Basic.
2. Fortran.