Question
Anil can do a piece of work in 14 days and Sunil can do
the same work in 20 days. With the help of Vimal, they completed the same work in just 4 days. Then how much time can Vimal do that work alone?ÂSolution
Anil can do the work in 14 days, so his 1 day work = 1/14 Sunil can do the work in 20 days, so his 1 day work = 1/20 Anil, Sunil, and Vimal together completed the work in 4 days, so their 1 day work together = 1/4 Let Vimal's 1 day work = x So according to the question: 1/14 + 1/ 20 + x = 1/4 x = 9/70 ​So, Vimal’s 1 day work = 9/70 If Vimal does 9/70 of the work in 1 day, then he will complete the full work in: 1(9/70) = 70/9 days
A "shift-reduce" parser is a type of:
In a Syntax-Directed Definition (SDD), attributes are associated with:
Which of these is used for resolving operator precedence in parsing?
Which of the following grammars is suitable for top-down parsing?
Dynamic memory allocation (e.g., using `malloc` or `new`) typically occurs in which part of the runtime memory?
"Dead code elimination" is an optimization that removes:
Which data structure is commonly used in implementing a recursive descent parser?
Which parser is most commonly used in modern compilers?
What is the primary purpose of a "symbol table" in a compiler's runtime environment?
The primary goal of code optimization is to: