Skip to content
EndsemNov 20252019 patternFE

Programming and Problem Solving (PPS) SPPU Endsem Question Paper Nov 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
Nov 2025
Max. marks
70
Time
2½ Hours
Semester
I/II
Paper code
[6581]-1908

Printed for: F.E. (Programme)

Instructions to the candidates

  1. Answer Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
  2. Figures to the right indicate full marks.

Questions

  1. Q1

    1. a)

      Explain the following with an example i) Keywords arguments ii) Default arguments

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

      [5]
    2. b)

      Write a program to swap 2 numbers using a function

      Also asked:Mar 2026 ·Oct 2025 ·Sep 2024 ·May 2022

      [6]
    3. c)

      What are i) Local Variables ii) Global Variables. Explain with an example

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

      [6]
  2. Q2

    1. a)

      Explain the following with an example : i) Positional arguments ii) Unlimited positional arguments

      [5]
    2. b)

      What is a Lambda function. Explain with an example using 2 arguments

      [6]
    3. c)

      What is a function? Write a program to return the addition and multiplication of 2 numbers taken as input from the user using a function 2

      [6]
  3. Q3

    1. a)

      Explain f-string method of string formatting with an example

      [5]
    2. b)

      Explain the following with suitable example i) is and ii) is not operators on string

      [6]
    3. c)

      What is the output of the following statement for the given string (i to vi)? S = “Programming and Problem Solving” i) print(S[16:]) ii) print(S[:28:2]) iii) print(S[:19:1]) iv) print (“and” in S) v) print(S[::2]) vi) print(S[::-1])

      Also asked:May 2023

      [6]
  4. Q4

    1. a)

      Explain the following string methods with an example i) title ( ) ii) rstrip ( )

      [5]
    2. b)

      Explain the following with suitable example i) ord ( ) function ii) chr ( ) function

      Also asked:Feb 2026 ·May 2025 ·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]
  5. Q5

    1. a)

      Explain the following programming paradigm i) Monolithic Programming ii) Structured Programming

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

      [6]
    2. b)

      Explain the following with a suitable example i) Inheritance ii) Function overriding iii) Class Variables

      [6]
    3. c)

      Write a program to calculate the area of a square and rectangle using a class. 3

      Also asked:May 2024

      [6]
  6. Q6

    1. a)

      Explain the following with a suitable example i) Class Method ii) Object iii) Constructor

      [6]
    2. b)

      Explain the following programming paradigm i) Procedural Programming ii) Object Oriented Programming

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

      [6]
    3. c)

      Write a program to create a class Book with two attributes Name and Author. Create 3 objects and display the information.

      Also asked:May 2025 ·Nov 2023

      [6]
  7. Q7

    1. a)

      Differentiate between text and binary files

      Also asked:May 2025 ·Nov 2023 ·May 2023

      [6]
    2. b)

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

      [6]
    3. c)

      Write a python program that read data from one file and writes into another file line by line Hint: First line in the original file will be the first line in copied file

      [6]
  8. Q8

    1. a)

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

      [6]
    2. b)

      Explain the following access modes i) rb ii) rb+ iii) ab+

      [6]
    3. c)

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

      [6]