Programming and Problem Solving (PPS) SPPU Endsem Question Paper May 2023
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 2023
- Max. marks
- 70
- Time
- 2½ Hours
- Paper code
- [6001]-4008
Printed for: F.E. (Semester - II)
Instructions to the candidates
- Question one is compulsory.
- Solve Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6 and Q.7 or Q.8.
- Neat diagrams must be wherever necessary.
- Assume suitable data wherever necessary.
Questions
Q1
- a)[6]
Explain in-built and user defined functions with syntax and suitable example.
- b)[6]
Explain the following terms with suitable examples. i) local variable ii) global variable
- c)[5]
Write a program to check whether a number is prime or not using function.
Also asked:May 2024
OR- a)
Q2
Q3
- a)[6]
Justify strings are immutable with example.
- b)[6]
Explain the following with suitable example. i) ord() and chr() function ii) in and not in operators on string 2
- c)[5]
What is the output of the following statement for the given string? S = “Programming and Problem Solving” i) print(S[:11]) ii) print(S[::-1]) iii) print("And" not in S) iv) print(S[4]) v) print (S[0:10])
Also asked:Nov 2025
OR- a)
Q4
Q5
- a)[6]
Explain the following Programming Paradigms in detail. i) Monolithic Programming ii) Structured Programming iii) Object Oriented Programming
- b)[6]
Explain the following concepts with example. i) public members ii) private members
- c)[6]
Write a python program to create a class Student with the attributes Name, roll no and age and display data of 4 students.
OR- a)
Q6
- a)[6]
- b)[6]
Explain class method and class variable with suitable example.
- c)[6]
Write a program to calculate area of triangle using a class. 3
Also asked:Nov 2024
Q7
ORQ8
- a)[6]
Explain different directory methods with example.
Also asked:May 2022
- b)[6]
- c)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- a)