Question
A, B, and C together can do a work alone in 13 days, 52
days, and 91 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 13, 52 and 91 = 364 units Unit per day of A = 364/13 = 28 Unit per day of B = 364/52 = 7 Unit per day of C = 364/91 = 4 Units of work done by A in 3 days = 28 × 3 = 84 units Units of work done by B in 8 days = 7 × 8 = 56 units Remaining work = 364 – (84 + 56) = 224 units So, C has worked for 224/4 = 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...