
24. OCR A Level (H046-H446) SLR5 – 1.2 Translators
Authored by James Cole
Computers
11th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of translators in programming?
To protect source code from unauthorized access
To enhance the speed of program execution
To debug programs
To convert source code into machine code
Answer explanation
Translators in programming are used to convert source code into machine code, making it understandable by the computer for execution.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type of translator?
Interpreter
Compiler
Debugger
Assembler
Answer explanation
The correct choice is 'Debugger' because it is not a type of translator. Interpreters, compilers, and assemblers are all types of translators used in computing.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is source code?
A special code used by compilers only
A type of machine code
Binary code that machines understand
Code written by programmers in a programming language
Answer explanation
Source code refers to the code written by programmers in a programming language, which is then translated into machine code by compilers.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is machine code?
Code used by interpreters
Pure binary form that machines can execute
Code written by programmers
High-level programming language
Answer explanation
Machine code is the pure binary form that machines can directly execute, representing instructions and data in a format that the computer's central processing unit (CPU) can understand and process.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an assembler translate?
Machine code to source code
High-level language to machine code
Source code to high-level language
Assembly code to machine code
Answer explanation
An assembler translates assembly code to machine code, making it the correct choice among the options provided.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does an interpreter translate high-level language code?
In its entirety at once
Converts it directly to assembly code
Only after checking all syntax errors
One line at a time
Answer explanation
The interpreter translates high-level language code one line at a time, executing each line before moving on to the next, allowing for immediate feedback and error detection.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of a compiler?
To translate machine code into source code
To convert entire source code into machine code at once
To interpret high-level language into assembly code
To execute code line by line
Answer explanation
The role of a compiler is to convert entire source code into machine code at once.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?