Skip to content
EndsemNov 20232019 patternFE

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

Printed for: F.E.

Questions

  1. Q1

    1. a)

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

      [6]
    2. b)

      Differentiate between local and global variables.

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

      [6]
    3. c)

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

      Also asked:May 2025 ·May 2023

      [5]
  2. Q2

    1. a)

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

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

      [6]
    2. b)

      Explain user defined module and package in Python.

      Also asked:May 2025 ·Nov 2024 ·May 2024

      [6]
    3. c)

      Write a program to perform addition of two numbers using lambda function.

      [5]
  3. Q3

    1. a)

      Explain string indexing and slicing with suitable example.

      Also asked:May 2022

      [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 ·May 2025 ·May 2023 ·May 2022

      [6]
    3. c)

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

      [5]
  4. Q4

    1. a)

      Explain string format method with suitable example.

      [6]
    2. b)

      Explain following string methods with example. i) title() ii) capitalize() iii) lower()

      [6]
    3. c)

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

      Also asked:May 2025 ·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 ·May 2025 ·Nov 2024 ·May 2024 ·May 2023

      [6]
    2. b)

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

      Also asked:May 2025 ·Apr 2025 ·May 2024 ·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 2 employees.

      Also asked:May 2025

      [6]
  6. Q6

    1. a)

      Explain the following features i) Class ii) Inheritance iii) Polymorphism

      [6]
    2. b)

      Explain class method and self-object with suitable example.

      Also asked:May 2025

      [6]
    3. c)

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

      Also asked:Nov 2025 ·May 2025

      [6]
  7. Q7

    1. a)

      What is a file? Explain relative and absolute path of a file.

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

      [6]
    2. b)

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

      Also asked:May 2025 ·Nov 2024 ·May 2024

      [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 ·May 2025 ·May 2023

      [6]
    3. c)

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

      [6]