Question
What is the difference between the sum of the number of
red pens and the number of black pens sold by shopkeeper D and the number of black pens sold by shopkeeper A? Answer the questions based on the information given below: The table shows the sum of the number of red pens and blue pens sold, number of blue pens sold as percentage of number of red pens sold and the ratio of number of blue pens sold to the number of black pens sold respectively by 4 different shopkeepers.Solution
For shopkeeper A, Let the number of red pens sold be ‘x’. Then, the number of blue pens sold = 55% of x = 0.55x Now according to question, => x + 0.55x = 310 => x = 200 Number of red pens sold = 200 Number of blue pens sold = 0.55x = 110 Number of black pens sold = 110 × (9/11) = 90 Similarly, we can find the required data for the other shopkeeper too. Required difference = (160 + 150) – 90 = 220
The "load factor" of a hash table is a critical metric. What does it represent?
Predict the output
list1 = ['physics', 'chemistry', 1997, 2000]
list2 = [1, 2, 3, 4, 5, 6, 7 ]
print "list1[0]: ", list1[0]Â Â Â ...
Which of the following is a default connector for Shielded twisted pair?
Consider a singly linked list: 1 -> 2 -> 3 -> 4 -> None. If a delete_node(head, 3) function is called (which deletes the node with value 3), what will b...
Which type of inheritance in C++ allows a class to inherit from more than one base class?
Which of these is a key characteristic of SaaS (Software as a Service)?
Which of the following best explains why communication latency is generally higher in microservices compared to monolithic architectures?Â
A C function attempts to find a substring.
#include
#include
char* find_substring(char* haystack, char* needle...
In a common backtracking approach to generate permutations of a string, elements are swapped to explore different arrangements. Complete the line that s...
When a large number of analog signal is to be converted to digital form, an analog multiplexer is used. The best suites analog to digital converter for ...