Types of programming languages and Translators Computer Science

  • Slides: 8
Download presentation
Types of programming languages and Translators Computer Science

Types of programming languages and Translators Computer Science

Objectives : 1. To go over answers from last time. 2. To be able

Objectives : 1. To go over answers from last time. 2. To be able to describe the different types of translators. Starter : Question: A new programmer wants to know what the difference between a high level and low level programming language is, discuss the differences and give the benefits and drawbacks of each [8].

Answers from last time Starter : What is a program ? Answer: a computer

Answers from last time Starter : What is a program ? Answer: a computer program is a collection of instructions that performs a specific task when executed by a computer Task 1: List as many programming languages as you can (at least 10). Answer: some of the following C, Pascal, Fortran, Python, Visual Basic, PHP Task 2: Why do computers use binary ? Answer: Because a computer is made from billions or transistors which can only represent 1 or 0.

Task 3: Describe the features of high level and low level programming languages and

Task 3: Describe the features of high level and low level programming languages and say when they will be used?

Task 4: Can you state what is meant by a program translator, how many

Task 4: Can you state what is meant by a program translator, how many are there and what does each one do ? Answer:

Content • Language Translators are used to translate source code into object code so

Content • Language Translators are used to translate source code into object code so that it will be able to directly execute – Assemblers are used for 2 nd Generation – Compilers/Interpreters are used for 3 rd Generation Assembly Language (2 nd generation) Assembler High Level Language (3 rd generation) Interpreter or compiler Machine code - Object Code (1 st Generation)

Little Man Computer

Little Man Computer