
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
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
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
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Computers
20 questions
Grammar
Quiz
•
9th - 12th Grade
31 questions
Easter Trivia
Quiz
•
KG - 12th Grade
16 questions
Circles - Equations, Central & Inscribed Angles
Quiz
•
9th - 12th Grade
46 questions
Unit 4 Geosphere Test Review
Quiz
•
9th - 12th Grade
30 questions
TSI Writing/Revising and Editing Practice Test
Quiz
•
12th Grade
10 questions
Climate Change and Its Impact
Interactive video
•
9th - 12th Grade
35 questions
Venn Diagrams, Theoretical, & Experimental Review
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade