Question
The price of sugar is increased by 25%. By what
percentage must a household reduce its consumption so as not to increase the expenditure on sugar?Solution
ATQ, Formula: Reduction % = [R / (100 + R)] × 100 Here R = 25. Reduction = [25 / (100 + 25)] × 100 = (25 / 125) × 100 = (1/5) × 100 = 20%
State True or False
Kernel level thread cannot share the code segment.
 A deadlock situation can be completely prevented if which of the following conditions is eliminated?
Complete the Python function to find the starting index of the first occurrence of sub in main_string. Return -1 if not found.
def find_substring...
When performing matrix multiplication (C = A \times B) in a code flow, if matrix A is m \times n and matrix B is n \times p, what is the time complexity...
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...
A Java method attempts to extract a substring.
public class StringProcessor {
  public String extractPart(String text, int start, int ...
What is the output of the following Java code?
  public class LoopTest {
    public static void main(String[] args) {
�...
Which cloud deployment model is suitable for government organizations with strict regulations?
Which of the following is a NoSQL database commonly used in Big Data?
Which of the following is NOT one of the four necessary conditions for a deadlock to occur?