Programming and Problem Solving (PPS) SPPU Endsem Question Paper Feb 2026
All 10 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Pattern
- 2024 pattern
- Exam
- Endsem
- Session
- Feb 2026
- Max. marks
- 70
- Semester
- I/II
- Paper code
- [6581]-2402
Instructions to the candidates
- Attempt Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8, Q9 or Q10.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right indicate full marks.
- Assume suitable data, if necessary and clearly state.
Questions
Q1
ORQ2
- a)[3]
Write a pseudo code for swapping two numbers.
Also asked:Oct 2023
- b)[3]
What is problem solving? List down the difficulties for the problem solving.
- c)[4]
What is object oriented programming? List down its features with suitable examples.
- d)[4]
Explain any four python programming language applications in details.
Also asked:Apr 2025
- a)
Q3
ORQ4
- a)[3]
Explain use of range() function in for loop with suitable example.
Also asked:Oct 2023
- b)
Evaluate the importance of decision control statements in program execution. [3] SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Programming and Problem Solving Page 1 of 3
- c)[4]
Differentiate between if-else and if-elif-else statement.
- d)[4]
Demonstrate the use of tuple data type with a suitable python program.
- a)
Q5
- a)[4]
Write a Lambda function to check whether a number is positive or negative.
- b)[5]
Explain string immutability with an example.
- c)[5]
Explain slice operation in strings with an example.
OR- a)
Q6
- a)[4]
Define the chr() function. How is it different from ord()?
- b)[5]
Develop a python program that counts the number of vowels and consonants in a given string using iteration.
- c)[5]
Define function, explain function definition and function call with suitable example.
- a)
Q7
ORQ8
- a)[4]
What does the flush() method do in file handling.
- b)[5]
Explain the difference between read() and readlines() methods.
- c)[5]
Discuss the purpose of file manipulation operations like renaming and deleting.
- a)
Q9
- a)[4]
Describe the concept of data abstraction and encapsulation in object oriented programming.
- b)[5]
How do the __init__() and __del__() methods help in creating and cleaning up objects in python?
- c)[5]
Differentiate between class & object with example.
OR- a)
Q10
- a)[4]
What is polymorphism? Give two types of polymorphism in object oriented programming.
- b)[5]
Discuss garbage collection in python. How does it manage memory for objects?
- c)
Differentiate between public and private members with example. [5] SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Programming and Problem Solving Page 2 of 3 SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Programming and Problem Solving Page 3 of 3
- a)