Types of Program Translator

Types of Program Translator

12th Grade

30 Qs

quiz-placeholder

Similar activities

Key Programming Concepts

Key Programming Concepts

5th - 12th Grade

28 Qs

TIK01

TIK01

12th Grade

25 Qs

SAINS KOMPUTER

SAINS KOMPUTER

4th - 12th Grade

30 Qs

Understanding Strings and Functions Quiz

Understanding Strings and Functions Quiz

8th Grade - University

25 Qs

Quiz 1

Quiz 1

11th - 12th Grade

25 Qs

python

python

12th Grade

25 Qs

quiz on excel

quiz on excel

7th - 12th Grade

25 Qs

Ulangan KD.6 MULOK MIKROTIK

Ulangan KD.6 MULOK MIKROTIK

12th Grade

25 Qs

Types of Program Translator

Types of Program Translator

Assessment

Quiz

Computers

12th Grade

Medium

Created by

David Copeland

Used 3+ times

FREE Resource

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

Checking syntax errors.

Converting high-level language to low-level language

Optimizing code for performance

Interpreting code without prior compilation

Executing code line by line

Improving code efficiency and speed

Translating code to machine code

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.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?