
Data Structures Quiz

Quiz
•
Other
•
Professional Development
•
Hard
Viswathika K
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used for implementing recursion?
Stack
Queue
List
Array
Answer explanation
Stack is the data structure used for implementing recursion. This is because each recursive call needs to remember the return address and local variables of the calling function.
These are pushed onto the call stack during function calls and popped off when the function returns, maintaining the correct execution order (LIFO – Last In, First Out).
Other structures like queues or arrays do not support this kind of execution flow naturally.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the postfix expression 6 3 2 4 + - *?
74
-18
22
40
Answer explanation
The given postfix expression is: 6 3 2 4 + – *
Step 1: Read 6 → Push to stack
Stack: [6]
Step 2: Read 3 → Push to stack
Stack: [6, 3]
Step 3: Read 2 → Push to stack
Stack: [6, 3, 2]
Step 4: Read 4 → Push to stack
Stack: [6, 3, 2, 4]
Step 5: Read + → Pop 4 and 2 → compute (2 + 4 = 6), push result
Stack: [6, 3, 6]
Step 6: Read – → Pop 6 and 3 → compute (3 – 6 = -3), push result
Stack: [6, -3]
Step 7: Read → Pop -3 and 6 → compute (6 -3 = -18), push result
Stack: [-18]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following points is/are not true about Linked List data structure when it is compared with an array?
Random access is not allowed in a typical implementation of Linked Lists
Access of elements in linked list takes less time than compared to arrays
Arrays have better cache locality that can make them better in terms of performance
It is easy to insert and delete elements in Linked List
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following application makes use of a circular linked list?
Recursive function calls
Undo operation in a text editor
Implement Hash Tables
Allocating CPU to resources
Answer explanation
Circular linked lists are well-suited for applications where the data needs to be cycled through repeatedly, such as in CPU scheduling.
In operating systems, Round Robin scheduling uses a circular linked list to allocate CPU time slices to processes in a repeating cycle, moving from one process to the next and looping back to the beginning after reaching the end.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is typically used to implement a hash table?
Linked list
Array
Binary Tree
Stack
Answer explanation
A hash table is typically implemented using an array because the hash function maps keys directly to indices in the array. This allows for efficient access and retrieval operations with average constant time complexity, O(1).
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which collision resolution technique involves maintaining a linked list of collided keys?
Linear probing
Quadratic probing
Chaining
Double hashing
Answer explanation
Chaining is a method where each bucket of the hash table holds a linked list. When a collision occurs (i.e., two keys hash to the same index), the new key is added to the list. This approach allows the hash table to handle collisions without affecting the performance of other entries.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following symbol table implementations is best suited if access time is to be minimum?
Linear list
Search tree
Hash Table
Self-organization list
Answer explanation
A hash table provides the fastest access time for symbol table implementations due to its constant time complexity, O(1), for searching, insertion, and deletion operations. This is achieved by using a hash function that maps keys to array indices.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Electrical Hand Tools

Quiz
•
Professional Development
20 questions
Spirit: Stallion of the Cimarron

Quiz
•
KG - Professional Dev...
21 questions
scratch

Quiz
•
KG - Professional Dev...
20 questions
Stockmann AHM 28th May'25 - Quiz

Quiz
•
Professional Development
22 questions
Career Paddies Quiz

Quiz
•
Professional Development
20 questions
Phase 2 Supplementary

Quiz
•
Professional Development
28 questions
Gry komputerowe (sprawdzian)

Quiz
•
1st Grade - Professio...
20 questions
Rivew Manajemen Perjalanan & Water Rescue

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade