Search
Question: What is the primary advantage of using a priority queue over a regular queue?Options: Fast..
Question: Which of the following algorithms uses a priority queue to find the shortest path in a gra..
Question: What is the time complexity of inserting an element into a binary heap used as a priority ..
Question: In a priority queue, how is the priority of elements typically determined?Options: By thei..
Question: Which data structure is typically used to implement a priority queue?Options: ArrayLinked ..
Question: What is a common application of a priority queue?Options: Implementing a stackManaging tas..
Question: A data set has a mean of 50 and a variance of 25. What is the standard deviation? (2021)Op..
Question: If the data set is: 5, 7, 9, 11, what is the variance? (2022)Options: 2345Correct Answer: ..
Question: A box contains 10 balls, of which 4 are white and 6 are black. If one ball is drawn at ran..
Question: If a die is rolled, what is the probability of rolling an even number?Options: 1/21/31/62/..
Question: In a class, the number of languages spoken by students are: 1, 2, 2, 3, 3, 4, 4, 4. What i..
Question: The following scores were obtained in a quiz: 10, 10, 20, 20, 20, 30, 30, 40. What is the ..
Question: The following data shows the number of pets owned by families: 0, 1, 1, 2, 2, 2, 3, 4. Wha..
Question: In a group of friends, the number of movies watched last month are: 1, 1, 2, 2, 3, 3, 3, 4..
Question: The following numbers represent the number of hours studied by students: 5, 6, 6, 7, 8, 8,..
Question: A class has the following scores in a test: 56, 78, 78, 82, 82, 82, 90, 91. What is the mo..
Question: The average of three consecutive integers is 20. What are the integers?Options: 19, 20, 21..
Question: The mean of a set of numbers is 25. If one number is increased by 5, how does the mean cha..
Question: If the average of 10 numbers is 50, what is the sum of these numbers?Options: 500600550450..
Question: The mean of 8, 12, 16, and x is 14. Find the value of x.Options: 10121416Correct Answer: 1..
Question: The average of five numbers is 20. If one number is removed, the average becomes 18. What ..
Question: A student scores 70, 80, and 90 in three subjects. What is the average score?Options: 8085..
Question: The median of the following data set: 3, 7, 9, 15, 20 is?Options: 791520Correct Answer: 9S..
Question: In a class of 30 students, 18 are boys. What is the probability that a randomly selected s..
Question: What is the trace of a 2x2 matrix A = [[3, 2], [1, 4]]? (2022)Options: 5678Correct Answer:..
Question: If a matrix is diagonal, which of the following must be true? (2020)Options: All elements ..
Question: What is the result of performing a heap sort on an array?Options: An unsorted arrayA parti..
Question: Which of the following is a characteristic of a binary heap?Options: Complete binary treeB..
Question: What is the space complexity of a binary heap storing n elements?Options: O(1)O(n)O(log n)..
Question: Which algorithm uses a priority queue to find the shortest path in a graph?Options: Dijkst..