UGC-NET Jun 2012 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0027

Which of the following data structure is linear type?
  1. A
    Strings
  2. B
    Lists
  3. C
    Queues
  4. D
    All of the above

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionA linear data structure arranges its elements in a sequence, each element having a unique predecessor and successor (except the ends).(A) A string is a sequence of characters — linear.(B) A list (array or linked) is a sequence — linear.(C) A queue is a sequence with insertion at the rear and removal at the front — linear.All three are linear, unlike trees and graphs.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com