0% found this document useful (0 votes)
14 views14 pages

Programming Language (Translators)

The document outlines the objectives for teaching programming languages to Year 9 students, including definitions, types, and uses of programming languages. It distinguishes between high-level and low-level programming languages, highlighting their advantages and the types of translators used to convert code into machine language. Key translators discussed include compilers, interpreters, and assemblers, each serving different functions in the programming process.

Uploaded by

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

Programming Language (Translators)

The document outlines the objectives for teaching programming languages to Year 9 students, including definitions, types, and uses of programming languages. It distinguishes between high-level and low-level programming languages, highlighting their advantages and the types of translators used to convert code into machine language. Key translators discussed include compilers, interpreters, and assemblers, each serving different functions in the programming process.

Uploaded by

idem.joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

COMPUTING – KS3 (YEAR 9)

Theme: SOFTWARE

Topic: Programming Language

CREATED BY KENNY KENIYINBOH 1


Lesson Objective:

Pupils should be able to:

1) Describe the term Programming


Language
2) Know the types and their uses
3) Know the types of translators and
use

CREATED BY KENNY KENIYINBOH 2


LO:

PROGRAMMING LANGUAGE Pupils should be able


to:
1) Describe the term
Programming
A programming language is a set of instructions written Language
2) Know the types
by a programmer to instruct the computer to perform and their uses

and accomplish a task. 3) Know the types of


translators and use

Some examples of programming languages are:


1. Python
2. Visual Basic
3. Java
4. C++
5. JavaScript etc.
CREATED BY KENNY KENIYINBOH 3
LO:
HIGH-LEVEL AND LOW-LEVEL PROGRAMMING Pupils should be able
to:
LANGUAGE 1) Describe the term
Programming
Language
Computer programs can be written in high and low level 2) Know the types
and their uses
languages, depending on the task and the hardware being 3) Know the types of
translators and use
used.
HIGH-LEVEL PROGRAMMING LANGUAGE: -
High level languages are written in a form that is close to
our human language, enabling to programmer to just focus
on the problem being solved.
high level languages create programs that are portable and
not tied to a particular computer or microchip.
CREATED BY KENNY KENIYINBOH 4
LO:
HIGH-LEVEL AND LOW-LEVEL PROGRAMMING Pupils should be able
to:
LANGUAGE 1) Describe the term
Programming
Language
LOW-LEVEL PROGRAMMING LANGUAGE: - 2) Know the types
and their uses

Low level languages are used to write programs that relate 3) Know the types of
translators and use
to the specific architecture and hardware of a particular
type of computer.
They are closer to the native language of a computer
(binary), making them harder for programmers to
understand.
Examples of Low Level Language are; Assembly and
Machine code.
CREATED BY KENNY KENIYINBOH 5
LO:
ADVANTAGES OF HIGH-LEVEL AND LOW-LEVEL Pupils should be able
to:
PROGRAMMING LANGUAGES 1) Describe the term
Programming
Language
2) Know the types
ADVANTAGES OF HIGH-LEVEL LANGAUGE: - and their uses
3) Know the types of
1) Easier to modify as it uses English like statements translators and use

2) Easier/faster to write code as it uses English like


statements
3) Easier to debug during development due to English like
statements
4) Portable code – not designed to run on just one type of
machine.

CREATED BY KENNY KENIYINBOH 6


LO:
ADVANTAGES OF HIGH-LEVEL AND LOW-LEVEL Pupils should be able
to:
PROGRAMMING LANGUAGES 1) Describe the term
Programming
Language

ADVANTAGES OF LOW-LEVEL LANGUAGE: - 2) Know the types


and their uses
3) Know the types of
1) Can make use of special hardware or special machine- translators and use
dependent instructions (e.g. on the specific chip)
2) Translated program requires less memory
3) Write code that can be executed faster
4) Total control over the code
5) Can work directly on memory locations.

CREATED BY KENNY KENIYINBOH 7


LO:

TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language
Computers only understand machine code (binary), this is 2) Know the types
and their uses
an issue because programmers prefer to use a variety of 3) Know the types of
high and low-level programming languages instead. translators and use

To get around the issue, the high-level and low-level


program code (source code) needs to pass through a
translator.
A translator will convert the source code into machine code
(object code).
There are several types of translator programs, each are
able to perform different tasks.
CREATED BY KENNY KENIYINBOH 8
LO:

TYPES OF TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language

COMPILER: - 2) Know the types


and their uses

Compilers are used to translate a program written in a 3) Know the types of


translators and use
high-level language into machine code (object code).
Once compiled (all in one go), the translated program file
can then be directly used by the computer and is
independently executable.
Compiling may take some time but the translated program
can be used again and again without the need for
recompilation.

CREATED BY KENNY KENIYINBOH 9


LO:

TYPES OF TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language
2) Know the types
and their uses
3) Know the types of
translators and use

An error report is often produced after the full program has


been translated. Errors in the program code may cause a
computer to crash.

CREATED BY KENNY KENIYINBOH 10


LO:

TYPES OF TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language
INTERPRETER: - 2) Know the types
and their uses
Interpreter programs are able to read, translate and 3) Know the types of
translators and use
execute one statement at a time from a high-level language
program.
The interpreter stops when a line of code is reached that
contains an error.
Interpreters are often used during the development of a
program. They make debugging easier as each line of code
is analysed and checked before execution.

CREATED BY KENNY KENIYINBOH 11


LO:

TYPES OF TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language
2) Know the types
and their uses
3) Know the types of
translators and use

No executable file is produced. The program is interpreted


again from scratch every time you launch it.
CREATED BY KENNY KENIYINBOH 12
LO:

TYPES OF TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language
2) Know the types
ASSEMBLER: - and their uses
3) Know the types of
Assemblers are used to translate a program written in a translators and use

low-level assembly language into a machine code (object


code) file so it can be used and executed by the computer.
Once assembled, the program file can be used again and
again without re-assembly.

CREATED BY KENNY KENIYINBOH 13


LO:

SUMMARY OF TRANSLATORS Pupils should be able


to:
1) Describe the term
Programming
Language
2) Know the types
and their uses
3) Know the types of
translators and use

CREATED BY KENNY KENIYINBOH 14

You might also like