Consider the following statements: i. First-in-first out types of computations…

GATE · 1996 · CS · Question 1 subparts

Consider the following statements:

i. First-in-first out types of computations are efficiently supported by STACKS.
ii. Implementing LISTS on linked lists is more efficient than implementing LISTS on an array for almost all the basic LIST operations.
iii. Implementing QUEUES on a circular array is more efficient than implementing QUEUES on a linear array with two indices.
iv. Last-in-first-out type of computations are efficiently supported by QUEUES.

Which of the following is correct?

  1. A.

    (ii) and (iii) are true

  2. B.

    (i) and (ii) are true

  3. C.

    (iii) and (iv) are true

  4. D.

    (ii) and (iv) are true

Attempted by 371 students.

Show answer

Correct answer: A

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…