Question
Present ages of Ram and Raj are in the ratio 6:7,
respectively. The ratio of their ages after 12 years will be 9:10. The difference between the ages of Raj and Rakesh is two years. Find the present age of Rakesh.Solution
We can say that, Let the present ages of Ram and Raj are 6a years and 7a years, respectively. According to question: (6a + 12)/(7a + 12) = 9/10 60a + 120 = 63a + 108 3a = 12 a = 4 So, the present ages of Ram and Raj are 24 years and 28 years, respectively. Present age of Rakesh = either 28 + 2 = 30 years or 28 – 2 = 26 years. So the present age of Rakesh is either 26 years or 30 years.
Consider the following Python-like pseudo-code for a modified Merge Sort algorithm that sorts an array `arr` and also counts the number of "reverse pair...
Given the following Python-like code snippet:
```python
class Counter:
def __init__(self):
...
Which SQL constraint ensures that a column cannot have NULL values?
Given a binary tree, a "zigzag" level order traversal prints the nodes level by level, but alternating the order of nodes from left-to-right and right-t...
What is a table joined with itself called?
A data warehouse is primarily characterized by which of the following properties?
Which of the following SQL queries would return the total number of employees in each department, but only for departments with more than 10 employees?
A PL/SQL `TRIGGER` is a stored program that automatically executes in response to:
An SQL `VIEW` is a:
Which property of a transaction ensures that either all operations within the transaction are completed successfully, or none of them are?