Data Structures and Algorithms (DSA) SPPU Endsem Question Paper Oct 2025
All 10 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Pattern
- 2024 pattern
- Exam
- Endsem
- Session
- Oct 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- III
- Paper code
- [6582]-289
Printed for: S.E. (Internet of Things)
Instructions to the candidates
- Answer Q.1, or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8 and Q.9 or Q.10.
- Figures to the right side indicate full marks.
- Assume Suitable data if necessary.
- Neat diagrams must be drawn wherever necessary.
Questions
Q1
- a)[6]
Describe the following characteristics of object oriented programming with the help of example. i) Encapsulation ii) Polymorphism iii) Inheritance
- b)[4]
Define a class and an object in C++. Write the declaration syntax for both.
- c)[4]
Explain function overloading with example.
OR- a)
Q2
- a)[6]
What do you mean by operator overloading? Explain Binary operator overloading for addition plus operator with example.
- b)[4]
What is Construct? Explain constructor type with example.
- c)[4]
What are the rules for overloading operators?
- a)
Q3
- a)[7]
Define and explain order of growth Big - O, Omega and Theta notation.
- b)[7]
Write a C++ function for Insertion sort to sort integer's numbers with an example.
OR- a)
Q4
- a)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[7]
Write a C++ function for binary search. Compare the time complexities of Linear search and Binary search. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Data Structures and Algorithms Page 1 of 3 2
- a)
Q5
- a)[6]
Write an algorithm with appropriate illustrations to perform the following operations on single linked list (SLL) for Delete a node (Start, End).
- b)[4]
What is doubly linked list? Explain insert operation in Doubly Linked List.
- c)[4]
Compare Array and Linked List.
OR- a)
Q6
- a)[6]
Write a C++ function for the following in DLL : i) Display the complete list ii) Search an element in the list
- b)[4]
What is Singly Linked list? Explain transversal operation in Singly Linked List.
- c)[4]
Write a function PUSH and POP in 'C++' for stack using Linked List.
- a)
Q7
- a)[7]
Explain in brief common operations on the stack. Write PUSH and POP function for stack using array.
- b)[7]
Write a C++ function insert and delete to implement queue using array. Explain Types of queues in short.
OR- a)
Q8
- a)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- b)
Compare Stack and Queue. Explain any three Queue operations. [7] SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structures and Algorithms Page 2 of 3 3
- a)
Q9
- a)[5]
Find out Minimum spanning Tree of the following graph (figure 1) using Kruskal's algorithm.
- b)[5]
Explain graph traversal method with suitable example.
- c)[4]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q10
- a)[5]
Represent the following graph shown in Fig. 2 using the adjacency matrix and adjacency list.
- b)[5]
Explain with suitable example, DFS and BFS traversal of a graph.
- c)[4]
Find the shortest path from node 'a' to node 'c' and node 'a' to node 'd' in the graph shown in fig. 3 using Dijkstra's algorithm. ♦♦♦ SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structures and Algorithms Page 3 of 3
- a)