Question
The ratio of sugar to flour packets in a store is 6:7. If
18 more packets of each are stocked, the ratio becomes 4:5. Find the original number of flour packets.Solution
ATQ,
Let the number of sugar and flour packets be 6x and 7x.
ATQ:
(6x + 18)/(7x + 18) = 4/5
⇒ 5(6x + 18) = 4(7x + 18)
⇒ 30x + 90 = 28x + 72
⇒ 2x = 18
⇒ x = 9
Original flour packets = 7 × 9 = 63
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: