A queue data structure follows which order of access?
✓ Correct answer: First In, First Out (FIFO)
Full explanation
A queue follows First In, First Out (FIFO), so the first item added is the first item removed.
5 practice MCQs on this page Page 4 of 4
Tap an option to check your answer — the correct answer and full explanation appear after you choose.
✓ Correct answer: First In, First Out (FIFO)
A queue follows First In, First Out (FIFO), so the first item added is the first item removed.
✓ Correct answer: Contiguous memory locations
An array stores its elements in contiguous memory locations, so each element can be reached by its index.
✓ Correct answer: Sorted
Binary search can only be applied to sorted data, because it repeatedly halves the search range by comparing the middle value.
✓ Correct answer: Data and a pointer to the next node
In a linked list each node contains data and a pointer to the next node, chaining the elements together.
✓ Correct answer: Left subtree
In a binary search tree values smaller than a node are stored in its left subtree, and larger values in its right subtree.