Search
Question: Which of the following is NOT a property of a binary heap?Options: Complete binary treeHea..
Question: What is the time complexity of building a binary heap from an array of n elements?Options:..
Question: In a max-heap, which of the following statements is true?Options: The parent is always les..
Question: What is the worst-case time complexity for deleting the minimum element from a binary min-..
Question: Which of the following operations can be performed in O(1) time on a priority queue implem..
Question: What is the time complexity of inserting an element into a binary heap?Options: O(1)O(log ..
Question: Which of the following is NOT a valid operation for a priority queue?Options: InsertDelete..
Question: In a max-heap, what is the relationship between the height of the heap and the number of e..
Question: If you have a priority queue implemented as a binary heap, what is the time complexity of ..
Question: What is the time complexity of building a heap from an array of n elements?Options: O(n)O(..
Question: Which data structure is commonly used to implement a priority queue?Options: ArrayLinked L..
Question: What is the worst-case time complexity for deleting the minimum element from a min-heap?Op..
Question: In a min-heap, which of the following is true about the parent and child nodes?Options: Pa..
Question: If vector A = 4i + 3j and vector B = 3i + 4j, what is the angle between A and B?Options: 4..
Question: What is the projection of vector A = 3i + 4j onto vector B = 1i + 2j?Options: 2.5345Correc..
Question: The scalar product of two vectors A and B is 12, and the angle between them is 60°. If |A|..
Question: If A = 6i + 8j and B = 3i + 4j, what is the value of A · B?Options: 50544852Correct Answer..
Question: If the scalar product of two vectors A and B is 15 and the magnitudes are |A| = 5 and |B| ..
Question: Find the scalar product of the vectors A = 7i - 2j + k and B = 3i + 4j - 5k.Options: -1012..
Question: If A = 4i + 3j and B = ai + bj, and A · B = 24, find the value of a + b if a = 2.Options: ..
Question: The scalar product of two unit vectors is 0.5. What is the angle between them?Options: 60°..
Question: If A = 5i + 2j + 3k and B = 1i - 4j + 2k, find A · B.Options: -1012Correct Answer: 0Soluti..
Question: If a = 3 and b = 5, what is the value of a² + b² - 2ab?Options: -1102Correct Answer: 1Solu..
Question: What is the value of (x + 2)² - (x² + 4)?Options: 042xx² + 2Correct Answer: 2xSolution: (x..
Question: What is the expansion of (2x - 3y)²?Options: 4x² - 9y²4x² - 12xy + 9y²4x² + 9y²4x² + 12xy ..
Question: If a = 1 and b = 4, what is the value of a³ + b³?Options: 6565125125Correct Answer: 65Solu..
Question: What is the value of (x + y + z)²?Options: x² + y² + z²x² + y² + z² + 2xy + 2yz + 2zxx² + ..
Question: What is the time complexity of removing the highest priority element from a priority queue..
Question: Which of the following is NOT a typical application of heaps?Options: Heap sortImplementin..
Question: In a max-heap, which of the following is true about the root node?Options: It is the small..