
Translators
Presentation
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Missus Dighton
Used 27+ times
FREE Resource
11 Slides • 8 Questions
1
Translators
N5 Computing Science
2
High Level Languages
Programs written in a language similar to English
Python, Java, C#, HTML, SQL
Advantages
The commands use English keywords such as PRINT, INPUT, WHILE etc. which are easy to understand
Complex arithmetic can be performed in one instruction that would take many machine code instructions
They have in-built mathematical and logical functions to process the data
3
But what do Computers Understand
????????
4
Computer Understand Machine Code
Machine code is the computer’s own programming language, made up of binary codes to represent the program or instructions.
5
We need to translate for Computers
From High Level Language to Binary Machine Code
6
This is done by Translators
There are 2 types of Translator
Compiler
Interpreter
7
Compilers
A compiler translates the complete program (source code) into object code (machine code) in one go before the program is run.
Compiled programs run faster since there is no translation at run time.
It produces stand-alone machine code program which runs by itself without the need for the source code and the compiler
8
Interpreter
An interpreter translates and executes source code programs one statement at a time into machine code while the program is run
It will run more slowly than a compiled program due to executing the program one line at a time.
Execution will stop immediately if the interpreter translates a line of source code that results in an error making it easier to spot errors in the code
9
Let's see if you've understood
????????
10
Multiple Choice
Which of these could be machine code?
print ("01011011")
01011011
code = int(input("Enter code")
11
Multiple Choice
Which of these is an example of a high level language?
Binary Machine Code
Python
CSS
12
The next few questions will have an answer of either Compiler or Interpreter
Let's play which translator!!
13
Multiple Choice
This translator program reports errors at the end of translation.
Compiler
Interpreter
14
Multiple Choice
This translator needs to be present in memory each time the program is executed.
Compiler
Interpreter
15
Multiple Choice
This translator runs more slowly due to executing the program one line at a time.
Compiler
Interpreter
16
Multiple Choice
Using this translator means that the source code program will only be used again if the program needs to be changed.
Compiler
Interpreter
17
Multiple Choice
This translator will stop program execution immediately if it finds a line of source code that results in an error
Compiler
Interpreter
18
Multiple Choice
Last one!!!
A program which has been translated using this type of translator will run faster
Compiler
Interpreter
19
Summary of Translators
Use an interpreter when debugging code
Once code is error free, use a compiler.
Translators
N5 Computing Science
Show answer
Auto Play
Slide 1 / 19
SLIDE
Similar Resources on Wayground
13 questions
Mengenal Program Paint
Presentation
•
12th Grade
14 questions
Programming paradigms
Presentation
•
11th - 12th Grade
15 questions
quizizz
Presentation
•
KG - University
13 questions
Logika Informatika - Pertemuan 1 (materi)
Presentation
•
University
10 questions
Coding in Kindergarten 2023
Presentation
•
KG
14 questions
Ch6.4 ICT IGCSE 0417 Applications Computer Controlled Systems
Presentation
•
12th Grade
15 questions
[igCS] Open and Proprietary Software
Presentation
•
12th Grade
13 questions
Exploring Client-Side Processing in Web Development
Presentation
•
12th Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Review 4
Quiz
•
3rd Grade
11 questions
HSMS - Standard Response Protocol
Quiz
•
6th - 8th Grade
16 questions
1.1-1.2 Quiz Review
Quiz
•
9th - 12th Grade
12 questions
Exponent Expressions
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th - 7th Grade
11 questions
Northeast States
Quiz
•
3rd - 4th Grade
10 questions
Characterization
Quiz
•
3rd - 7th Grade
10 questions
Common Denominators
Quiz
•
5th Grade