GATE DA 2024 Q16: Match FIFO, lookup and LIFO with data structures
- Programming, Data Structures and Algorithms
- 1 mark
- MCQ
- −1/3 if wrong
Question
Match the items in Column 1 with the items in Column 2 in the following table:
| Column 1 | Column 2 |
|---|---|
| (p) First In First Out | (i) Stacks |
| (q) Lookup Operation | (ii) Queues |
| (r) Last In First Out | (iii) Hash Tables |
Try it: multiple choice: exactly one correct option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation
Answer: A (official GATE 2024 final answer key)
Concept used: Access order of basic data structures.
First step: Queues are FIFO, stacks are LIFO, and hash tables are built for fast lookup.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2024 DA question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key
More Programming, Data Structures and Algorithms PYQs
- 2026 · Q15Expected-time recurrence for randomised-input quicksort
- 2026 · Q16Python mutable default argument output
- 2026 · Q25Binary tree from preorder and inorder traversals
- 2026 · Q31Worst-case comparisons in binary search of 1000 elements
- 2026 · Q39Number of calls made by a Fibonacci-like recursion
- 2026 · Q40Reachability in a graph and its reverse