Question
Present ages of P and Q are in the ratio 3:7
respectively. If Q’s age, 10 years hence from now will be 5 times of P’s age, 6 years ago from now, then find the present age of Q.Solution
Let the present ages of P and Q be 3x and 7x years respectively. According to the question, => (7x + 10) = 5 × (3x – 6) => 7x + 10 = 15x – 30 => 8x = 40 => x = 5 Therefore, the present age of Q = 7x = 35 years
Which of the following properties must a problem exhibit to be solvable by a greedy algorithm?
For a comparison-based sorting algorithm, which lower bound applies to the worst-case number of comparisons?
The time complexity of the best case for QuickSort is:
Which of the following cloud service models provides the highest level of control over the infrastructure?
Which of the following sorting algorithms has the BEST average-case time complexity?
Which of the following design patterns is primarily used to create objects without specifying the exact class of object that will be created?
What is the primary focus of Black Box Testing?
What is the default replication factor in HDFS?
What does the "L" in SOLID principles stand for?
Which architecture allows multiple processors to share memory and work simultaneously?     Â