Which of the following is NOT a linear data structure?
Array
Linked List
Stack
Tree
Correct answer: Tree
A tree is a non-linear data structure.
True or False: A queue follows the Last In First Out (LIFO) principle.
Correct answer: False
A queue follows the First In First Out (FIFO) principle.
What is the primary use of a stack data structure? Fill in the blank: To store data in a _____ manner.
Accepted answer: LIFO
A stack stores data in a Last In First Out (LIFO) manner.
Which data structure uses nodes connected to multiple child nodes?
Correct answer: Tree
This describes a tree data structure.
True or False: A hash table allows for efficient data retrieval and storage based on keys.
Correct answer: True
Hash tables use keys to efficiently store and retrieve data.