Question
If a man cycles at 10 km/hr, then he arrives at a
certain place at 1 p.m .If he cycles at 15 km/hr, he will arrive at the same place at 11 am At what speed must he cycle to get there at noon?Solution
Let the total distance be = x km As per question, x/10-x/15=2 hours x = 60 kms If he cycles at the speed of 10 km/hr. so he take = 60/10= 6 hours So he starts his journey at = 7 am and to reach place at 12 pm he should cycles at the speed of = 60/5=12 km/hr
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?