Question
A, B and C invested in partnership. A invest Rs.12000
for 5 months, B invests Rs.8000 for 3 months and C invests Rs.15000 for 2 months. C is working partner so he will get 5% extra of total profit. Find profit share of C if total profit at the end of the year is Rs.8200.Solution
Ratio of profit share of A, B and C = 12000 x 5 + 8000 x 3 + 15000 x 2 = 10:4:5 Profit share of C out of total profit = [8200 x (5/100)] + [8200 x (95/100) x (5/19)] = Rs.2460
Which algorithm is used for computing Max-Flow in a network?
Given the following code snippet, which operation is performed on the binary tree to produce the output: 4, 2, 5, 1, 3 ?
class Node {Â Â Â Â Â in...Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
Tarjan’s algorithm is used to find:
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
Time complexity of heap sort is:
Which of the following is true about triggers in a relational database?
What is the primary purpose of an abstract class?