Search Header Logo

Types of Program Translator

Authored by David Copeland

Computers

12th Grade

Used 3+ times

Types of Program Translator
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A program that converts assembly language into machine code is called a(n) ______.

Compiler

Interpreter

Assembler

Linker

Answer explanation

An assembler is a program that translates assembly language, which is a low-level programming language, into machine code, the binary code that a computer's processor can execute. Thus, the correct answer is 'Assembler'.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between a compiler and an interpreter?

A) A compiler translates code all at once, while an interpreter translates code line by line.

B) A compiler is faster than an interpreter.

C) An interpreter translates code all at once, while a compiler translates code line by line.

D) An interpreter is faster than a compiler.

Answer explanation

The main difference is that a compiler translates the entire code at once into machine code, while an interpreter translates it line by line during execution. Therefore, option A is correct.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An assembler is a type of ______.

Compiler

Interpreter

Program translator

Text editor

Answer explanation

An assembler translates assembly language into machine code, making it a type of program translator. Unlike compilers and interpreters, which handle higher-level languages, assemblers work directly with low-level code.

4.

DRAG AND DROP QUESTION

30 sec • 1 pt

The role of an Assembler in programming languages is to convert (a)   to machine code.

Converts high-level code to machine
Converts assembly code to machine c
Converts machine code to high-level
Converts bytecode to machine code.

Answer explanation

An assembler translates assembly code, which is a low-level programming language, into machine code that a computer's processor can execute. This makes the correct answer "Converts assembly code to machine code."

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of a Compiler?

Executes code line by line

Translates entire code to machine code at once

Converts machine code to high-level code

Converts bytecode to source code.

Answer explanation

The primary function of a compiler is to translate the entire source code into machine code at once, allowing the program to be executed efficiently. This distinguishes it from interpreters, which execute code line by line.

6.

MATCH QUESTION

30 sec • 1 pt

Match the following roles with their descriptions.

Identifying grammatical mistakes in code

Optimizing code for performance

Improving code efficiency and speed

Translating code to machine code

Converting high-level language to low-level language

Executing code line by line

Interpreting code without prior compilation

Checking syntax errors.

Answer explanation

The correct choice is 'Executing code line by line' because a compiler translates code into machine code, optimizes it, and checks for syntax errors, but it does not execute the code. That is the role of an interpreter.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the relationship between assembly language instructions and machine code instructions in an assembler?

1-to-2

1-to-1

2-to-1

1-to-3

Answer explanation

Assembly language instructions correspond directly to machine code instructions, meaning each assembly instruction translates to exactly one machine code instruction. Therefore, the relationship is 1-to-1.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?