Chapter 4
Chapter 4
9
DATA STRUCTURE
12.What is a stack?
A stack is an ordered collection of items. Where the addition of new items and the
removal of existing items always take place at the same end.This end is commonly
reffered to as the “top”.
13.What is a queue?(Jun 2016)
A queue is a ordered collection of items where an item is inserted at one end called
the “rear” and an existing ite is removed at the other end,called the “front end”
14.Name the data structure whose relationship between data elements is by means
of links.
Linked list
15.What is a linked list?
Linked list is a collection of nodes.Each node containing two fields data field and link
field.data field containing the information and link field containing the address of the
next node.
16.Mention any one application of stack.
Quick sort
17.What do you mean by traversal in data structure.
The process of accessing each data item exactly once to perform some operation is
called as traversing.
18.Define searching in one dimensional array.
Finding the location of the element in an array.
19.What is the meant by sorting in an array?
The process of arranging of the data item in ascending or descending order.
20.Mention the types of searching in an array.
a)Linear Search
b)Binary Search
21.What are Non-linear data structures ?
A non-linear data structure is a data structure in which a data item is connected to
several other data item.
10
DATA STRUCTURE
11
DATA STRUCTURE
1 - 1 2 14
12