Compiler Design Quiz I June 18

Compiler Design Quiz I June 18

University

10 Qs

quiz-placeholder

Similar activities

QUIZ CD S5 7-4-22

QUIZ CD S5 7-4-22

University

10 Qs

Compiler Quiz on Parsers

Compiler Quiz on Parsers

University

5 Qs

CD QUIZ S6 25-3-22

CD QUIZ S6 25-3-22

University

10 Qs

VIT Compiler Design -Semantic analysis

VIT Compiler Design -Semantic analysis

University

10 Qs

Quiz 1 "Compiler Construction"

Quiz 1 "Compiler Construction"

University

15 Qs

Test - 2

Test - 2

University

10 Qs

CD S6 QUIZ 29-03-22

CD S6 QUIZ 29-03-22

University

10 Qs

CD QUIZ S6 30-3-22

CD QUIZ S6 30-3-22

University

10 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?