Skip to content
VUBuddy

CS606 Quiz 4 Jan 2026 Set 2

Compiler Construction PDF 35 KBUpdated 23 Oct 2026
Quiz CS606 Quiz 4 Jan 2026 Set 2 PDF 35 KB
vubuddy.com
Type
Quiz
Course
CS606 Compiler Construction
Size
PDF 35 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 35 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 5. Download the file for all 5 pages.

Quiz 1 - CS606 (Q1/10)

Question:

What does the notation refer to in YACC?

  1. The symbol on the right-hand side of the production
  2. The symbol on the down-hand side of the production
  3. The symbol on the up-hand side of the production
  4. The symbol on the left-hand side of the production

Correct answer: The symbol on the left-hand side of the production

Copied: 1/8/2026, 11:09:00 PM

Quiz 2 - CS606 (Q2/10)

Question:

In syntax-directed translation, every time the parser encounters an identifier, it stores it in the _______________.

A. Parsing Stack

B. Symbol table

C. Priority Queue D. Linear Array Copied: 1/8/2026, 11:09:18 PM

Quiz 3 - CS606 (Q3/10)

Question:

What purpose does the topological sort serve in the dynamic method of attribute grammar evaluation?

  1. It constructs the parse tree.
  2. It defines the order of attribute evaluation.
  3. It builds the dependence graph.
  4. It ensures the absence of circular dependencies.

Correct answer: It defines the order of attribute evaluation.

Copied: 1/8/2026, 11:09:33 PM

Quiz 4 - CS606 (Q4/10)

Question:

What does LALR(1) stand for?

  1. Look Ahead RR(1)
  2. Look Ahead LR(1)
  3. Look Ahead RL(1)
  4. Look Ahead LL(1)

Correct answer: Look Ahead LR(1)

Copied: 1/8/2026, 11:09:47 PM

Quiz 5 - CS606 (Q5/10)

Question:

In YACC, what does the notation $2 refer to?

  1. The first symbol on the right-hand side of a production
  2. The second symbol on the right-hand side of a production
  3. The second symbol on the left-hand side of a production
  4. The first symbol on the left-hand side of a production

Correct answer: The second symbol on the right-hand side of a production

Copied: 1/8/2026, 11:10:07 PM

Quiz 6 - CS606 (Q6/10)

Question:

In attribute grammars, each symbol in the derivation has a set of values or attributes.

A. True

B. False Copied: 1/8/2026, 11:10:28 PM

Quiz 7 - CS606 (Q7/10)

Question:

In attribute grammars, an attribute (e.g., val) of a symbol (e.g., B) can be written as ____________.

A. val.B

C. B.val

Copied: 1/8/2026, 11:10:40 PM

Quiz 8 - CS606 (Q8/10)

Question:

In stack-machine code, how are operands typically accessed for operations?

  1. Through memory loads and stores
  2. By pushing them onto a stack
  3. By using index-based addressing

Correct answer: By pushing them onto a stack

All CS606 files →
CS606 Compiler Construction All CS606 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.