Question
A train, 'A,' which is 180 meters long, takes 14 seconds to
cross a 100-meter-long bridge. If the lengths of trains 'A' and 'B' are in a ratio of 6:5, and train 'B' travels at a speed that is 25% faster than train 'A,' how much time will train 'B' take to cross the same bridge?Solution
Let the speed of 'A' be 'x' m/sec.
ATQ,
{(180 + 100) /x} = 14
(280/x) = 14
So, 'x' = 20
So, speed of 'B' = 20 X 1.25 = 25 m/sec
Length of train 'B' = 180 X (5/6) = 150 metres
Required time = (150 + 100) /25 = 10 seconds
When debugging a recursive function that processes a `Tree` data structure, what is a common strategy to identify infinite recursion or incorrect base c...
Which of these ensures referential integrity?
Deadlock occurs when:
Consider the following pseudo-code:Â
 ```
  function calculate(arr):
    sum = 0
    for i from 0 to l...
Which OOP concept directly influences control flow by allowing different implementations of a method to be called based on the type of the object at run...
Consider the following Java-like pseudo-code for inserting a node into a Binary Search Tree (BST):
  ```java
  class Node {
Which of the following is a type of phishing attack?
Wait-Die and Wound-Wait are strategies for:
You have a Python list of fruits and want to extract a specific sub-list using slicing.
 Complete the missing part of the code to obtain the sub...
Which of the following operators is used to compare a value to a list of literal values that have been specified?