Question
Two years from now, a father's age will be twice the age
his son was two years ago. Additionally, four years ago, the ratio of the father's age to the son's age was 19:10. What is the son's current age?Solution
4 years ago from now, let the ages of the father and the son be '19x' years and '10x' years, respectively Age of the father, 2 years hence from now = 19x + 4 + 2 = (19x + 6) years Age of the son, 2 years ago from now = 10x + 4 - 2 = (10x + 2) years According to the question, 19x + 6 = (10x + 2) X 2 Or, 19x + 6 = 20x + 4 Or, x = 2 Therefore, present age of the son = 10x + 4 = 10 X 2 + 4 = 24 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: