Download Compiler Design Quiz and more Quizzes Compiler Design in PDF only on Docsity!
COMPILER DESIGN QUIZ
A optimizing compiler A. Is optimized to take less time for execution B. Optimized the code C. Is optimized to occupy less space D. None of the mentioned
Which of the following actions an operator precedence parser may take to recover from an error? A. Delete symbols from the stack B. Insert symbols onto the stack C. Inserting or deleting symbols from the input D. All of the mentioned
Shift reduce parsers are A. Bottom up parser B. Top down parser C. Top down parserMaybe both D. None of the mentioned
Which of the following is used for grouping of characters into tokens? A. Parser B. Code generator C. Lexical analyser D. Code generator
In a compiler, keywords of a language are recognized during - A. the code generation B. parsing of the program C. the lexical analysis of the program D. dataflow analysis
Compiler translates the source code to A. Machine code B. Binary code C. Executable code D. Both 1 and 2
What is the output of lexical analyzer? A. A list of tokens B. Intermediate code C. A parse tree D. Machine code 8. How many parts of compiler are there? A. 8 B. 4 C. 2 D. 1 9. ......................is a process of finding a parse tree for a string of tokens. A. Analysing B. Recognizing C. Tokenizing D. Parsing 10. Compiler can check ________ error. A. Syntax B. Content C. Logical D. Both A and B 11. ......................is the most general phase structured grammar. A. Regular B. Context free C. Context sensitive D. All of these 12. A _________ is a software utility that translates code written in higher language into a low level language. A. Text editor B. Compiler C. Converter D. Code optimizer 13. The graph that shows basic blocks and their successor relationship is called A. Flow graph B. control graph C. Hamiltonion graph D. DAG 14. When a computer is first turned on or resrarted, a special type of absolute loader is executed called A. Boot strap loader B. " Compile and GO " loader C. Relating loader D. Boot loader 15. A self-relocating program is one which A. consists of a program and relevant information for its relocation B. cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation C. can itself perform the relocation of its address sensitive portions D. all of these
Scissoring enables - A. entire data to be displayed B. full data display on full area of screen C. a part of data to be displayed D. no data to be displayed
which is the permanent data base in the geneal model of Compiler? A. identifier table B. literal table C. terminal table D. source code
which of the following parsers is the most powerful ? A. Operator - precedence B. LALR C. SLR D. Canonical LR
What is the output of lexical analyzer? A. A list of tokens B. A parse tree C. Intermediate code D. Machine code