Skip to content
EndsemOct 20252024 patternSE ECM

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

  1. 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.
  2. Figures to the right indicate full marks.
  3. Assume Suitable data if necessary.

Questions

  1. Q1

    1. a)

      What is Function Overloading? Write a program to illustrate it.

      [7]
    2. b)

      Write a program of Student Class and use parameterized constructor to set the values and use display function to display the values.

      [7]
  2. Q2

    1. a)

      What is Parameter Passing? Explain with Example Parameter passing in C++. using pass by value and pass by reference.

      [7]
    2. b)

      What is Constructor? Explain its types with Syntax.

      [7]
  3. Q3

    1. a)

      Compare linear search and binary search. Write an algorithm to search elements in a list using Binary Search.

      [7]
    2. b)

      This part has equations that don’t show as text. Open the PDF to read it.

      [7]
  4. Q4

    1. a)

      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.

      [7]
    2. b)

      This part has equations that don’t show as text. Open the PDF to read it.

      [7]
  5. Q5

    1. a)

      Write a difference between Array and Linked list. Write a search function to search a key element in singly linked list. Using linear Search.

      [8]
    2. b)

      What is a doubly linked list? Write a C++ function for Inserting a number at the end of the doubly linked list.

      [6]
  6. Q6

    1. a)

      Draw and Explain Structure of Circular linked list. Write a ‘CPP’ function for Inserting a number at the front of the circular linked list.

      [8]
    2. b)

      Write following C++ functions in SLL: i) Insert a node at the beginning ii) Delete a node at the end

      [6]
  7. Q7

    1. a)

      List the common operations on the stack. Write PUSH and POP function for stack using array.

      [7]
    2. b)

      What is Queue? Explain Circular Queue and Priority Queue with suitable diagram.

      [7]
  8. Q8

    1. a)

      This part has equations that don’t show as text. Open the PDF to read it.

      [7]
    2. b)

      Explain with code Enqueue and Dequeue Operations in Queue.

      [7]
  9. Q9

    1. a)

      This part has equations that don’t show as text. Open the PDF to read it.

      [8]
    2. b)

      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

      [6]
  10. Q10

    1. a)

      Find the minimal spanning tree of the following graph using Prim’s algorithm. Show all the steps.

      [8]
    2. b)

      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

      [6]