Question
If total number of Milton water bottles sold by shop B
is 20% of the number of total water bottles sold by shop (B+C), then find the difference between the number of Milton water bottles sold by shop B and number of Cello water bottles sold by shop A. Read the following information below and the answer the given questions: The pie chart given below shows the number of water bottles (Cello + Milton) sold by five different shops (A, B, C, D and E). Note: (i) Number of Cello water bottles sold is one-fourth of the number of Milton water bottles sold by each shop. (ii) Total number of water bottles sold by shop (B + C) is 250.Solution
Percentage of total number of water bottles sold by shop B and C = [100 – (20 + 30 + 25)]% = 25% => 25% ----- 250 => 100% ------ 1000 Total number of water bottles sold by all the shops together = 1000 Number of water bottles sold by shop D = 30% of 1000 = 300 Let number of Milton water bottles sold by shop D be x. Number of Cello water bottles sold by shop D = x/4 According to the question, => x + x/4 = 300 => 5x = 1200 => x = 240 Milton water bottles sold by shop D = 240 Cello water bottles sold by shop D = 240/4 = 60 Similarly, Number of Milton water bottles sold by shop B = (20/100) × 250 = 50 Required difference = 50 – 40 = 10
An algorithm has a time complexity of O(N² ). If the input size N doubles, how does the execution time approximately change?
Consider the following C code snippet:
  #include
  int factorial(int n) {
    if (n == 0) {
  ...
Which of the following best describes the "Ready" state of a process?
Which OOP principle focuses on showing only essential information and hiding the complex implementation details from the user?
Consider the following Python code:
text = "banana"
char_to_find = 'a'
count = 0
for i in range(len(text)):
  if ...
What does Cyclomatic Complexity measure in software engineering?
Given a set of activities with start and finish times: (1,4), (3,5), (0,6), (5,7), (3,9), (5,9), (6,10), (8,11), (8,12), (2,14), (12,16). If you apply t...
What is the time complexity of a Binary Search algorithm on a sorted array of 'n' elements?
Which statement is FALSE regarding DRAM memory?
What is the primary goal of concurrent programming in software development?