Question
A seller purchased certain number of watches at prices
ranging from Rs. 1350 to Rs. 1650 and sold them at price ranging from Rs. 1500 to Rs. 1800. Find the maximum profit that can be earned by selling 12 such watches.Solution
Maximum profit will be earned when the cost price is least and selling price is maximum. Therefore, least cost price of 12 watches = 12 × 1350 = Rs. 16200 Maximum selling price of 12 watches = 12 × 1800 = Rs. 21600 Therefore, maximum profit that can be earned = 21600– 16200 = Rs. 5400
A software development team is implementing a sorting function for a large dataset in their project. They decide to use the quick sort algorithm to opti...
The Divide and Conquer paradigm involves three main steps. What are they?
Complete the Python function to return the last n characters of a string s. If n is greater than the string's length, return the entire string.
d...
Which access specifier makes members accessible only within the class itself?
Which of the following is the primary characteristic of serverless computing in cloud platforms?Â
Consider the following Python code for calculating Fibonacci numbers using memoization:
  memo = {}
  def fib_memo(n):
 �...
What is a key characteristic of a "full binary tree"?
Consider the following statement regarding Kelvin Double Bridge.
Statement (1): It is used for measuring resistance in the range of few ohms to s...
If signal-to-interference ratio is 5 dB, signal power is 8 dB, then what is the interference power in dB?
The _____________ deals with the coordination of the data transfer between end systems and hosts.