All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2024

Match List I with List II
List IList II
A. Breadth First SearchI. LISP
B. Depth First SearchII. Syntax tree
C. PrefixIII. Stack
D. InfixIV. Queue

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

Show answer & explanation

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

Explanation

BFS uses a queue (A-IV), DFS uses a stack (B-III), LISP uses prefix notation (C-I), and an in-order walk of a syntax tree gives the infix expression (D-II).

More Data Structures and Algorithms questions