Question
Two trains of lengths 280 meters and 320 meters are
running in the same direction at speeds of 54 km/h and 72 km/h, respectively. How much time will the faster train take to completely cross the slower train?Solution
Relative speed = 72 km/h - 54 km/h = 18 km/h = (18 × 1000) / 3600 = 5 m/s. Total length to be covered = 280 + 320 = 600 meters. Time taken = Distance / Speed = 600 / 5 = 120 seconds. Correct option: D
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?