Question
Pawan and Bhanu started a
business with their investments in the ratio 5:7. After 6 months, Raju joined the business with an investment of Rs. 3000, and at the same time, Pawan increased his investment by Rs. 900. At the end of one year, the profit was distributed among Pawan, Bhanu, and Raju in the ratio 13:14:10. Find the difference between the initial investments of Pawan and Bhanu.Solution
ATQ, Let initial investment of Pawan and Bhanu is 5p and 7p respectively. Ratio of profit of Pawan, Bhanu, and Raju = [5p × 6 + (5p + 900) × 6]: [7p × 12]: [3000 × 6] = 13: 14: 10 [60p + 5400]: [84p]: [18000] = 13: 14: 10 [84p]: [18000] = 14: 10 p = 300 Difference between initial investment of Pawan and Bhanu = 7p – 5p = 2p = Rs.600
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...