Types of translator

Types of translator

Assessment

Interactive Video

Computers

10th Grade

Hard

Created by

Alexander Fraser

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two methods of high level code translation?

Compilation and Interpretation
Execution and Debugging
Transpilation and Optimization
Parsing and Linking

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

So how does a compiler translate the program?

It checks for syntax errors in the entire program as it is the entire program that gets translated in one go.

A compiler translates a program by only performing code generation.
A compiler translates a program by executing it directly without analysis.
A compiler translates a program by converting it to a different programming language.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

So how does an interpreter translate code?

An interpreter translates code by analyzing the entire program before running it.

An interpreter translates code by translating and executing it line by line.

An interpreter translates code by converting it into machine language before execution.
An interpreter translates code by compiling it all at once.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With a compiler the entire program is translated into... before then being executed as machine code

source code
bytecode
high-level code
object code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Because it creates object code, when this is distributed, you cannot see the source code, why is this an advantage?

It simplifies the coding process for developers.
It allows for easier debugging of the code.
It protects intellectual property and prevents unauthorized modifications.
It ensures faster execution of the program.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Because an interpreter doesn't produce an executable file like object code, the source code needs to be provided to share it, why is this a disadvantage?

It ensures the code runs faster on all machines.
It exposes the source code to theft or misuse.
It allows for easier debugging of the code.
It simplifies the sharing process among developers.