Data Structure Questions for Exams
Prepare for semester exams using important questions, numericals, viva questions and unit-wise questions.
U1
Introduction to Data Structure
U2
Array and Linked Lists
U3
Searching and Sorting
U4
Graphs and Trees
U5
Stacks and Queues
Unit-wise questions
Unit 1
Open unit →
Introduction to Data Structure
- Data Structure, its need and its types
- Primitive and Non-Primitive Data Structure
- What is Data Types? Built-in and Derived Types with Examples
- What is an Algorithm? Explain its Criteria and Characteristics.
- Understand Efficiency of Algorithm with the help of Examples
- Space and Time Complexity of An Algorithm
- How to Determine the Complexity of an Algorithm with Example
- Asymptotic Notations: Big Oh, Big Theta and Big Omega Notation
Unit 2
Open unit →
Array and Linked Lists
- Array: Definition, Types, Explanation, and Examples
- One Dimensional and Multidimensional Array with Example
- Row major order in Data Structure with Example
- Column Major Order: Definition, Formula, Examples, Benefits
- Index formula derivation for 1-D, 2-D, 3-D and n-D Array
- Matrix Multiplication Algorithm and Program
- Addressing Formula of the (i,j)th Element of an m*n Matrix in Column-Major Order
- Consider the linear arrays AAA[5:50],BBB[-5:10] and CCC[1:8] a. Find the number of elements in each array.
Unit 3
Open unit →
Searching and Sorting
- Searching in Data Structure and Its types
- Linear search in Data structure with Algorithm and Program
- Binary Search Algorithm in Data Structure with Explanation
- Binary search tree in data structure
- Binary search tree operations with Program
- Hashing in data structure with its types
- Advantage and Disadvantage of Hashing over other Searching Techniques
- Collision in Hashing and Collision Resolution Technique
Unit 4
Open unit →
Graphs and Trees
- Graph and types of graph in Data Structure
- Graph representation in data structure
- Graph Traversal Technique in Data Structure
- Breadth First Search (BFS) Traversal in Data Structure
- Depth First Search(DFS) Traversal in Data Structure
- Difference between BFS and DFS Graph Traversal
- Spanning tree and Minimum Spanning tree with example
- Prim’s Algorithm Explanation with Example
Unit 5
Open unit →
Stacks and Queues
- Stack in Data Structure with its Application and Example
- Implement Stack using Singly linked list
- Push and Pop Operation in Stack: Algorithm and Program
- Stack Implementation using Array Program
- Infix, Prefix and Postfix Expression with example
- Algorithm to evaluate an infix expression
- Algorithm to evaluate a postfix expression
- Algorithm to evaluate a prefix expression