in DS edited by
7,005 views
2 votes
2 votes

Which of the following data structure is linear type?

  1. Strings
  2. Lists
  3. Queues
  4. All of the above
in DS edited by
7.0k views

2 Answers

6 votes
6 votes
Best answer

String,Lists and Queues all are Linear Data Structure. 

Option(D)All of the above.

selected by

2 Comments

Can you please give a reference that shows string is a linear type data structure ?
0
0
@amit check the answer.and reference
0
0
4 votes
4 votes

String : A string is generally understood as a data type and is often implemented as an array of bytes (or words) that stores a sequence of elements, typically characters, And an Array is a Linear Data Structure Here is the reference 

Lists : One very useful data structure that we’ll frequently use is called a list. Lists are a way to store many different values under a single variable. Every item in this list is numbered with an index. By calling the list and passing it a particular index value, a programmer can pull out any item placed into it. Unlike counting things that exist in the real world, index variables always begin with the number 0. For this too check the above reference.

For Queue refer this 

Answer:

Related questions