
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
Partitif, pronoms toniques, présent, négation, interrogation

Quiz
•
Professional Development
20 questions
Phase 2 Supplementary

Quiz
•
Professional Development
28 questions
Gry komputerowe (sprawdzian)

Quiz
•
1st Grade - Professio...
24 questions
Stray Kids Quiz

Quiz
•
KG - Professional Dev...
23 questions
PR _Lab _ Basic _ Quiz

Quiz
•
Professional Development
20 questions
UT1 Estructura atómica

Quiz
•
Professional Development
20 questions
Luyện tập phụ âm

Quiz
•
Professional Development
20 questions
Atajos del teclado

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade