Compiler Design

Compiler Design

University

10 Qs

quiz-placeholder

Similar activities

Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

Scratch: Events, Loops and The Coordinate System

Scratch: Events, Loops and The Coordinate System

2nd Grade - Professional Development

15 Qs

Commands

Commands

University

11 Qs

Quiz 10 Cloud Computing: Virtualisasi Server-2021-1

Quiz 10 Cloud Computing: Virtualisasi Server-2021-1

University

5 Qs

Cycle 2: Session 2 Review.

Cycle 2: Session 2 Review.

University - Professional Development

10 Qs

Introduction to HDL

Introduction to HDL

University

15 Qs

Online Communication

Online Communication

University

10 Qs

Fundamental of Common Rail Diesel Fuel System

Fundamental of Common Rail Diesel Fuel System

University - Professional Development

15 Qs

Compiler Design

Compiler Design

Assessment

Quiz

Instructional Technology

University

Hard

Created by

Dr. D. Rajesh

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following is a stage of compiler design?a) Semantic analysisb) Intermediate code generatorc) Code generatord) All of the mentioned

A

B

C

D

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. A programmer, writes a program to multiply two numbers instead of dividing them by mistake, how can this error be detected?a) Compiler or interpreterb) Compiler onlyc) Interpreter onlyd) None of the mentioned

A

B

C

D

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Who is responsible for the creation of the symbol table?a) Assemblerb) Compilerc) Interpreterd) All of the mentioned

A

B

C

D

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Let L1 = {w ∈ {0,1}∗ | w has at least as many occurrencesof (110)’s as (011)’s}.Let L2 = { ∈ {0,1}∗ | w has at least as many occurrencesof (000)’s as (111)’s}.Which of the following is correct?a) L2 is regularb) L1 and L2 are regularc) L1 is regular but not L2d) None of them are regular

A

B

C

D

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which of the following is a correct statement?I. For some programming languages, there are parsing algorithms with an O(3) complexity.II. A recursive programming language can be constructed with static storage allocation.III. In the context of bottom-up parsing, no L-attributed definition can be evaluated.IV. Code-improvement modifications can be carried out at both the intermediate and source code levels.a) I and IIIb) I and IVc) I, II and IVd) I, II, III and IV

A

B

C

D

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. Which of the following can detect an error if a programmer by mistake writes multiplication instead of division?a) Interpreterb) Compiler or interpreter testc) Compilerd) None of the mentioned

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Why Generation of intermediate code based on an abstract machine model is useful in compilers?a) Writing for intermediate code generationb) Portability of the front end of the compilerc) Implementation of lexical analysis and syntax analysis is made easierd) All of the mentioned

A

B

C

D

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?