- Type
- Quiz
- Course
- CS606 Compiler Construction
- Size
- PDF 846 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 2. Download the file for all 2 pages.
Q1. In YACC, what does the notation $2 refer to?
Correct answer: The second symbol on the right-hand side of a production
Q2. What is the purpose of analyzing attribute rules in the rule-based methodology of attribute grammar evaluation?
Correct answer: To establish a fixed ordering of attribute evaluation
Q3. What is the purpose of the $3 notation in YACC?
Correct answer: To refer to the third symbol on the right-hand side of a production
Q4. What is the purpose of using an intermediate representation (IR) in a compiler?
Correct answer: To provide a structured and uniform representation for code analysis and transformation.
Q5. What consideration might influence the choice of the attribute evaluation order in the oblivious methodology?
Correct answer: Optimization goals
Q6. Which two linear intermediate representations (IRs) are commonly used in modern compilers?
Correct answer: Stack-machine code and three-address code
Q7. Stack-machine code and three-address code are mutually exclusive and cannot be used together in modern compilers.
Correct answer: False
Q8. S --> A B A --> ∈ | aA B --> ∈ | bB. FIRST(S) contains ___ elements.
Correct answer: 3
Q9. In YACC specification file, different sections are separated by ____________ symbol.
Correct answer: %%
Q10. The size of an LR(1) parsing table can be calculated by multiplying the number of ___________ with the number of symbols.
Correct answer: States
Related CS606 files
All CS606 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.