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?
Choose One:
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
Enter Numerical Answer:
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?
Choose One:
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?
Choose One:
Q405 NAT GATE CS Easy 1 Mark 2020
CN → Application Layer
Assume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to send HTTP requests in non-persistent mode. The web page contains text and five very small images. The minimum number of TCP connections required to display the web page completely in your browser is
Enter Numerical Answer: