Question
Quantity I: A shopkeeper bought 300 pens for Rs 1200. He
wanted to sell them at a profit so that he got 36 pens for free. At what profit percent should he sell them? Quantity II: 12% In the question, two quantities I and II are given. You have to solve both the quantities to establish the correct relation between Quantity I and Quantity II and choose the correct option.Solution
C.P of 300 pens = Rs.1200 Profit = C.P of 36 pens Profit % = (Profit/CP) × 100 C.P of 1 pen = 1200/300 = Rs 4 C.P of 36 pens = 36 × 4 = Rs 144 Required profit is Rs 144 on Rs 1200 ∴ Profit% = (144/1200) × 100 = 12% Quantity II: 12% Hence, Quantity I = Quantity II
Complete the Java code to replace all occurrences of a specific word (case-insensitive) in a string.
public class RegexReplacer {
  pu...
What is the typical time complexity for removing the highest-priority element (using poll()) from a java.util.PriorityQueue with N elements?
 �...
What is the defining property of a Binary Search Tree (BST)?
Router is responsible for packet forwarding, including routing. Router works at which layer?
What is a key characteristic regarding negative edge weights in the Floyd-Warshall algorithm?
Which of the following is a primary advantage of a microservices architecture compared to a monolithic architecture?Â
Which of the following accurately describes Type 1 hypervisor virtualization?Â
In a multithreaded environment, which of the following synchronization mechanisms is used to prevent race conditions?Â
The precision is composed of which of the following two characteristics?
Dynamic Programming is typically used for problems that exhibit which two main properties?