Top

Discussion

The advantage of using linked lists over arrays is that ________

  • A.Linked list is an example of linear data structure
  • B.Insertion and deletion of an element can be done at any position in a linked list
  • C.Linked list can be used to store a collection of homogenous and heterogeneous data types
  • D.The size of a linked list is fixed

Answer: B

Insertion and deletion in a linked list can be done at any position. On the other hand, in an array, to insert an element at a specific position, the rest of the elements have to be moved one position to the left and to delete an element, all the elements after the deleted element have to be moved one position to the right.

No comment is present. Be the first to comment.
Loading…

Post your comment