All mock tests are FREE till 31 December — register to save your progress

Match List I with List II
List IList II
A. Circular QueueI. Print Queue
B. Priority QueueII. CPU Scheduling
C. Double Ended QueueIII. Dijkstra algorithm
D. Simple QueueIV. Palindrome checking

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. A-II, B-III, C-IV, D-I

Explanation

A circular queue is used in round-robin CPU scheduling (A-II). A priority queue is used in Dijkstra's algorithm (B-III). A double-ended queue can check palindromes by removing from both ends (C-IV). A simple FIFO queue is used for print jobs (D-I).

More Data Structures and Algorithms questions