Programming and Problem Solving (PPS) SPPU Endsem Question Paper Nov 2024
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 2024
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- I/II
- Paper code
- [6351]-108
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 drawn wherever necessary.
- Assume suitable data wherever necessary.
Questions
Q1
- a)[6]
- b)[6]
What are the good programming practices in python? Explain any six.
Also asked:May 2022
- c)[5]
Write a program to find factorial of a number using user defined function.
ORQ2
- a)[6]
Explain use of global statement with a suitable example.
- b)[6]
Explain ‘the return statement’ syntax in a function. Explain implicit and explicit return value in a function with a suitable example.
- c)[5]
Write a program using lambda for the division of two numbers.
- a)
Q3
- a)[6]
Explain the following string operations with examples. i) concatenation ii) slicing iii) String multiplication
- b)[6]
Explain with a suitable example strings are immutable.
- c)[5]
Write a program that accepts a string from user and displays the same string after removing vowels from it. 2
OR- a)
Q4
- a)[6]
Explain string iterating using while and for loop with suitable example.
- b)[6]
Explain following string methods with example. i) strip() ii) ljust() iii) rindex()
- c)[5]
Write a program to create a mirror of the given string. For example “abc” = “cba”.
- a)
Q5
- a)[6]
Explain the following Programming Paradigms in detail. i) Monolithic ii) Structured iii) Object Oriented
- b)[6]
What is class instantiation? How is it done?
- c)[6]
Write a program to calculate area of triangle using a class.
Also asked:May 2023
OR- a)
Q6
- a)[6]
Explain the following features of OOP i) Inheritance ii) Polymorphism iii) Data abstraction
Also asked:May 2025
- b)[6]
Explain class method with suitable example.
- c)[6]
Write a program that has a class Circle. Use a class variable to define the value of constant P1. Use this class variable to calculate area and circumference of a circle with specified radius 3
- a)
Q7
- a)[6]
- b)[6]
Explain the following file handling methods. i) seek() ii) write() iii) read()
- c)[6]
Write a program to read a file that contains small case characters. Then write these characters into another file with all lowercase characters converted into Uppercase.
ORQ8
- a)[6]
Explain the following directory methods with suitable example 1) getcwd() 2) rmtree() 3) makedirs()
- b)[6]
What is a file path? Explain absolute path and relative path.
Also asked:Feb 2026 ·May 2025 ·May 2024 ·Nov 2023 ·May 2023 ·May 2022
- c)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- a)