Question
A, B, and C together can do a work alone in 14 days, 56
days, and 70 days respectively. A alone starts the work and work for 3 days and leaves the work, then B alone does the work for 8 days and leaves the work. If remaining work is done by C alone then for how many days has C worked?Solution
Total work = LCM of 15, 45 and 90 = 90 units Unit per day of A = 90/15 = 6 Unit per day of B = 90/45 = 2 Unit per day of C = 90/90 = 1 Units of work done by A in 3 days = 6 × 3 = 18 units Units of work done by B in 8 days = 8 × 2 = 16 units Remaining work = 90 – (18 + 16) = 56 units So, C has worked for 56/1 = 56 days
Which is best fit for blank space 15?
Consider the following C code:
#include
#include
int main() {
  char* text = "The quick brown fox j...
In public-private key encryption , which of the following is true regarding the private key ?
Consider a graph with vertices A, B, C, D and edges with weights: (A,B)=1, (A,C)=7, (A,D)=10, (B,C)=3, (C,D)=4, (D,E)=2. (Assume E is another vertex). I...
In a common backtracking approach to generate permutations of a string, elements are swapped to explore different arrangements. Complete the line that s...
What is the primary disadvantage of using an array as a data structure?
The transfer function of the system below is ___________
Which algorithm is a greedy algorithm used to find the Minimum Spanning Tree (MST) of a graph by repeatedly adding the smallest weight edge that connect...
Consider the following code snippet (Java-like):
  class Animal {
    public void makeSound() {
      Syste...
Given a set of activities with start and finish times: (1,4), (3,5), (0,6), (5,7), (3,9), (5,9), (6,10), (8,11), (8,12), (2,14), (12,16). If you apply t...