Question
What is the length of the
train? Statement I: The train takes 35 seconds to cross a platform that is 725 meters long and 6 seconds to pass a stationary tree. Statement II: The train takes 42 seconds to cross a platform that is 900 meters long and 15 seconds to pass through a tunnel that is 225 meters long. The question consists of two statements numbered "l and II "given below it. You have to decide whether the data provided in the statements are sufficient to answer the question.Solution
ATQ, Statement I: Let, length of train be ‘L’ m So, (L + 725)/35 = L/6 L + 725 = 35L/6 29L/6 = 725, L = 150 m Statement I alone is sufficient to answer the question. Statement II: Let, length of train be ‘L’ m So, (L + 225)/15 = (L + 900)/42 42L + 9450 = 15L + 13500 27L = 4050, L = 150 Statement II alone is sufficient to answer the question
Python's built-in dict (dictionary) data structure is typically implemented using a hash table. What is the average-case time complexity for get, set, a...
Which CPU scheduling algorithm is known for minimizing the average waiting time for a set of processes?Â
 How many participating entities are there in an n-ary relationship where n=5?
Which type of polymorphism in Java is achieved through method overloading?
Consider the following Python code:
  def mystery(a, b):
    if a == 0:
      return b
    e...
A software development team is implementing a sorting function for a large dataset in their project. They decide to use the quick sort algorithm to opti...
The following Python code intends to enforce that all `Worker` subclasses implement a `work` method. However, it's not working as expected.
class...
Which of the following is a challenge in machine translation?
The following C++ code has a common inheritance-related issue. How can it be debugged to ensure the derived class constructor properly initializes the b...
What is the output for the below code
MyList = ["New York", "London", "Paris", "New Delhi"] MyFile=open('output.txt','w') Â for element in MyLis...