Question
Present ages of P and Q are in the ratio 7:8
respectively. If Q’s age, 8 years hence from now will be 2 times of P’s age, 5 years ago from now, then find the present age of Q.Solution
Let the present ages of P and Q be 7x and 8x years respectively. According to the question, => (8x + 8) = 2 × (7x – 5) => 8x + 8 = 14x – 10 => 6x = 18 => x = 3 Therefore, the present age of Q = 8x = 24 years
The class NP-complete includes problems that are:
Which of the following is NOT a method for handling deadlocks?
Which of the following statements is true regarding the class NP?
What is a deadlock in a computer system?
Which famous sorting algorithm uses the divide-and-conquer strategy?
Which data structure in a compiler is used for managing information about variables and their attributes?
Which command will help you to find the time of how long the system is being running?
In which case higher bandwidth can be achieved
What is an algorithm?
In the context of ADTs, what does "encapsulation" refer to?