Question
The ages of two siblings, John and Mary, are in the
ratio of 5:3. Five years ago, the sum of their ages was 38 years. What are their current ages?Solution
Let John’s current age be 5x years and Mary’s current age be 3x years. According to the problem, five years ago: John's age = 5x - 5 Mary's age = 3x - 5 The sum of their ages five years ago was 38 years: (5x - 5) + (3x - 5) = 38 Simplifying the equation: 5x - 5 + 3x - 5 = 38 8x - 10 = 38 8x = 48 x = 6 Now, substituting x back to find their ages: John's age = 5x = 5(6) = 30 years Mary's age = 3x = 3(6) = 18 years
Time complexity of heap sort is:
Which type of database key is a candidate key that has not been chosen as the primary key?
Which data structure uses LIFO (Last In, First Out) principle?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
- Which of the following is the primary characteristic of Infrastructure as a Service (IaaS) in cloud computing?
Which of the following accurately describes the role of a "foreign key" in a relational database system?
Deletion in Red-Black Trees maintains balance using:
Which SQL command is used to remove only specific rows from a table while preserving the structure and other rows?
In the dynamic programming approach for LCS, the base cases are crucial for correctly initializing the dp table.
Consider the following Python co...
RISC stands for: