Question
Pipe βAβ and pipe βBβ, together can fill 20% of
a tank in 5 hours while pipe βCβ takes 37 hours to empty it. Pipe βAβ and pipe βBβ were opened together. After 13 hours, pipe βCβ is also opened. Find the total time taken to fill the empty tank this way.Solution
Time taken by pipe βAβ and pipe βBβ, together to fill the tank = 5/0.20 = 25 hours Let the total capacity of tank = 925 units Efficiency of pipe (A + B) = 925/25 = 37 units/hour Efficiency of pipe βCβ = 925/37 = 25 units/hour Tank filled by pipe (A + B) in 13 hours = 13 Γ 37 = 481 units Time taken by all three pipes to fill the remaining tank = (925 β 481)/(37 β 25) = 37 hrs Total time taken = 13 + 37 = 50 hours
Which of these is used for resolving operator precedence in parsing?
Which of the following grammars is suitable for top-down parsing?
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...
Which of the following algorithms is specifically designed to minimize the average time a process spends waiting before execution in a CPU scheduling co...
What will be the output of the following C code?
#include
int main() {
int i;
for (i = 0; i < 5; i++) {
<...An S-attributed SDD (Syntax-Directed Definition) is one where:
A "shift-reduce" parser is a type of:
Multithreading an interactive program will increase responsiveness to the user by ___________
The process of grouping characters into meaningful units (tokens) is performed by the:
Which optimization is performed after intermediate code generation?