0% found this document useful (0 votes)
1 views

Lesson4.ProgrammingLanguage

The document outlines the different types of programming languages, categorizing them into low-level and high-level languages. Low-level languages, such as machine language and assembly language, are machine dependent, while high-level languages, including Pascal, C, and SQL, are designed to be more user-friendly and machine independent. It also defines key terms related to programming languages and includes activities for further understanding.

Uploaded by

sharonasimpson40
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Lesson4.ProgrammingLanguage

The document outlines the different types of programming languages, categorizing them into low-level and high-level languages. Low-level languages, such as machine language and assembly language, are machine dependent, while high-level languages, including Pascal, C, and SQL, are designed to be more user-friendly and machine independent. It also defines key terms related to programming languages and includes activities for further understanding.

Uploaded by

sharonasimpson40
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

PROGRAM IMPLEMENTATION

PROGRAMMING LANGUAGE
Eltham High School
Mrs. Anderson Simpson
PROGRAMMING LANGUAGE
In creating a computer program one must first select the

programming language that is suitable for the task. These

programming language can be grouped into two categories:


❖Low-Level Language

❖High-Level Language
PROGRAMMING LANGUAGE

•Programming Language
•Low-Level Language
•First Generation
•Machine Language

•Second Generation
•Assemble Language

•High-Level Language

•Third-Fifth Generation
•Pascal
•C
•Java
•SQL
PROGRAMMING LANGUAGE
PROGRAMMING PARADIGM
LOW-LEVEL LANGUAGE-
MACHINE DEPENDENT
These are machine dependent language where the code is

only understood by the particular machine that was used to

write it. Machine Language and Assemble Language are

two types of Low-Level Language.


⮚ Machine Language

⮚ Assemble Language
MACHINE LANGUAGE
Machine Language
consist of 1s and 0s to
make up the binary code.

Machine language runs


very fast and efficiently
because it is directly by
the Central Processing
Unit (CPU). However,
programmers can
become confused with
the massive amount of
1s and 0s in the program
This language has the
ASSEMBLY LANGUAGE same structure and
command as machine
language but allows
programmers to use
abbreviated words,
called MNEMONICS.

Assembly language can


be easily converted to
machine language by
using Assembler.
HIGH-LEVEL LANGUAGE- MACHINE
INDEPENDENT

High-Level Languages are different from low-level language as it is not machine

dependent. High-level Language are designed to be easily understood as they


can

use English-type words to write program code, making easier for programmers.

The only draw back is that the programs have to converted to machine language.

This conversion is done by using translators such as COMPILERS and

INTERPRETERS.

Some High-Level Language are:

3rd Generation- Pascal, Visual Basic

4th Generation- SQL, Oracle

5th Generation- Mercury , Prolog


3RD GENERATION LANGUAGE-
Third generation
PROCEDURAL
language are
Pascal
procedural languages
that were created to
make programming
easier. Apart from
Visual Basic
Pascal and Visual
Basic there are
Fronton, Computer
Business Oriented
Language (COBEOL)
and much more.
4TH GENERATION LANGUAGE- 4th GLs consist of
NON- PROCEDURAL english like
instructions and are
more user friendly. 4th
GLs instead of giving
steps how to attain
something, it would
instead give a specific
instruction. Example;
SQL
.
4TH -5TH GENERATION
5TH GENERATION LANGUAGE-
LANGUAGE- NON-
NON- PROCEDURAL Natural Language
PROCEDURAL Programming, 5th Gls
were developed to be
used mainly in research
of ARTIFICIAL
INTELLIGENCE.
Example of 5gls are
Mercury and Prolog
which stands for
Programming in Logic
KEY TERMS
⮚ Programming Language: A set of rule that provides a
way of telling a computer how to perform.

⮚ Machine Code: A language that is directly


understandable by the computer.

⮚ Mnemonics: An abbreviation for an operation; specify


computing function.

⮚ Compiler: Translators that converts high level language


into low level by taking all instructions to form a single file
that can run on its own.

⮚ Interpreter: Translators that converts high level language


to low level by taking one instruction at a time. They do not
produce file that can run independently.

⮚ Assembler: A translator that converts assembly


language to machine language.
ACTIVITIES
1. Explain the difference between;
a. Machine code and Assembly language.
b. High-level and Low-level Language. 6
marks

2. Which level of language uses;


a. Human like syntax
b. mnemonics
c. English like text 3 marks

3. In your own words explain the terms;


a. Assembler
b. Interpreter
c. Compiler 6 marks
Total 15 Marks

You might also like