Skip to content

Data Structures & Algorithms (DSA) important questionsMost repeated in SPPU papers

These 28 questions appeared in more than one SPPU Data Structures & Algorithms paper we have: 7 papers, from May 2024 to Dec 2025. The most-asked come first. Each one links to the papers it was asked in.

Premium

Answers to these DSA questions

Model answers in the SPPU exam pattern, unit by unit. Read them on MySPPU.

This subject

₹59regular price ₹149

See a free sample page

Unlock

Repeated questions

Endsem questions (28)

  1. 3×asked

    Differentiate between index sequential and direct access file.

    Dec 2025 ·May 2025 ·May 2024

  2. 3×asked

    Differentiate between linear search and Binary search.

    Oct 2025 ·Nov 2024 ·Oct 2024

  3. 2×asked

    Consider a knapsack with a capacity of 50kg and the following items : Item 1 : Weight = 10 kg, Profit = 60 Item 2 : Weight = 20 kg, Profit = 100 Item 3 : Weight = 30 kg, Profit = 120 Determine the maximum profit value using fractional knapsack greedy algorithm.

    Oct 2025 ·Nov 2024

  4. 2×asked

    Convert the following generic tree to binary tree. Also explain the method used for conversion. (Show step by step conversion).

    Oct 2025 ·Nov 2024

  5. 2×asked

    Convert the following Infix expression to Prefix and Postfix expression using tabular form. Also write down basic steps used for conversion. (A*B+C*D).

    Oct 2025 ·Nov 2024

  6. 2×asked

    Describe in detail following classification of data structures : i) Linear and Non-linear ii) Static and Dynamic

    Oct 2025 ·Nov 2024

  7. 2×asked

    Differentiate between chaining and open addressing collision resolution techniques?

    Oct 2025 ·Nov 2024

  8. 2×asked

    Explain “Divide and conquer” principle of algorithm. How it is used in merge sort.

    Oct 2025 ·Nov 2024

  9. 2×asked

    Explain the applications of DSA in Social Network Graph Analysis and in AI Search Algorithms.

    Oct 2025 ·Nov 2024

  10. 2×asked

    For string matching, working module q = 11, how many spurious hits does the Rabin-Karp matcher encounters in Text T = 3141592653589793 when looking for the pattern P = 26. (Show all steps of Rabin Karp string matching algorithm)

    Oct 2025 ·Nov 2024

  11. 2×asked

    For the given set of values. 11, 33, 20, 88, 79, 98, 44, 68, 66, 22 Create a hash table with size 10 and resolve collision using chaining with replacement and without replacement. Use the modulus Hash function. (Key % size)

    Oct 2025 ·Nov 2024

  12. 2×asked

    For the list : [44 33 11 55 77 90 40 60 99 22 88], Perform bubble sort step-by-step. Find the number of comparisons and swaps required to sort the elements in ascending order. Also mention time complexity of bubble sort.

    Oct 2025 ·Nov 2024

  13. 2×asked

    How can a node be inserted in singly linked list? Explain it with suitable diagrams. Also write down basic steps used for insertion. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Data Structures & Algorithms Page 1 of 3 2

    Oct 2025 ·Nov 2024

  14. 2×asked

    Make a binary search tree for the following sequence of numbers : 45, 36, 76, 23, 89, 115, 98, 39, 41, 56, 69, 48 Traverse the tree in Preorder, Inorder and Postorder. SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structures & Algorithms Page 2 of 3 3

    Oct 2025 ·Nov 2024

  15. 2×asked

    Perform Huffman encoding for the string : “ABBCCCDDDDEEEEE”. Show the steps of frequency calculation, Huffman tree construction and obtain final codes.

    Oct 2025 ·Nov 2024

  16. 2×asked

    What are the advantages and disadvantages of quadratic probing over linear probing?

    Oct 2025 ·Nov 2024

  17. 2×asked

    What is a queue? How it is different from a stack?

    Oct 2025 ·Nov 2024

  18. 2×asked

    What is an algorithm? Explain key characteristics of a good algorithm with suitable examples.

    Oct 2025 ·Nov 2024

  19. 2×asked

    What is binary tree? Describe the preorder, inorder and postorder traversal of a binary tree with an example.

    Oct 2025 ·Nov 2024

  20. 2×asked

    What is Heap? Sort the following elements in descending order using heap sort (show all steps) : 100, 34, 24, 45, 12, 89, 21.

    Oct 2025 ·Nov 2024

  21. 2×asked

    What is linked list? With the help of neat diagrams explain different types of Linked list.

    Oct 2025 ·Nov 2024

  22. 2×asked

    What is Longest Common Subsequence (LCS) problem? How principle of dynamic programming is used to find LCS. Give suitable example.

    Oct 2025 ·Nov 2024

  23. 2×asked

    What is meant by time and space complexity of an algorithm? What are asymptotic notations used for it?

    Oct 2025 ·Nov 2024

  24. 2×asked

    What is stack? How can a stack be implemented using linked lists?

    Oct 2025 ·Nov 2024

  25. 2×asked

    What is time complexity? Explain its significance. Also find time complexity using step count method for the below algorithm : sum = 0 for i = 1 to n: for j = 1 to n: sum = sum + 1

    Oct 2025 ·Nov 2024

  26. 2×asked

    Write down steps of Floyd-Warshall algorithm.

    Oct 2025 ·Nov 2024

  27. 2×asked

    Write down steps of Heap sort algorithm? What is the role of “heapify” function. State any two real time applications of heap.

    Oct 2025 ·Nov 2024

  28. 2×asked

    Write down the steps of quick sort. Mention its best case, average case and worst case time complexity.  SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structures & Algorithms Page 3 of 3

    Oct 2025 ·Nov 2024

Questions count as repeated when their wording matches closely across papers. Numericals that depend on a figure are left out, since the figure changes from paper to paper.