Skip to content
EndsemOct 20252024 patternSE IOT

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

  1. 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.
  2. Figures to the right side indicate full marks.
  3. Assume Suitable data if necessary.
  4. Neat diagrams must be drawn wherever necessary.

Questions

  1. Q1

    1. a)

      Describe the following characteristics of object oriented programming with the help of example. i) Encapsulation ii) Polymorphism iii) Inheritance

      [6]
    2. b)

      Define a class and an object in C++. Write the declaration syntax for both.

      [4]
    3. c)

      Explain function overloading with example.

      [4]
  2. Q2

    1. a)

      What do you mean by operator overloading? Explain Binary operator overloading for addition plus operator with example.

      [6]
    2. b)

      What is Construct? Explain constructor type with example.

      [4]
    3. c)

      What are the rules for overloading operators?

      [4]
  3. Q3

    1. a)

      Define and explain order of growth Big - O, Omega and Theta notation.

      [7]
    2. b)

      Write a C++ function for Insertion sort to sort integer's numbers with an example.

      [7]
  4. Q4

    1. a)

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

      [7]
    2. b)

      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

      [7]
  5. Q5

    1. a)

      Write an algorithm with appropriate illustrations to perform the following operations on single linked list (SLL) for Delete a node (Start, End).

      [6]
    2. b)

      What is doubly linked list? Explain insert operation in Doubly Linked List.

      [4]
    3. c)

      Compare Array and Linked List.

      [4]
  6. Q6

    1. a)

      Write a C++ function for the following in DLL : i) Display the complete list ii) Search an element in the list

      [6]
    2. b)

      What is Singly Linked list? Explain transversal operation in Singly Linked List.

      [4]
    3. c)

      Write a function PUSH and POP in 'C++' for stack using Linked List.

      [4]
  7. Q7

    1. a)

      Explain in brief common operations on the stack. Write PUSH and POP function for stack using array.

      [7]
    2. b)

      Write a C++ function insert and delete to implement queue using array. Explain Types of queues in short.

      [7]
  8. Q8

    1. a)

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

      [7]
    2. 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

  9. Q9

    1. a)

      Find out Minimum spanning Tree of the following graph (figure 1) using Kruskal's algorithm.

      [5]
    2. b)

      Explain graph traversal method with suitable example.

      [5]
    3. c)

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

      [4]
  10. Q10

    1. a)

      Represent the following graph shown in Fig. 2 using the adjacency matrix and adjacency list.

      [5]
    2. b)

      Explain with suitable example, DFS and BFS traversal of a graph.

      [5]
    3. c)

      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

      [4]