Question
P started a business investing Rs.9000. After 3 months,
Q joined her with the capital of Rs.12000. After another 6 months, R joined them with the capital of Rs.20000. At the end of the year, they made a total profit of Rs.6900. Find the share of R.Solution
P invested her capital for 12 months, Q for 9 months and R for 3 months. So, ratio of their capitals = (9000 × 12):(12000 × 9):(20000 × 3) ⇒ 108000 : 108000 : 60000 ⇒  9 : 9 : 5 Therefore, R’s share = 6900 x (5/23) = Rs.1500
Which optimization technique involves replacing a sequence of instructions with a shorter or faster sequence, often by looking at a small "window" of in...
An S-attributed SDD (Syntax-Directed Definition) is one where:
Multithreading an interactive program will increase responsiveness to the user by ___________
The primary goal of code optimization is to:
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...
Which parsing method uses a stack and an input buffer?
A 3-address instruction typically has the form:
Which optimization is performed after intermediate code generation?
Which of the following parsers is the most powerful (can parse the largest class of grammars)?
Which phase of compilation groups characters into tokens?