PYQBOOK
Filter Questions
Found 475 question(s)
Q401
MCQ
GATE
CS
Medium
2 Marks
2020
CD → Syntax Directed Translation
Consider the productions A -> PQ and A -> XY. Each of the five non-terminals A, P, Q, X, and Y has two attributes: s is a synthesized attribute, and i is an inherited attribute. Consider the following rules. Rule 1: P.i = A.i + 2, Q.i = P.i + A.i, and A.s = P.s + Q.s. Rule 2: X.i = A.i + Y.s and Y.i = X.s + A.i. Which one of the following is TRUE?
Q402
NAT
GATE
CS
Hard
1 Mark
2020
CD → Parsing
Consider the following grammar. S -> aSB | d, B -> b. The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbb is
Q403
MCQ
GATE
CS
Medium
1 Mark
2020
CD → Compilers
Consider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment. III. Errors violating the condition 'any variable must be declared before its use' are detected during syntax analysis. Which of the above statements is/are TRUE?
Q404
MCQ
GATE
CS
Medium
1 Mark
2020
CD → Compilers
Consider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment. III. Errors violating the condition 'any variable must be declared before its use' are detected during syntax analysis. Which of the above statements is/are TRUE?
Q405
NAT
GATE
CS
Easy
1 Mark
2020
CN → Application Layer