Programming and Problem Solving (PPS) SPPU Endsem Question Paper Nov 2025
All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Subject code
- 110005
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- Nov 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- I/II
- Paper code
- [6581]-1908
Printed for: F.E. (Programme)
Instructions to the candidates
- Answer Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
- Figures to the right indicate full marks.
Questions
Q1
ORQ2
- a)[5]
Explain the following with an example : i) Positional arguments ii) Unlimited positional arguments
- b)[6]
What is a Lambda function. Explain with an example using 2 arguments
- c)[6]
What is a function? Write a program to return the addition and multiplication of 2 numbers taken as input from the user using a function 2
- a)
Q3
- a)[5]
Explain f-string method of string formatting with an example
- b)[6]
Explain the following with suitable example i) is and ii) is not operators on string
- c)[6]
What is the output of the following statement for the given string (i to vi)? S = “Programming and Problem Solving” i) print(S[16:]) ii) print(S[:28:2]) iii) print(S[:19:1]) iv) print (“and” in S) v) print(S[::2]) vi) print(S[::-1])
Also asked:May 2023
OR- a)
Q4
- a)[5]
Explain the following string methods with an example i) title ( ) ii) rstrip ( )
- b)[6]
Explain the following with suitable example i) ord ( ) function ii) chr ( ) function
- c)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q5
- a)[6]
Explain the following programming paradigm i) Monolithic Programming ii) Structured Programming
- b)[6]
Explain the following with a suitable example i) Inheritance ii) Function overriding iii) Class Variables
- c)[6]
Write a program to calculate the area of a square and rectangle using a class. 3
Also asked:May 2024
OR- a)
Q6
- a)[6]
Explain the following with a suitable example i) Class Method ii) Object iii) Constructor
- b)[6]
Explain the following programming paradigm i) Procedural Programming ii) Object Oriented Programming
- c)[6]
Write a program to create a class Book with two attributes Name and Author. Create 3 objects and display the information.
- a)
Q7
- a)[6]
- b)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[6]
Write a python program that read data from one file and writes into another file line by line Hint: First line in the original file will be the first line in copied file
ORQ8
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Explain the following access modes i) rb ii) rb+ iii) ab+
- c)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- a)