Data Structures (DS) 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]-251
Printed for: S.E. (Computer Science)
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 or Q.10.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right indicate full marks.
- Use of electronic pocket calculator is allowed.
- Assume suitable data, if necessary.
Questions
Q1
- a)[5]
What is meant by time and space complexity? Explain Big-Oh, Big-theta and Big-Omega notation.
- b)[5]
Write pseudocode to check whether given number is an Armstrong number or not. Draw the flowchart for the same.
- c)[4]
Define the following terms with suitable example. i) Linear and Non-Linear Data structures. ii) Abstract Data Type iii) Persistent and Ephemeral data structures Static Vs Dynamic Data Structure.
OR- a)
Q2
- a)[5]
Write an algorithm to compute the sum of the digits of the given number. Justify that your algorithm satisfies all the characteristics of an algorithm.
- b)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[4]
Discuss any 4 classes of time complexity with sample code. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Data Structures Page 1 of 3 2
- a)
Q3
- a)[4]
An array P[50] [60] is stored in the memory along with each of the element occupying 2 bytes, find row major, column major address of memory location for element P[10] [20], if base address of array is 6800.
- b)[4]
Explain each with diagram. i) Generalized linked list. ii) Doubly linked list.
- c)[6]
Write pseudo code for following function using singly linked list of integer number. i) Insert given value as last value in the list. Draw diagrams of operation. ii) Delete first node from the list. Draw diagrams of operation.
OR- a)
Q4
- a)[4]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[4]
Write pseudocode to perform merging of two sorted singly linked lists of integers into third list.
- c)[6]
Write pseudo code for following function using Doubly Linked List of integer numbers. i) Insert given value as last value in the list. Draw diagram of operation. ii) Delete first node from the list. Draw diagram of operation.
- a)
Q5
- a)[7]
Write algorithm for binary search. Apply your algorithm on the following numbers stored in array from A[0] to A[10] 10, 18, 24, 38, 45, 51, 57, 77, 90, 100 to search numbers 100. State its time complexity.
- b)[7]
Sort the following numbers step by step using insertion sort : 55, 85, 45, 11, 34, 5, 89, 99. Comment on time complexity of insertion sort.
OR- a)
Q6
- a)[7]
Explain Fibonacci Search algorithm with suitable example. What is it’s time complexity?
- b)[7]
Write Algorithm of selection sort and sort following numbers using selection sort and show the contents of array after each pass :- 91, 37, –7, 61, 93, 4, 8, 116 SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structures Page 2 of 3 3
- a)
Q7
- a)[7]
Explain stack as ADT. Write pseudo –C/C+ + code to implement stack using array with overflow and underflow conditions.
- b)[7]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q8
- a)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q9
- a)[7]
What are the advantages of Circular Queue over normal queue? Write C/C++ code to array implement enqueue & dequeue operation on simple queue.
- b)[7]
Draw and explain array implementation of Priority Queue. State any real- life application.
OR- a)
Q10
- a)[7]
Draw and explain implementation of Linear Queue using Singly Linked List. Explain enqueue, dequeue, Queue Full and Queue Empty operations.
- b)[7]
What is Doubly Ended Queue? Draw Diagram with labelling four basic Operations at appropriate places. Which two data structures are combined in it and how? SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structures Page 3 of 3
- a)