Question
Either my brother or his friends is lying.
Read each sentence to find out whether there is any error in it. The error, if any, will be in one part of the sentence. Mark the part with the error as your answer. If there is no error, mark "No Error" as your answer. (Ignore the errors of punctuation).Solution
Replace ‘is’ with ‘are’. In the sentence of ‘either..or’ type, the verb takes the form of the noun closest to it. Here ‘friends’ is plural, thus plural verb ‘are’ will be used.
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?