Question
Ashish and Anil can do a piece of work in 10 days and 15
days respectively. Ashish completed 40% of the work. Find the time taken by Anil to complete the remaining work.Solution
Let the total work be (LCM of 10 and 15) = 30 units Efficiency of Anil = 30/15 = 2 units/day Remaining work = 30 x 0.6 = 18 units Time taken by Anil to complete the remaining work = 18/2 = 9 days
What is the primary objective of the Producer-Consumer problem in concurrent programming?
Using a bottom-up dynamic programming approach to calculate the 6th Fibonacci number (F(0)=0, F(1)=1), what are the values stored in the DP table F at i...
Which access specifier allows data to be accessed only within the class?
Which is computer object code?
Which model uses probability of word occurrence based on previous n-1 words?
In a perfectly balanced Binary Search Tree with N nodes, what is the worst-case time complexity for searching for an element?
Python's built-in dict (dictionary) data structure is typically implemented using a hash table. What is the average-case time complexity for get, set, a...
Which of the following language is used for specifying style sheets for XML documents?Â
In C++, what mechanism is primarily used to achieve runtime polymorphism?
Which of the following uses Latent Dirichlet Allocation (LDA)?