Generation Languages

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

Unit 4: Introduction

to programming
concepts
Computer language translators
Done by: Ms. Mariem Khlifi
Year 7
Lesson

In this lesson you will learn about:


 Programming language
 Generations of programming language

Learning
Outcomes

 Be able to recognise the programming language


 Be able to recognise the computer language translator

Keywords
 Program
 Code
 Run
 Generation
Computer Programming
• Computer programming or coding is the composition of
sequences of instructions, called programs, that computers can
follow to perform tasks.
• It involves designing and implementing algorithms, step-by-step
specifications of procedures, by writing code in one or
more programming languages.
• The person writing the program is called programmer or a
coder
Examples of programming
languages
• Each programming languages has its own vocabulary
• Some example of programming languages
• Java
• Python
• PHP
• C++
• Ruby
• HTML
• CSS
Generations of programming
languages
The basic idea is that with each generation of
programming language the level of abstraction and the
power of each statement in the programming language
increases.
• First-Generation Languages :
These are low-level languages like machine language.
Second-Generation Languages :
These are low-level assembly languages used in kernels and
hardware drives.
Third-Generation Languages :
These are high-level languages like C, C++, Java, Visual Basic, and
JavaScript.
Fourth Generation Languages :
These are languages that consist of statements that are similar to
statements in the human language. These are used mainly in
database programming and scripting. Examples of these languages
include Perl, Python, Ruby, SQL, and MatLab(MatrixLaboratory).
Fifth Generation Languages :
These are the programming languages that have visual tools to
develop a program. Examples of fifth-generation languages include
Mercury, OPS5, and Prolog.
Recap
1. What is a Program?
A program is a set of instructions written and executed in a
specific sequence.
2. Name the five generations of computer language
a. 1GL: Machine Language b. 2GL: Assembly language
c. 3GL: High level language d. 4GL: Very high level language
e. 5GL: Artificial intelligence
3. Give three examples of programming language
Java , Python, C, C++, HTML, CSS, Assembly
Computer language Translators
• A computer language translator is defined as a computer program
that converts instructions written in a given language to another
language.
• The text that is translated is called the source code
• The language that the source code is translated int is called the
target language
• The product is called target code or object code
Assembler
The Assembler is a Software that converts an
assembly language code to machine code.
The assembler's job is to convert assembler or assembly
language code into machine code that the computer
can then read and execute.
During the compilation process, the assembler assembles
and converts assembly language source code into
object code.
Compiler
• A compiler is a computer program that translates computer code
written in one programming language (the source language) into
another language (the target language).
• compiler translate source code from a high-level programming
language to a low-level programming language (e.g. assembly
language, object code, or machine code) to create
an executable program
Interpreter
• An interpreter is a program that directly executes the
instructions in a high-level language, without converting
it into machine code
• The interpreter analyses and executes each line of
source code in succession, without looking at the entire
program

https://www.programiz.com/python-programming/online-com
piler/
Exit ticket
• https://quizizz.com/admin/quiz/start_new/5c3a1c4173cd4c001be2d
b9b?ctaSource=classic-mode&fromPage=admin-quizType-id-slug
Conclusion

Programming languages are the backbone of modern technology,


enabling developers to create software, applications, and websites
that we use every day. With thousands of programming languages
available.
Success
Criteria
 I can recognise the computer language translator
 I can differentiate between assembler, compiler and
interpreter
AI tool: BLACKBOX - Transforming Sketches Into
Code with AI
• https://www.blackbox.ai/

You might also like