Question
The ages of P, Q, and R are in the ratio 2:3:5. After 5
years, the sum of their ages will be 75 years. What are their present ages?Solution
Let the ages of P, Q, and R be 2x, 3x, and 5x respectively. After 5 years, their ages will be: P = 2x + 5, Q = 3x + 5, R = 5x + 5. The sum of their ages after 5 years: (2x + 5) + (3x + 5) + (5x + 5) = 75 10x + 15 = 75 10x = 60 x = 6. Now, calculate their present ages: P = 2x = 2 * 6 = 12 years Q = 3x = 3 * 6 = 18 years R = 5x = 5 * 6 = 30 years Correct option: d) P = 12, Q = 18, R = 30
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...
 Which of the following is NOT a typical task performed during the code optimization phase?
Peephole optimization is applied during:
Which statement about intermediate code is TRUE?
In computer architecture, what is the role of the control unit in a CPU?
Which data structure is commonly used in implementing a recursive descent parser?
The surface area of tape is ________ the surface area of a disk.
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?
Multithreading an interactive program will increase responsiveness to the user by ___________
What is the purpose of Normalization in database design? Â Â Â Â Â