Question
In two years, the grandson's age will be one-quarter of
the grandfather's age. Three years ago, the grandfather was five times as old as the grandson. Determine the grandson's current age.Solution
3 years ago from now, let the age of the grandson and that of the grandfather be 'y' years and '5y' years, respectively 2 years hence from now, age of the grandfather = 5y + 3 + 2 = (5y + 5) years 2 years hence from now, age of the grandson = y + 3 + 2 = (y + 5) years According to the question, (5y + 5) = (y + 5) ÷ 0.25 Or, 5y + 5 = 4y + 20 So, y = 15 So, present age of the grandson = 15 + 3 = 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: