Question
The father is 5 years older than the mother and five times
as old as the son. If their current age sum is 110 years, after how many years will the father be twice as old as the son?Solution
ATQ,
Let the present age of the son and the father be 'x' years and '5x' years, respectively.
Then, present age of the mother = (5x - 5) years
So, x + 5x + (5x - 5) = 110
Or, 11x - 5 = 110
So, x = (110 + 5) ÷ 11 = 10
Present ages of the son and father are 10 years and 50 years, respectively.
For some 'y',
(10 + y) × 2 = (50 + y)
Or, 20 + 2y = 50 + y
So, y = 30
30 years hence from now, the father will be twice as old as the son
Definition of 2NF
Recursion uses
Which of the following best describes the IaaS model?
- Which of the following best defines the concept of Encapsulation in Object-Oriented Programming (OOP)?
What is the primary difference between SQL Injection and Command Injection?
Integrated Circuits (ICs) were the hallmark of which computer generation, leading to smaller, faster, and more reliable machines?
What is the primary advantage of using Normalization in a database design?
What will be the output of the following code snippet?
class Animal:
  def sound(self):
    return "Some sound"
...
Which data structure is most suitable for implementing a priority queue?
SMTP commands