Question
A boat covers a distance of 57 km upstream in 9.5
hours. If the boat's speed in still water had been doubled, it would have taken only 2 hours to cover 60 km upstream. What is the speed of the current?Solution
Let the speed of the boat in still water and the speed of the current be ‘x’ km/hr and ‘y’ km/hr, respectively According to the question, (x – y) = 57/9.5 = 6….. (1) And, 2x – y = 60/2 = 30…. (2) On solving equation (1) and (2), we get Speed of the current = y = 18 km/hr
Which of the following integrity constraints ensures that every non-null foreign key value must reference an existing primary key value in another tabl...
Hashing is used for:
The amortized cost of appending an element at the end of a dynamic array is:
Consider the following stack operations. What will be the content of the stack after executing all the operations?
Stackstack = new Stack... Which of the following is NOT among the OWASP Top 10 Web Security Risks?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5
In asymmetric encryption, which of the following statements is correct?
Which algorithm constructs a suffix tree in linear time?
What is the primary purpose of a B+ Tree in a database management system?
Which sorting algorithm has O(n log n) average case?