Question
A, B and C alone can complete a work in 30, 60 and 45
days respectively. All of them started working together but after 3 days from start A left the job and after 7 more days B also left the job. So for how many days did C work?Solution
Let the total work = 180 units (LCM of 30, 60 and 45) Amount of work done by A alone in one day = 180/30 = 6 units Amount of work done by B alone in one day = 180/60 = 3 units Amount of work done by C alone in one day = 180/45 = 4 units Amount of work done by A, B and C together in 3 days = 3 × (6 + 3 + 4) = 39 units Amount of work done by B and C together in 7 days = 7 × (3 + 4) = 49 units Remaining work = 180 – 39 – 49 = 92 units So, the time taken by C alone to complete 92 units work = 92/4 = 23 days So, C worked for 23 + 3 + 7 = 33 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?Β Β