Question
Select the wrong term in the given series. 18,
42, 21, 37, 24, 32, 28, 27Solution
Two series are combined alternatively to form the given series, in first series '3' is added to get the next number starting from 18 and in second series '5' is subtracted to get the next number starting from 42. First series: Β 18 + 3 = 21 21 + 3 = 24 24 + 3 = 27 Second series: 42 - 5 = 37 37 - 5 = 32 32 - 5 = 27 '28' is the wrong term in the given series.
Data flow analysis is a technique used by optimizers to:
In a compiler, lexical analysis is responsible for:
Which of the following is NOT a common form of 3-address code?
Which technique is used to handle left recursion in a grammar?
In a Syntax-Directed Definition (SDD), attributes are associated with:
If an expression `x = a + b` is computed, and later in the same basic block, `y = a + b` is computed, a compiler can apply which optimization?
Which of the following tools is commonly used to generate a lexical analyzer (scanner) from a set of regular expressions?
Which parsing method uses a stack and an input buffer?
Which of these is used for resolving operator precedence in parsing?
What is the primary output of the parsing phase in a compiler?