
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
17 questions
health and safety
Presentation
•
12th Grade
12 questions
TRẮC NGHIỆM BÀI 17 TIN HỌC 11
Presentation
•
11th Grade
15 questions
Y1 ICT Topic: Inserting Online Pictures in the Spreadsheet
Presentation
•
KG
11 questions
Robotics
Presentation
•
University
15 questions
CHAT BOT
Presentation
•
12th Grade
15 questions
Pengenalan Microbit
Presentation
•
12th Grade
13 questions
PEMERINTAHAN MASA ORDE BARU
Presentation
•
12th Grade
17 questions
PyGame: Primitives
Presentation
•
12th Grade
Popular Resources on Wayground
28 questions
US History Regents Review
Quiz
•
11th Grade
36 questions
Biology Regents Review
Quiz
•
9th - 10th Grade
20 questions
Math Review
Quiz
•
3rd Grade
38 questions
Regents Life Science General Review
Quiz
•
9th Grade
20 questions
Math Review
Quiz
•
6th Grade
21 questions
EOY Grade 6 Benchmark Assessment - Content Skills
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
45 questions
Earth and Space Science Regents: Exam Cram
Presentation
•
7th - 12th Grade
50 questions
US History Comprehensive Final Exam
Quiz
•
9th - 12th Grade
16 questions
TSI Math 2.0 Practice
Quiz
•
9th Grade - University
15 questions
Persuasive Appeals Practice
Quiz
•
9th - 12th Grade
59 questions
SS Final Exam Review
Quiz
•
KG - University
20 questions
Explore Human Impact on Climate and Sustainability
Quiz
•
9th - 12th Grade
22 questions
Global History Regents Review (MC)
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade