Search Header Logo

AS IT MCQ Quiz 2

Authored by Felix Jetawo

Instructional Technology

9th Grade

Used 13+ times

AS IT MCQ Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes a compiler?

It translates high-level language into machine language line by line.

It translates high-level language into machine language all at once.

It interprets the program line by line at runtime.

It executes instructions directly without translation.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

A compiler translates the entire program before execution, while an interpreter translates code during execution.

A compiler and an interpreter work the same way.

An interpreter translates machine code into high-level language, while a compiler does not.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about an interpreter?

It provides faster execution because it translates the whole code before execution.

It stops execution when an error is encountered and does not continue.

It stores the translated code for future use.

It converts high-level code into machine code once and for all.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An assembler is used to:

Convert high-level code into intermediate code.

Convert machine code into high-level programming language.

Convert assembly language into machine code.

Execute assembly code directly.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about the execution process of a compiler and an interpreter is true?

A compiler translates the entire source code into object code in one go, while an interpreter translates the source code line-by-line.

An interpreter translates the whole program at once, while a compiler translates line-by-line.

Both compiler and interpreter execute code at the same time.

A compiler does not generate any machine code.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a disadvantage of using an interpreter?

It performs faster execution of code.

It generates an output file that can be executed later.

It requires re-translation each time the program runs.

It can handle both high-level and low-level languages.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The primary advantage of using a compiler over an interpreter is:

Compilers provide immediate feedback after translating each line.

Compilers execute code faster because the translation happens before execution.

Compilers are easier to implement.

Compilers do not need to generate any output file.

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?