Search Header Logo

introduction to compiler design

Authored by Jaichitra Isaac

Computers

University

Used 2+ times

introduction to compiler design
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1.     What is a compiler

a) system program that converts instructions to machine language

b) system program that converts machine language to high-level language


c) system program that writes instructions to perform


d) None of the mentioned

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2.Select the Language translator

a). Assembler

b). interpreter

c). Compiler

d). All the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. What is the correct sequence of the C program execution phases involving Preprocessor, Compiler, Assembler, and Linker/Loader?

a) Preprocessor → Compiler → Assembler → Linker/Loader

b) Compiler → Preprocessor → Assembler → Linker/Loader

c) Assembler → Preprocessor → Compiler → Linker/Loader

d) Preprocessor → Assembler → Compiler → Linker/Loader

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4.Which of the following is a key difference between a compiler and an interpreter?

 

A) A compiler translates code line-by-line, while an interpreter translates the entire program at once.

B) A compiler generates an intermediate code that is executed later, while an interpreter directly executes the code.

C) A compiler works only with high-level languages, while an interpreter works only with low-level languages.

D) A compiler cannot handle errors, while an interpreter can handle them more effectively.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

5.Which of the following is NOT a type of language translator in compiler design?

a) Compiler

b) Assembler

c) Debugger

d) Interpreter

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6..A compiler translates a program written in a high-level language into:

A) Machine Code

B) Assembly Code

C) Intermediate Code

D) All of the above

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7.Which language translator translates and executes the program line by line?

a) Compiler

b) Linker

c) Interpreter

d) Assembler

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?