Question
In a class of 40 students, the ratio of boys and girls
is 3 : 2 and the average marks scored by boys is 42 and by girls is 46. Then the average marks scored by the whole class is:Solution
1. Let the number of boys be 3x and girls be 2x, where 3x + 2x = 40 ⇒ x = 8. 2. Then, boys = 24 and girls = 16. 3. Total marks for boys = 24 × 42 = 1008. 4. Total marks for girls = 16 × 46 = 736. 5. Average marks for the class:
KMP improves naive string matching by:
Which of the following is NOT a characteristic of a minimum spanning tree (MST) in a connected, undirected graph?
Which of the following is a key principle of the SOLID design principles that focuses on ensuring a class has only one reason to change?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5
Which of the following statements accurately describes the function of a Gantt Chart in project management?
Which design pattern is most suitable for controlling access to a resource by limiting the number of clients that can use it concurrently?
In networking, what is the primary purpose of subnetting?
What will be the output of the following queue implementation using two stacks?
class QueueUsingStacks { Stacks1 = new Stack <>... Which SOLID principle emphasizes that a class should have only one reason to change?
Which sorting algorithm is considered the most efficient for large datasets with no additional memory constraints?