Question
A container has β2xβ litres of juice and β3yβ
litres of soda. If 24 litres of soda is added to the container, the ratio of juice to soda becomes 5:6. However, if only 12 litres of soda is added, the ratio of soda to juice becomes 3:5. What is the original quantity of juice in the container?Solution
ATQ,
{2x / (3y + 24)} = 5/6 β 12x = 15y + 120 β 4x β 5y = 40 β¦β¦(1) Also, {(3y + 12) / 2x} = 3/5 β 5(3y + 12) = 6x β 15y + 60 = 6x β 6x β 15y = 60 β¦β¦(2) Now, (1) Γ 3: 12x β 15y = 120 (2): 6x β 15y = 60 Subtracting: 6x = 60 x = 10 β΄ Initial juice = 2x = 2 Γ 10 = 20 litres
Which SOLID principle ensures that a class has only one reason to change?
Which page replacement algorithm minimizes the number of page faults theoretically but is difficult to implement in practice?
Which of the following best describes Abstraction in Object-Oriented Programming (OOP)?
What is a "collision" in the context of hashing?
Β Which graph traversal algorithm uses a queue to explore vertices in a layer-by-layer fashion?
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the primary purpose of a B+ Tree in a database management system?
Which of the following is a primary feature of Mobile Computing?
Which of the following best differentiates between server-based virtualization and hypervisor-based virtualization?
KMP pattern matching avoids: