Question
Two pipes, A and B, together can fill a tank in 24
minutes. Both the pipes were opened together, but pipe A, which can fill the tank in 40 minutes, was closed 30 minutes before the tank got filled. In how many minutes did the tank get filled?Solution
Pipes A and B, together can fill a tank in 24 minutes Pipe A can fill the tank in 40 minutes Let the total capacity of tank be 120 (LCM of 24 and 40) (A + B)'s efficency = 120/24 = 5 A's efficency = 120/40 = 3  B's efficiency = 5 - 3 = 2 Now, Tank filled by B when A is closed = 30 × 2 = 60 so A and B filled the tank before A was closed = 60/5 = 12 min therefore, tank can be filled in 30 + 12 = 42 min
What is false about linked list?
Which layer of the TCP/IP model is responsible for IP addressing and routing?
Which hazard occurs when there is a conflict in accessing a shared resource, such as a register file or an ALU, in an instruction pipeline?
Which consensus mechanism is used by Bitcoin, the first blockchain-based cryptocurrency?
In dynamic programming, what does "optimal substructure" mean?
What is a "token" in lexical analysis?
Which sorting algorithm is known for its best-case time complexity of O(n) when the input is already partially sorted?
Which data visualization technique is commonly used to represent the frequency distribution of a large dataset?
An XML document is a string of ____.
Which of the following algorithm is most sensitive to outliers?