GATE CS Compiler Design questions
Practise Compiler Design questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Which of the following is the most powerful parsing method?
Faster access to non-local variables is achieved using an array of pointers to activation records called a
Type checking is normally done during
A linker reads four modules whose lengths are and words, respectively. If they are loaded in that order, what are the relocation constants?
Which of the following statements is true?
In a resident – OS computer, which of the following systems must reside in the main memory under all situations?
The expression where ‘op’ is one of ‘’, ‘’ and ‘’ (exponentiation) can be evaluated on a CPU with single register without storing the value of () if
Heap allocation is required for languages.
The conditional expansion facility of macro processor is provided to
A language allows declaration of arrays whose sizes are not known during compilation. It is required to make efficient use of memory. Which one of the following is true?
In the following grammar Which of the following is true?
The correct matching for the following pairs is …
Which of the following macros can put a macro assembler into an infinite loop? .MACRO M1, X .IF EQ, X ;if X=0 then M1 X + 1 .ENDC .IF NE, X ;if X ≠ O then .WORD X ;address (X) is stored here .ENDC .ENDM .MACRO M2, X .IF EQ, X M2 X .ENDC .IF NE, X .WORD X + 1 .ENDC .ENDM
The grammar whose productions are is ambiguous because if a then if b then c:= d has more than two parse …
The pass numbers for each of the following activities object code generation literals added to literal table listing printed address resolution of local symbols that occur in a two pass assembler respectively are
A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar What is the translation of using the syntax directed translation scheme described by the …
What is the value of printed by the following program? program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(X); writeln(X); end.
A linker is given object modules for a set of programs that were compiled separately. What information need not be included in an object module?
What are and in the following macro definition? macro Add x, y Load y Mul x Store y end macro
Consider a grammar with the following productions The above grammar is:
