Compiler Design Quiz I June 18

Compiler Design Quiz I June 18

University

10 Qs

quiz-placeholder

Similar activities

COMPILER DESIGN QUIZ 28.3.2023

COMPILER DESIGN QUIZ 28.3.2023

University

10 Qs

Compiler Parsing Techniques

Compiler Parsing Techniques

University

10 Qs

Parser - unit 2 and 3

Parser - unit 2 and 3

University

15 Qs

CD QUIZ S6 25-3-22

CD QUIZ S6 25-3-22

University

10 Qs

Compiler Design I

Compiler Design I

University

15 Qs

CFG - Quiz Review

CFG - Quiz Review

University - Professional Development

11 Qs

CS0023 - Context Free Grammar Quiz Game (Continuation)

CS0023 - Context Free Grammar Quiz Game (Continuation)

University

12 Qs

CD Viva B Section

CD Viva B Section

University

12 Qs

Compiler Design Quiz I June 18

Compiler Design Quiz I June 18

Assessment

Quiz

Computers

University

Hard

Created by

Suganya Ram

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the use of a symbol table in compiler design?

Finding name’s scope

Type checking

Keeping all of the names of all entities

All of the mentioned

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A compiler is preferable to an interpreter because

Debugging can be faster and easier

If one changes a statement, only that statement needs re-compilation

It is much helpful in the initial stages of program development

It can generate stand alone programs that often take less time for execution

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A top-down parser generates

Left-most derivation in reverse

Right-most derivation in reverse

Left-most derivation

Right –most derivation

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following parsers is the most powerful?

SLR

LALR

Canonical LR

Operator-precedence

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Synthesized attribute can be easily simulated by a

LR grammar

LL grammar

Ambiguous grammar

Left recursive grammar

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The lexical analyzer takes ____ as input and produces a list of ___ of output.

Source code, tokens

Machine code, Source code

Tokens, source code

Token, Target code

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

__________ reads a program, analyze it, and attempts to discover potential bugs without running the program.

Structure editor

Interpreters

Pretty printers

Static checker

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?