All Exams Test series for 1 year @ ₹349 only
Question

Match the 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

Choose the correct answer from the options given below:

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

A-IV, B-III, C-I, D-II

Each LIST-I item is associated with the structure or language that typically implements or uses it (Cormen; Aho, Sethi and Ullman).

A. Breadth First Search visits vertices level by level in first-in-first-out order, so it is implemented with a Queue → IV.

B. Depth First Search goes as deep as possible and backtracks in last-in-first-out order, so it uses a Stack (explicitly or through recursion) → III.

C. Prefix (Polish) notation places the operator before its operands, exactly as LISP writes expressions, e.g. (+ 2 3) → I.

D. Infix notation is what an in-order traversal of a Syntax tree (expression tree) produces, with the operator between its operands → II.

A-III, B-IV, C-I, D-II and A-III, B-IV, C-II, D-I both give BFS a stack and DFS a queue, the reverse of their FIFO/LIFO behaviour; A-IV, B-II, C-III, D-I links DFS to a syntax tree and prefix to a stack.

A-IV, B-III, C-I, D-II option is correct.

Was this answer helpful?
Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
297 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App