Question
A shopkeeper sold three types of items A, B and C. He
sold items A and B in the ratio of 16:21, while sold items C and A in the ratio of  5:8. The price of each item C is Rs. 16 and each item B is Rs. 9. The total revenue earned from selling all the item C is Rs. 145 less than the total revenue earned from selling all the items B. Find the number of items A sold by the shopkeeper.Solution
Let, number of item A and number of item B sold by shopkeeper be ‘16a’ and ‘21a, respectively. Number of item C sold by shopkeeper = (5/8) × 16a = 10a So, 21a × 9 – 10a × 16 = 145 189a – 160a = 145 29a = 145 a = 5 Number of item A sold by shopkeeper = 16a = 80
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
Which traversal method visits the root node first in trees?
Which algorithm is used for computing Max-Flow in a network?
In the context of Management Information Systems (MIS), which of the following best describes the role of a decision support system (DSS)?
Which of the following is a primary feature of Mobile Computing?
Time complexity of heap sort is:
Which of the following traversal methods is used to visit nodes in the order "left child, root, right child" in a binary tree?
Which of the following best describes the function of the Control Unit (CU) in the CPU?
Which of the following statements about parameter passing in Python is TRUE?
Priority Queue allows access to elements based on priority rather than order.