Which of the following statement is true?

2024

Which of the following statement is true?

  1. A.

    Arrays is dynamic data structure whose size can be changed while stacks are static data structures whose size are fixed

  2. B.

    An array can have elements of different data types

  3. C.

    Array elements can be accessed and modified (elements can be added

    or removed) only at the ends of the array while any element of stacks

    can be accessed/modified randomly through their indices.

  4. D.

    Elements of a linked list can be accessed only sequentially

Attempted by 1875 students.

Show answer & explanation

Correct answer: D

"Elements of a linked list can be accessed only sequentially" is the true statement.

Explore the full course: Coding For Placement