Skip to content
EndsemMay 20252019 patternFE

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

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

Questions

  1. Q1

    1. a)

      Define a function with suitable function? Explain need for a function.

      [6]
    2. b)

      Differentiate between local and global variables.

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

      [6]
    3. c)

      Write a program using function to find largest of 3 numbers by passing numbers as arguments.

      [5]
  2. Q2

    1. a)

      Explain the following types of function arguments with examples: i) default arguments ii) variable length arguments

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

      [6]
    2. b)

      What are the modules and packages in python? Explain user defined module with suitable example.

      Also asked:Nov 2024 ·May 2024 ·Nov 2023

      [6]
    3. c)

      Write a program to find square of a number using lambda function.

      Also asked:Nov 2023 ·May 2023

      [5]
  3. Q3

    1. a)

      Explain different ways of iterating a string.

      [6]
    2. b)

      Explain the following with suitable example. i) ord() and chr() function ii) in and not in operators on string

      Also asked:Feb 2026 ·Nov 2025 ·Nov 2023 ·May 2023 ·May 2022

      [6]
    3. c)

      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])

      [5]
  4. Q4

    1. a)

      Explain different ways of formatting a string.

      [6]
    2. b)

      Explain following string methods with example. i) isspace() ii) join() iii) lower()

      [6]
    3. c)

      Write a program to display a string and count characters in the string using a loop.

      Also asked:Nov 2023 ·May 2023

      [5]
  5. Q5

    1. a)

      What is programming paradigm? Explain the following Programming Paradigms in detail i) Monolithic Programming ii) Procedural Programming

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

      [6]
    2. b)

      Explain the following concepts with example. i) Object variable ii) Class variable

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

      [6]
    3. c)

      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

      [6]
  6. Q6

    1. a)

      Explain the following features : i) Containership ii) Inheritance iii) Data Abstraction

      Also asked:Nov 2024

      [6]
    2. b)

      Explain class method and self-object with suitable example.

      Also asked:Nov 2023

      [6]
    3. c)

      Write a program to create class Car with two attributes name and cost. Create two objects and display information.

      Also asked:Nov 2025 ·Nov 2023

      [6]
  7. Q7

    1. a)

      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

      [6]
    2. b)

      Explain the following file handling methods. i) read(n) ii) readlines() iii) close()

      Also asked:Nov 2024 ·May 2024 ·Nov 2023

      [6]
    3. c)

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

      [6]
  8. Q8

    1. a)

      Explain any 3 directory methods with example.

      [6]
    2. b)

      Explain text and binary files with example.

      Also asked:Nov 2025 ·Nov 2023 ·May 2023

      [6]
    3. c)

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

      [6]