4.2 Types of Programming Languages, Translators and IDEs
4.2 Types of Programming Languages, Translators and IDEs
4.2 Types of
programming
language,
translators
& IDEs
IGCSE 0478 Computer
Science
review
review
Objectives
Objectives
Objectives
Objectives
Resources
Resources
• Topic 4 Software Video Playlist
Introduction
Introduction
Have you ever wondered how a
computer understands and executes our
instructions?
Can you name some programming
languages?
Introduction
Introduction
Listen to the audio file about types of
programming languages and take notes
on your copybook. Compare your notes
with your classmate/desk mate
Introduction-
What is a computer
program?
● A computer program is a list
of instructions that enable a
computer to perform a specific
task. Computer programs can
be written in high-level
languages and low-level
languages depending on the
task to be performed and the
computer to be used. Most
programmers write programs
in high-level languages.
Low-Level Language:
• Raw Materials: Bricks, wood, pipes, and tools.
• Example: Assembly language, which directly interacts with
the computer's hardware, providing instructions for specific
operations like moving data or performing arithmetic.
Programming
Programming languages
languages
Programming
Languages
High-level Low-level
Assembly
Language
Machine Code
High
High level
level language
language example
example
High
High level
level language
language
//uses English-like statements
Advantages: Disadvantages:
- Easy for the programmer to - Must be converted to a low-level language
read/write/understand/edit before it can run
- Easy to debug // easy to find/correct errors - Cannot directly manipulate the hardware
- Machine independent which makes the
code portable
What is meant by a high-level
language?
High-level languages
typically include features
Explanation such as: Abstraction:
They do not
• A high-level programming Readability: require detailed
language is one that is The code is often knowledge of the
closer to natural
designed to be easy for language,
computer's
hardware to use.
humans to read and write. It making it easier The programmer
to understand.
abstracts away the complex Portability:
Programs written
can focus on
solving problems
details of the computer's in high-level rather than
hardware, allowing languages can
often run on
managing
Examples:
hardware-
programmers to use different types of
Some common
specific details.
high-level
commands and syntax that computer
systems with
programming
are more aligned with human little or no
languages
include Python,
language and logical modification.
Java, C++, and
structures. JavaScript.
Thank you Daniel and
High-level language advantages &
disadvantages.
Advantages Disadvantages
• Easier for users (humans) • It must be converted into
to understand, read, a low-level language
write, amend. before it can run.
• Easier for users to debug • Cannot directly
code. manipulate the hardware
• Portable, machine
independent.
• One statement can
represent many low-level
instructions
Thank you Daniel and
Low
Low level
level language
language example
example
Mnemonics
Low
Low level
level language
language
of programming language Less abstract: These languages offer little to no abstraction from the
hardware, meaning the programmer must manage system resources such
as memory and CPU directly.
that is closer to machine
code, making it more Faster and more efficient: Since low-level languages are closely
aligned with machine instructions, programs written in these languages
can run faster and use fewer resources. This makes them suitable for
closely tied to the specific tasks that require high performance or direct hardware control.
a deep understanding of the Examples: The two main types of low-level languages are machine
code (the binary code that the CPU executes directly) and assembly
computer’s architecture and language (a symbolic representation of machine code that is slightly
easier for humans to read but still requires knowledge of the hardware).
https://www.codeconvert.ai/python-to-assembly-converter
Thank you
Check
Check in
in questions
questions
Check
Check in
in questions
questions
Check
Check in
in Past
Past Paper
Paper
Question
Question
2
Compilers &
interpreters
Why do we use compilers and
interpreters
We use compilers and interpreters in high level
programming languages to convert source code into
machine code that computers can understand and
execute.
High-level Low-level
Translates one
generates line to machine Assembly
executable code then language
executes it
Interpreter
Interpreter
Thank you
Ananya
Advantages of an interpreter
Thank you Ibrahim and
Amin
Platform
independen Since the source code is interpreted, it
ce can run on different platforms without
recompilation
Most Common
It is a piece of application Features:
Code Editor
software used by programmers Auto Completion 52
to aid the writing and
Auto Correction
development of programs by
helping with writing, testing, and Pretty Print
debugging their code more Translator
efficiently by providing essential Run-Time Environment
tools in one place.
Error Diagnostics
You
You are
are doing
doing great!
great!