Question
If the number of coins in purse A and purse B is in the
ratio 4:5, and the number of coins in purse C to purse D is in the ratio 3:4. Additionally, the number of coins in purse D is 4 less than the number of coins in purse B, and the average number of coins in all the purses together is 87, then determine the number of coins in purse A.Solution
ATQ, Number of coins in A = 4a Number of coins in B = 5a Number of coins in D = 5a – 4 Number of coins in C = ¾ × (5a – 4) (4a + 5a + 5a – 4 + (15a – 12)/4)/4 = 87 14a + (15a/4) = 87 ×( 4 + 7) 71a = 1420 a = 20 Number of Coins in A = 20 × 4 = 80
Consider the following C code snippet:
  #include
  int factorial(int n) {
    if (n == 0) {
  ...
Which of the following data structures is most suitable for implementing a priority queue with efficient insertion and deletion operations based on prio...
What is the primary function of a router in a network?Â
What does the term "serializable" refer to in the context of database transactions?
Complete the is_empty method for a stack implemented using a Python list.
class Stack:
  def __init__(self):
    self._...
Which of the following is NOT one of the four necessary conditions for a deadlock to occur?
What are the different modes of fiber optic communication?
What does the Hamming distance measure in the context of information theory and coding?
In a virtual memory system, which of the following techniques is used to maintain the illusion that each process has its own dedicated memory space?Â
Which of the following operation is performed by Domain Name Server (DNS)?