Question
A, B and C alone can complete a work in 20, 30 and 25
days respectively. All of them started working together but after 4 days from start A left the job and after 5 more days B also left the job. So for how many days did C work?Solution
Let the total work = 300 units (LCM of 20, 30 and 25) Amount of work done by A alone in one day = 300/20 = 15 units Amount of work done by B alone in one day = 300/30 = 10 units Amount of work done by C alone in one day = 300/25 = 12 units Amount of work done by A, B and C together in 4 days = 4 Γ (15 + 10 + 12) = 148 units Amount of work done by B and C together in 5 days = 5 Γ (10 + 12) = 110 units Remaining work = 300 β 148 β 110 = 42 units So, the time taken by C alone to complete 42 units work = 42/12 = 3.5 days So, C worked for 3.5 + 4 + 5 = 12.5 days
Which service model offers virtual machines and storage resources?
A C function pop(Stack* s) is designed to remove and return the top element from a stack.
#include
#include
#d...
Which of the following scenarios best demonstrates a potential use of candidate keys in a relational database?Β
Using a bottom-up dynamic programming approach to calculate the 6th Fibonacci number (F(0)=0, F(1)=1), what are the values stored in the DP table F at i...
Which design pattern would be most appropriate to ensure that only one instance of a class exists and provides a global point of access to that instance...
The order of convergence of Newton-Raphson method is:
Consider the following Python code:
s = "PythonProgramming"
part1 = s[2:6] # Corrected line
part2 = s[-5:]
print(part1 + par...
Which of the following network topologies is most resilient to node failures?Β
Round robin scheduling is essentially the preemptive version of
In HTTP request methods, which of the following methods is not idempotent ?Β