Skip to content
EndsemNov 20242019 patternFE

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

  1. Solve Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
  2. Neat Diagrams must be drawn wherever necessary.
  3. Assume suitable data wherever necessary.

Questions

  1. Q1

    1. a)

      Explain the concept of a module and a package in python.

      Also asked:May 2025 ·May 2024 ·Nov 2023

      [6]
    2. b)

      What are the good programming practices in python? Explain any six.

      Also asked:May 2022

      [6]
    3. c)

      Write a program to find factorial of a number using user defined function.

      [5]
  2. Q2

    1. a)

      Explain use of global statement with a suitable example.

      [6]
    2. b)

      Explain ‘the return statement’ syntax in a function. Explain implicit and explicit return value in a function with a suitable example.

      [6]
    3. c)

      Write a program using lambda for the division of two numbers.

      [5]
  3. Q3

    1. a)

      Explain the following string operations with examples. i) concatenation ii) slicing iii) String multiplication

      Also asked:May 2024 ·May 2022

      [6]
    2. b)

      Explain with a suitable example strings are immutable.

      [6]
    3. c)

      Write a program that accepts a string from user and displays the same string after removing vowels from it. 2

      [5]
  4. Q4

    1. a)

      Explain string iterating using while and for loop with suitable example.

      [6]
    2. b)

      Explain following string methods with example. i) strip() ii) ljust() iii) rindex()

      [6]
    3. c)

      Write a program to create a mirror of the given string. For example “abc” = “cba”.

      [5]
  5. Q5

    1. a)

      Explain the following Programming Paradigms in detail. i) Monolithic ii) Structured iii) Object Oriented

      Also asked:Nov 2025 ·May 2025 ·May 2024 ·Nov 2023 ·May 2023

      [6]
    2. b)

      What is class instantiation? How is it done?

      [6]
    3. c)

      Write a program to calculate area of triangle using a class.

      Also asked:May 2023

      [6]
  6. Q6

    1. a)

      Explain the following features of OOP i) Inheritance ii) Polymorphism iii) Data abstraction

      Also asked:May 2025

      [6]
    2. b)

      Explain class method with suitable example.

      [6]
    3. c)

      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

      [6]
  7. Q7

    1. a)

      What is a file? Explain different Access Modes.

      Also asked:May 2024 ·May 2023 ·May 2022

      [6]
    2. b)

      Explain the following file handling methods. i) seek() ii) write() iii) read()

      Also asked:May 2025 ·May 2024 ·Nov 2023

      [6]
    3. c)

      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.

      [6]
  8. Q8

    1. a)

      Explain the following directory methods with suitable example 1) getcwd() 2) rmtree() 3) makedirs()

      [6]
    2. b)

      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

      [6]
    3. c)

      This part has equations that don’t show as text. Open the PDF to read it.

      [6]