Question: In which scenario would a linked list be preferred over an array?
Options:
Correct Answer: When frequent insertions and deletions are required
Solution:
Linked lists are preferred when frequent insertions and deletions are required because they can be done in O(1) time, unlike arrays which require O(n) time.