Question
Currently, the ages of Rahul and Ritesh are in a ratio
of 7:3. If we look back three years, the ages of Ritesh and Ramesh had a ratio of 1:3. Knowing that Rahul is 6 years younger than Ramesh, can you determine the current average age of Rahul, Ritesh, and Ramesh?Solution
Let the present ages of Rahul and Ritesh are 7x years and 3x years respectively. Age of Ritesh three years ago = 3x β 3 years Age of Ramesh three years ago = 3 Γ (3x β 3) = 9x β 9 years Present age of Ramesh = 9x β 9 + 3 = 9x β 6 years According to question: 9x β 6 β 7x = 6 2x = 12 x = 6 So, the present ages of Rahul, Ritesh and Ramesh are 42 years, 18 years and 48, years respectively. Present average age of Rahul, Ritesh and Ramesh = (42 + 18 + 48)/3 = 36 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: