Question
'P', 'Q', and 'R' can
individually complete a task in 20, 24, and 30 days, respectively. They all started working together, but 'P' stopped after 4 days. Additionally, 'R' stopped working 3 days prior to the task's completion. How many days did it take to finish the task?Solution
ATQ,
Let the total task = 120 units (LCM of 20, 24 and 30) Amount of task done by P alone in one day = 120/20 = 6 units Amount of taskĀ done by Q alone in one day = 120/24 = 5 units Amount of taskĀ done by R alone in one day = 120/30 = 4 units Amount of taskĀ done by all of them together in 4 days = 4 Ć (6 + 5 + 4) = 60 units Amount of taskĀ done by Q alone in 3 days = 3 Ć 5 = 15 units Amount of taskĀ done by Q and R together in middle = 120 ā 60 ā 15 = 45 units Time taken by Q and R together to complete 45 units taskĀ = 45/ (5 + 4) = 45/9 = 5 units So total time taken to complete the task = 5 + 4 + 3 = 12 days
Which of the following describes the difference between Windows and Unix/Linux file systems?Ā Ā
In Data Communication, what protocol is used to ensure reliable transmission of data over a network?
In Data Structures, which of the following algorithms uses the Divide and Conquer strategy?
What is the time complexity of inserting an element in a heap?
Which data structure is used in BFS (Breadth-First Search)?
Which of the following is true for the time complexity of binary search?
Depth-First Search (DFS) typically uses which data structure implicitly or explicitly?
In a relational database, what is the purpose of a foreign key?
Which application layer protocol is used to retrieve emails from a remote server?
Which page replacement algorithm replaces the page that will not be used for the longest period of time in the future?Ā Ā