Data Structure & 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]-267
Printed for: S.E. (Electronics and Computer Engineering)
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, Q.9 and Q.10.
- Figures to the right indicate full marks.
- Assume Suitable data if necessary.
Questions
Q1
- a)[7]
What is Function Overloading? Write a program to illustrate it.
- b)[7]
Write a program of Student Class and use parameterized constructor to set the values and use display function to display the values.
OR- a)
Q2
- a)[7]
What is Parameter Passing? Explain with Example Parameter passing in C++. using pass by value and pass by reference.
- b)[7]
What is Constructor? Explain its types with Syntax.
- a)
Q3
- a)[7]
Compare linear search and binary search. Write an algorithm to search elements in a list using Binary Search.
- b)[7]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q4
- a)[7]
Write a Program to Search key element 10 from given integer array. 38, 27, 43, 3, 9, 82, 10. What will be time complexity of the program.
- b)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q5
- a)[8]
Write a difference between Array and Linked list. Write a search function to search a key element in singly linked list. Using linear Search.
- b)[6]
What is a doubly linked list? Write a C++ function for Inserting a number at the end of the doubly linked list.
OR- a)
Q6
- a)[8]
Draw and Explain Structure of Circular linked list. Write a ‘CPP’ function for Inserting a number at the front of the circular linked list.
- b)[6]
Write following C++ functions in SLL: i) Insert a node at the beginning ii) Delete a node at the end
- a)
Q7
- a)[7]
List the common operations on the stack. Write PUSH and POP function for stack using array.
- b)[7]
What is Queue? Explain Circular Queue and Priority Queue with suitable diagram.
OR- a)
Q8
- a)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[7]
Explain with code Enqueue and Dequeue Operations in Queue.
- a)
Q9
- a)[8]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Define with an example: i) Undirected Graph ii) Directed Graph iii) Weighted Graph OR SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structure & Algorithms Page 2 of 3 3
- a)
Q10
- a)[8]
Find the minimal spanning tree of the following graph using Prim’s algorithm. Show all the steps.
- b)[6]
Define the following terms with respect to Trees: i) Root ii) Subtree iii) Ancestor Nodes iv) Level of node v) Depth of Tree vi) Siblings eeee SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structure & Algorithms Page 3 of 3
- a)