Question
The average of 30 numbers is 72. If the average of the
first 12 numbers is 60 and the average of the last 19 numbers is 80, find the 12th number.Solution
ATQ,
Sum of all 30 numbers = 30 × 72 = 2160
Let the 12th number be ‘x’
Sum of first 12 numbers = 12 × 60 = 720
Sum of last 19 numbers = 19 × 80 = 1520
Now, 12th number is included in both groups:
720 + 1520 - x = 2160
=> 2240 - x = 2160
=> x = 2240 - 2160
=> x = 80
Which of the following is true about the Round Robin (RR) CPU scheduling algorithm?
Which of the following is NOT a characteristic of the Internet of Things (IoT)?
The amortized time for inserting into a dynamic array (like C++ vector) is:
In a binary tree, if the number of leaf nodes is L, what is the number of nodes with two children?
A directed acyclic graph (DAG) has 10 vertices and 15 edges. What is the maximum possible number of topological orderings?
Which algorithm guarantees the shortest path in a graph with negative weights but no negative cycles?
Which sorting algorithm has an average-case time complexity of O(n log n) and is known for its efficiency, often using a divide-and-conquer approach?
Which algorithm guarantees minimum spanning tree and will produce a different tree depending on tie-breaking?
Which of the following is substring of “IXAMBEE”?
Which of the following is considered the strongest type of encryption method in modern cyber security practices?