Question
On Friday, if ratio of the speed of boat to the speed of
stream is 2:1, then what is the difference between the time taken by the boat while going upstream and downstream? Study the following table carefully and answer the given questions: Distance Upstream = Distance Downstream Total time taken = Downstream time + Upstream timeSolution
Let the speed of the boat and speed of the stream be 2x and x km/hr respectively. According to question, => [360/(2x+x)] + [360/(2x-x)] = 60 => (360/3x) + (360/x) = 60 => x = 8 The speed of stream is 8 km/hr and the speed of boat is 16 km/hr. Required difference = (360/8) - (360/24) = 30 hours
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?