Question
The sum of the ages of a father and his son is 50 years.
Five years ago, the father's age was four times that of his son. What are their current ages?ÂSolution
Let the son's current age be x years. Then, the father's current age is (50 - x) years. Five years ago, the father's age was (50 - x - 5) and the son's age was (x - 5). According to the problem: (50 - x - 5) = 4(x - 5) 45 - x = 4x - 20 45 + 20 = 5x x = 13 So, the son's current age is 13 years, and the father's current age is 37 years. Correct answer: c) Father: 37 years, Son: 13 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: