Question
A starts business with Rs.5000 and after 7 months, B
joins with A as his partner. After a year, the profit divided in the 6:7. What is B’s contribution in the capital?Solution
Let B’s capital be Rs x. Then, according to the question, ⇒  (5000 x 12)/5x = 6/7 ⇒  x = (5000 x 12 x 7)/(5 x 6) ⇒  x = Rs.14,000
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)?