Question
The current ratio of the ages of 'Armaan' and 'Bittu' is
such that six years from now, it will be 5:4, respectively. Presently, 'Chetna's age exceeds 'Bittu's by 18 years. If the ratio of the ages of 'Armaan' and 'Chetna' was 4:7 eight years ago, determine the sum of the current ages of 'Bittu' and 'Chetna'.Solution
ATQ, Let the ages of ‘Armaan’ and ‘Bittu’, 6 years hence be 5p years and 4p years respectively Therefore, present age of ‘Armaan’ = (5p – 6) years Present age of ‘Bittu’ = (4p – 6) years Present age of ‘Chetna’ = (4p – 6 + 18) = (4p + 12) years According to the question, (5p – 6 – 8)/(4p + 12 – 8) = 4/7 Or, p = 114/19 = 6 years Required sum = (4p – 6 + 4p + 12) = 54 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?