Skip to content
EndsemMay 20232019 patternFE

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

  1. Question one is compulsory.
  2. Solve Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6 and Q.7 or Q.8.
  3. Neat diagrams must be wherever necessary.
  4. Assume suitable data wherever necessary.

Questions

  1. Q1

    1. a)

      Explain in-built and user defined functions with syntax and suitable example.

      [6]
    2. b)

      Explain the following terms with suitable examples. i) local variable ii) global variable

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

      [6]
    3. c)

      Write a program to check whether a number is prime or not using function.

      Also asked:May 2024

      [5]
  2. Q2

    1. a)

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

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

      [6]
    2. b)

      Explain different ways of importing an in-built module in python with suitable example.

      [6]
    3. c)

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

      Also asked:May 2025 ·Nov 2023

      [5]
  3. Q3

    1. a)

      Justify strings are immutable with example.

      [6]
    2. b)

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

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

      [6]
    3. c)

      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

      [5]
  4. Q4

    1. a)

      Explain string format operator with suitable example.

      [6]
    2. b)

      Explain following string methods with example. i) title() ii) startswith() iii) zfill()

      [6]
    3. c)

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

      Also asked:May 2025 ·Nov 2023

      [5]
  5. Q5

    1. a)

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

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

      [6]
    2. b)

      Explain the following concepts with example. i) public members ii) private members

      [6]
    3. c)

      Write a python program to create a class Student with the attributes Name, roll no and age and display data of 4 students.

      [6]
  6. Q6

    1. a)

      Explain any three object oriented features in brief.

      Also asked:Feb 2026 ·Apr 2025

      [6]
    2. b)

      Explain class method and class variable with suitable example.

      [6]
    3. c)

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

      Also asked:Nov 2024

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

      [6]
    2. b)

      Explain the following file handling methods. i) write() ii) writelines() ii) close()

      [6]
    3. c)

      Explain file access modes in brief.

      Also asked:Nov 2024 ·May 2024 ·May 2022

      [6]
  8. Q8

    1. a)

      Explain different directory methods with example.

      Also asked:May 2022

      [6]
    2. b)

      Differentiate between text and binary files.

      Also asked:Nov 2025 ·May 2025 ·Nov 2023

      [6]
    3. c)

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

      [6]