Question
Eleven friends spent Rs. 19 each on a tour and the
twelfth friend spent Rs. 11 less than the average expenditure of all twelve of them. What is the total money spent by them?Solution
Average expenditure of 11 students = 19 Γ 11 = Rs. 209 Let money spent by the twelfth friend be Rs.x Total money spent by all the 12 friend = 209 + x Average money spent by 12 friend = (209 + x) / 12 Given, x = [(209 + x)/12] - 11 β 12x = 209 + x - 132 β 11x = 77 β΄ x = 7 Total expense = 209 + 7 = Rs. 216
Which error is detected during lexical analysis?
Which of the following is the first phase of a compiler?
Which parser is most commonly used in modern compilers?
"Liveness analysis" in code optimization determines:
Which of the following parsers is the most powerful (can parse the largest class of grammars)?
"Dead code elimination" is an optimization that removes:
A 3-address instruction typically has the form:
A "parser" is primarily responsible for which phase of compilation?
Which of the following grammars is suitable for top-down parsing?
An S-attributed SDD (Syntax-Directed Definition) is one where: