Question
The speed of a boat in still water is 15 times the speed
of the stream. If the difference between the upstream and downstream speed of the boats is 45 km/hr, then find the time taken by the boat to travel 1260 km in upstream.Solution
Let the speed of the stream be βxβ km/hr Therefore, speed of the boat in still water = 15x km/hr Upstream speed of the boat = 13x β x = 14x km/hr Downstream speed of the boat = x + 15x = 16x km/hr According to the question, 16x β 14x = 45 => 2x = 45 => x = 22.5 Therefore, upstream speed of the boat = 14x = 315 km/hr Required time taken = 1260/315 = 4 hours
Which design pattern is most suitable for controlling access to a resource by limiting the number of clients that can use it concurrently?
The time complexity of binary search is:
In a binary tree, what is the maximum number of children a node can have?
Which type of AI is primarily used for adaptive mobile applications like virtual assistants?
Which of the following techniques is primarily used to address overfitting in machine learning models?
A data analysis algorithm requires processing data in a Last-In, First-Out (LIFO) manner. Which operation is used to get the most recently added element...
What type of relationship is represented by Aggregation in Object-Oriented Programming?
Consider the following sequence of stack operations:
PUSH(10) β PUSH(20) β PUSH(30) β POP() β PUSH(40) β POP() β POP()
What is...
Which of the following is true about triggers in a relational database?
Union-Find with path compression achieves nearly constant time because its complexity is: