

untitled
Presentation
•
Computers
•
•
Practice Problem
•
Hard
Georgios Kakavelakis
Used 1+ times
FREE Resource
11 Slides • 58 Questions
1
Multiple Choice
High level languages are easy to understand...
True
False
2
Multiple Select
Low level programming languages are... [2 answers]
Easy to read, understand and modify
Difficult to read, understand and modify
Very simple to understand
More memory efficient than high-level languages
3
Multiple Choice
High level languages...
Can be run directly from the code
Need to be translated before execution
Are targeted at a specific CPU
4
Multiple Choice
Translates all of the source code into machine code in one go
Assembler
Compiler
Interpreter
5
Multiple Select
Compilers... [2 answers]
Create a single executable file
Take a long time to translate
Are useful for debugging
Only translate assembly code
6
Multiple Select
Which of the following are true? [3 answers]
Assemblers translate assembly code
Compilers run one line at a time
Interpreters are needed every time the program is run
Compilers run more quickly than interpreters
7
Multiple Select
Which of the following are true?
High level languages are written for a specific processor
High level languages abstract how the data is stored from the programmer
Low level languages are easy to read and modify
Low level languages are written for a specific architecture
8
Multiple Choice
Assemblers...
Use lots of memory
Each instruction matches one unique machine code instruction
Are unsuitable for embedded systems
9
Multiple Choice
Which of these is high level code?
10
Multiple Choice
Which of these is low level code?
Neither
11
Multiple Select
Which of these is high level code? [2 answers]
None of them
12
Multiple Choice
This is an example of what type of language?
High level
Low level
Both
Neither
13
Dropdown
A
*
* assemblers
14
Drag and Drop
15
Categorize
Translates all source code to object code at once.
Produced programs run quickly.
Generates executable files.
Optimises code for speed and memory.
Requires significant memory for compilation.
Errors detected after compilation.
Code must be recompiled for changes.
Compiled code is platform-specific.
Translates code one instruction at a time.
Executes instructions immediately.
Quick error detection during execution.
Runs slower due to on-the-fly translation.
Needs translation every run.
Doesn't produce executable files.
Source code must be distributed.
Does not optimise code.
Organise these options into the right categories
16
Labelling
Label the following diagram correctly
Computer's own language
Interpreter
Easy for programmer to understand
High level language
Binary numbers (All 1s and 0s)
Machine code
17
Multiple Choice
What generation of programming language is Machine Code
1st Generation
2nd Generation
4th Generation
3rd Generation
18
Multiple Choice
What type of language translator is needed for the 1st Generation to the CPU
Compiler
No translator needed
Assembler
Interpreter
19
Multiple Choice
2nd generation to 1st Generation language needs what type of translator.
An assembler
Interpreter
No translator needed
Compiler
20
Multiple Select
What language translators can be used to translate 3rd to 2nd generation.
Compiler
No translator needed
Assembler
Interpreter
21
Multiple Choice
Which generation is the fastest code to execute.
3rd Generation
2nd Generation
4th Generation
1st Generation
22
Multiple Choice
What is the easiest to program for a programmer.
1st Generation
2nd Generation
4th Generation
3rd Generation
23
Multiple Choice
What is used to translate the entire source code in one go.
Assembler
Compiler
Interpreter
Router
24
Multiple Choice
Which translator stops when it encounters an error.
Assembler
Interpreter
Compiler
Editor
25
Multiple Choice
On fully developed code, what translator is used at the end before publishing.
Assembler
Compiler
Interpreter
Editor
26
Multiple Choice
Low level languages use what type of code.
Hexadecimal
Binary
Logic
Cryptic
27
Multiple Choice
Object code and error reporting are produced in what type of language translator.
Assembler
Compiler
Interpreter
Editor
28
Translators
N5 Computing Science
29
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
30
But what do Computers Understand
????????
31
Computer Understand Machine Code
Machine code is the computer’s own programming language, made up of binary codes to represent the program or instructions.
32
We need to translate for Computers
From High Level Language to Binary Machine Code
33
This is done by Translators
There are 2 types of Translator
Compiler
Interpreter
34
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
35
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
36
Let's see if you've understood
????????
37
Multiple Choice
Which of these could be machine code?
print ("01011011")
01011011
code = int(input("Enter code")
38
Multiple Choice
Which of these is an example of a high level language?
Binary Machine Code
Python
CSS
39
The next few questions will have an answer of either Compiler or Interpreter
Let's play which translator!!
40
Multiple Choice
This translator program reports errors at the end of translation.
Compiler
Interpreter
41
Multiple Choice
This translator needs to be present in memory each time the program is executed.
Compiler
Interpreter
42
Multiple Choice
This translator runs more slowly due to executing the program one line at a time.
Compiler
Interpreter
43
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
44
Multiple Choice
This translator will stop program execution immediately if it finds a line of source code that results in an error
Compiler
Interpreter
45
Multiple Choice
Last one!!!
A program which has been translated using this type of translator will run faster
Compiler
Interpreter
46
Summary of Translators
Use an interpreter when debugging code
Once code is error free, use a compiler.
47
Multiple Choice
Represented by 0s and 1s. This is the only language that a computer can execute.
Machine code
Assembly code
Source code
48
Multiple Choice
Written in formal, structured English; this type of programming language is easier for humans to read, maintain, and debug.
High-level code
Low-level code
Machine code
49
Multiple Choice
int a=b+c
is an example of
Machine code
Assembly code
High-level language
50
Multiple Choice
mov edx, DWORD PTR[rbp-0x4]
is an example of
Machine code
Assembly code
High-level language
51
Multiple Choice
0011001100100
is an example of
Machine code
Assembly code
High-level language
52
Multiple Choice
If a program written in assembly language uses 400 lines of code, how many lines of machine code will there be?
200
400
800
53
Multiple Choice
What is needed in order to translate assembly language to machine code?
Interpreter
Compiler
Assembler
54
Fill in the Blanks
Type answer...
55
Multiple Select
Which are three reasons why high-level languages are more suitable for programmers than low-level languages?
Easier to read/write
Easier to translate
Easier to maintain
Easier to debug
56
Multiple Select
Why are translators necessary?
check all that apply
Translators convert high-level languages into machine code
Computers can only understand machine code
so that programmers could write using high-level languages
57
Multiple Choice
Which creates an executable file that can then be used independently of the original source code.
Compiler
Interpreter
58
Multiple Choice
Which translates and executes each line of code during runtime
Compiler
Interpreter
59
Multiple Select
Choose all the advantages of a compiler over an intepreter ...
Program executes faster
Can keep source code secret
More portable as can produce intermediate bytecode
Debugging tends to be easier
60
Multiple Select
Choose all the advantages of an interpreter over an compiler...
Detects errors as they arise at run-time
Easier to keep source code secret
More portable as can produce intermediate bytecode
Debugging tends to be easier
61
Multiple Choice
What is the main criteria a programmer should use when choosing a programming language to use?
Nature of the task
Availablity of a compiler
Whether language is compiled or interpreted
Popularity of programming language
62
Multiple Choice
A list of instructions that enable a computer to perform a specific task is a...
Computer Program
Algorithm
Machine Code
Binary Code
63
Multiple Choice
When writing a computer program most program use...
A High Level Language
A Machine Code
An Algorithm
A Low Level Language
64
Multiple Choice
A language that requires no knowledge of the hardware or the instruction set of the computer is called...
Machine Code
A Low Level Language
An Algorithm
A High Level Language
65
Multiple Choice
Resolving errors in a program is known as...
Problem Solving
Error Checking
Debugging
Refixing
66
Multiple Choice
The two categories of low level language are...
Machine Code & Assembly
Machine Code & Algorithms
Assembly & Algorithms
Algorithms & Binary
67
Multiple Choice
To write a program for a specific device such as an air conditioning unit, which type of language would be used?
High Level
Java
Low Level
Binary
68
Multiple Choice
Which of the following is not an advantage of using a low level language?
To perform a task very quickly
Makes more efficient use of primary memory
To enable the program to be run on multiple platforms
Tailor a program to a specific piece of hardware
69
Multiple Select
The 3 main types of translators are...
Assemblers, Compilers & Interpreters
Assemblers, Scripters & Interpreters
Assemblers, Compilers & Converters
Converters, Scripters & Interpreters
High level languages are easy to understand...
True
False
Show answer
Auto Play
Slide 1 / 69
MULTIPLE CHOICE
Similar Resources on Wayground
63 questions
Enzymes
Presentation
•
9th - 12th Grade
62 questions
Introduction to Physics
Presentation
•
10th Grade
65 questions
Support Vector Machine
Presentation
•
University
65 questions
Water Cycle
Presentation
•
11th Grade
65 questions
1.4 - Forms Of Attack
Presentation
•
9th - 10th Grade
61 questions
Operating Systems
Presentation
•
8th Grade
68 questions
Chemistry Review
Presentation
•
8th Grade
63 questions
Topic 2 & 3 Networking Fundamentals Part I
Presentation
•
University
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade