Question
Pipe ‘M’ and pipe ‘N’ can fill a tank alone in
20 hours and 40 hours, respectively. If both pipes are opened together and pipe ‘M’ is closed after 5 hours, then find the time taken by pipe ‘N’ to fill the remaining portion alone.Solution
Let the capacity of the tank be 40 units (LCM of 20 and 40) Efficiency of pipe ‘M’ = 40 ÷ 20 = 2 unit/hour
Efficiency of pipe ‘N’ = 40 ÷ 40 = 1 unit/hour Let pipe ‘N’ fill the remaining portion in x hours. ATQ, 5 × (2 + 1) + 1x = 40 Or, 15 + x = 40 Or, x = 25 Therefore, required time taken = 25 hours
Which attack can be mitigated using DNSSEC (Domain Name System Security Extensions)?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5Â Â Â Â Â Â Â Â Â Â Â Â Â Â
Â
What is the primary purpose of a B+ Tree in a database management system?
What is the primary purpose of an abstract class?
If a stack is implemented using a fixed-size array, what is a significant disadvantage when the stack grows beyond its initial capacity?
What is "rubber duck debugging"?
Consider the following Python code for calculating the length of the LCS:
def lcs_length(text1, text2):
  m = len(text1)
  ...
Time complexity of heap sort is:
A code flow involves processing a stream of data where elements are added to the front and removed from the front. Which type of linked list would provi...
Which of the following best describes Abstraction in Object-Oriented Programming (OOP)?