Data Structure
Data Structure
2. Differentiate between
i. Linear data structure
ii. Non-linear data structure
4. Define Stack.
i. What are the operations of the stack?
ii. How the operations performed on linked list implementation
of stack?
iii. What are the applications of stack?
iv. What are the methods to implement stack in C?
5. Define Queue.
i. What are the operations of the Queue?
ii. Write the routine to insert an element onto a queue.
iii. What are the types of queue and define them?
iv. How the queue is implemented by linked list?
v. What are the applications of queue?
MARKINGS CHEME TEST 1 DATA STRUCTURE
1. What is a data structure?
A data structure is a method for organizing and storing data which would
allow efficient data retrieval and usage.
A data structure is a way of organizing data that considers not only the items
stored, but also their relationships to each other.
2. Differentiate between
a. Linear data structure
b. Non-linear data structure
Linear data structure Non-linear data structure
i. Implementation
Type of Implementation Marks
Liked List
Singly
linked list
Doubly
linked list
4. Define Stack.
Stack is an ordered list in which all insertions and deletions are made at one
end, called the top. It is an abstract data type and based on the principle of
LIFO (Last in First Out).
5. Define Queue.
It is a linear data structure that maintains a list of elements such that
insertion happens at rear end and deletion happens at front end. FIFO – First
In First Out principle
● Circular queue
A Circular queue is a queue whose start and end
locations are logically connected with each other. That means
the start location comes after the end location.
● Priority queue