Question
P, Q, and R began a business with their investments in
the ratio 3:5:6. The profits were distributed in the ratio of 12:54:35 among P, R, and Q, respectively. Determine the ratio of the time periods for which P, Q, and R invested their money.Solution
Let the investment of 'P', 'Q' and 'R' be Rs. '3a', Rs. '5a' and Rs. '6a', respectively. Let the profit shares of 'P', 'Q' and 'R' be Rs. '12b', Rs. '35b' and Rs. '54b', respectively. Time period of investment of 'P' = (12b/3a) = (4b/a) Time period of investment of 'Q' = (35b/5a) = (7b/a) Time period of investment of 'R' = (54b/6a) = (9b/a) Therefore, required ratio = (4b/a) :(7b/a) :(9b/a) = 4:7:9
Which tree traversal gives nodes in non-decreasing order for a BST?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
In a binary tree, what is the maximum number of children a node can have?
Which sorting algorithm has O(n log n) average case?
Which of the following data structures is best suited for implementing a "undo" mechanism in a text editor?
Which of the following best describes Abstraction in Object-Oriented Programming (OOP)?
What does Big O notation primarily describe?
A stack follows which principle for data access?
Which data structure uses LIFO (Last In, First Out) principle?
What is the difference between 'BFS' (Breadth-First Search) and 'DFS' (Depth-First Search) in graph traversal?