Search
Question: Which of the following best describes inherited attributes?Options: Attributes passed from..
Question: What is the output of a syntax-directed translation scheme?Options: Source codeIntermediat..
Question: In syntax-directed translation, which of the following is true about synthesized attribute..
Question: Which data structure is commonly used to represent the intermediate code in syntax-directe..
Question: What is the purpose of type checking in a compiler?Options: To ensure that the program run..
Question: What does the term \'symbol table\' refer to in a compiler?Options: A table of syntax rule..
Question: Which of the following is a characteristic of a runtime environment?Options: It is only us..
Question: Which of the following is NOT a phase of syntax analysis?Options: ParsingLexical analysisS..
Question: What is the primary function of a lexical analyzer in a compiler?Options: To generate inte..
Question: Which parsing technique is generally more powerful, LL or LR?Options: LLLRBoth are equally..
Question: In LR parsing, what is the significance of the \'shift\' action?Options: To reduce the cur..
Question: What is a common limitation of LL parsers?Options: They cannot handle ambiguous grammars.T..
Question: Which of the following is true about SLR parsing?Options: It uses a single lookahead token..
Question: What is the primary purpose of a parsing table in LR parsing?Options: To store the grammar..
Question: In the context of LL parsing, what does the \'1\' in LL(1) signify?Options: One lookahead ..
Question: Which of the following is a key advantage of LR parsing over LL parsing?Options: LR parsin..
Question: Which of the following grammars can be parsed using LL(1) parsing?Options: Left-recursive ..
Question: Which of the following best describes the relationship between a lexer and a parser?Option..
Question: What is the output of a lexical analyzer typically used for?Options: To generate machine c..
Question: Which of the following is a common error detected by a lexical analyzer?Options: Syntax er..
Question: What is a \'lexeme\' in the context of lexical analysis?Options: The smallest unit of mean..
Question: What is the purpose of a finite automaton in lexical analysis?Options: To parse the syntax..
Question: Which of the following tools is commonly used to implement a lexical analyzer?Options: Yac..
Question: Which of the following is a benefit of using intermediate code in a compiler?Options: It e..
Question: What is a common characteristic of intermediate code?Options: It is always in binary forma..
Question: What is the advantage of using an abstract syntax tree (AST) in intermediate code generati..
Question: Which of the following optimizations can be performed on intermediate code?Options: Dead c..
Question: In three-address code, how is a binary operation typically represented?Options: result = o..
Question: What is the main challenge of optimizing code for different architectures?Options: Differe..
Question: Which optimization technique can help reduce the number of memory accesses?Options: Loop f..