Search
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..
Question: What does the term \'register allocation\' refer to in code generation?Options: Assigning ..
Question: What is the purpose of constant folding in code optimization?Options: To replace variables..
Question: Which of the following is a common method for performing constant folding?Options: Evaluat..
Question: What does the term \'grammar ambiguity\' refer to?Options: Multiple valid parse trees for ..
Question: What type of data is clustering most effective with?Options: Unlabeled dataLabeled dataTim..
Question: What is the primary goal of clustering in data analysis?Options: To find natural groupings..
Question: How can clustering be applied in healthcare?Options: Grouping patients with similar sympto..
Question: What is a key benefit of using clustering in social network analysis?Options: Finding comm..