Question
Monthly income of A is Rs. 10000 and he saves 32% of his
monthly income. If monthly expenditure of A is decreased by 35% while his monthly savings is increased by 35% then find the increase or decrease in his monthly income.Solution
Monthly savings and expenditure of A initially is Rs. 3200 and Rs. 6800, respectively. Monthly expenditure of A now = 0.65 × 6800 = Rs. 4420 Monthly savings of A now = 1.35 × 3200 = Rs. 4320 Monthly income of A now = 4420 + 4320 = Rs. 8740 Desired percentage decrease = [(10000 – 8740)/10000] × 100 = 12.6%
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?