Programming and Problem Solving (PPS) SPPU Endsem Question Paper May 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
- May 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- II
- Paper code
- [6401]-1908
Printed for: F.E.
Instructions to the candidates
- Solve Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
- Neat Diagrams must be wherever necessary.
- Assume suitable data wherever necessary.
Questions
Q1
- a)[6]
Define a function with suitable function? Explain need for a function.
- b)[6]
- c)[5]
Write a program using function to find largest of 3 numbers by passing numbers as arguments.
OR- a)
Q2
- a)[6]
Explain the following types of function arguments with examples: i) default arguments ii) variable length arguments
- b)[6]
What are the modules and packages in python? Explain user defined module with suitable example.
- c)[5]
- a)
Q3
- a)[6]
Explain different ways of iterating a string.
- b)[6]
Explain the following with suitable example. i) ord() and chr() function ii) in and not in operators on string
- c)[5]
What is the output of the following statement for the given string? S = “Learning Python is fun” i) print(S[:10]) ii) print(S[::-1]) iii) print("Is” not in S) iv) print(S[4]) v) print(S[0:10])
OR- a)
Q4
Q5
- a)[6]
What is programming paradigm? Explain the following Programming Paradigms in detail i) Monolithic Programming ii) Procedural Programming
- b)[6]
Explain the following concepts with example. i) Object variable ii) Class variable
- c)[6]
Write a python program to create a class Employee with the attributes Name, emp_id, and salary and display data of 4 employees.
Also asked:Nov 2023
OR- a)
Q6
- a)[6]
Explain the following features : i) Containership ii) Inheritance iii) Data Abstraction
Also asked:Nov 2024
- b)[6]
Explain class method and self-object with suitable example.
Also asked:Nov 2023
- c)[6]
Write a program to create class Car with two attributes name and cost. Create two objects and display information.
- a)
Q7
- a)[6]
What is a file? Explain relative and absolute path of a file.
Also asked:Feb 2026 ·Nov 2024 ·May 2024 ·Nov 2023 ·May 2023 ·May 2022
- b)[6]
Explain the following file handling methods. i) read(n) ii) readlines() iii) close()
- c)[6]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q8
- a)[6]
Explain any 3 directory methods with example.
- b)[6]
- c)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- a)