Object Oriented Programming Using Python — DU B.Sc. (Prog) Physical Science courses pertaining to Computer Science Previous Year Question Papers

Programme
B.Sc. (Prog) Physical Science courses pertaining to Computer Science
Paper type
DSE
Paper code
2343570001
Exam years
2025–2025

Object Oriented Programming Using Python is a DSE paper in Semester III of B.Sc. (Prog) Physical Science courses pertaining to Computer Science at Delhi University (paper code 2343570001). 2 previous year question papers from 2025 are listed below; view or download each original PDF.

Share with your class: WhatsApp Telegram

2025 question papers

2025

B.Sc. (Prog) Physical Science courses pertaining to Computer Science

2343570001
2025

B.Sc. (Prog) Physical Science courses pertaining to Computer Science

2343570001

What was asked in the 2025 Object Oriented Programming Using Python paper?

Text of the nov dec 2025 DU question paper (UPC 2343570001), so you can see what gets asked before opening a PDF.

(b) Draw a flowchart to compute the factors of a given number. Write python statements for the following (5) i. Initializing x to 7 and incrementing the value by 1 (6) (c) ili. Store the integer division of x and y in z ii. Assign a string to the variable str and print the subset of characters of the string. (d) Write a function to check whether a given number is prime or not. Give the output of the following code snippet: (5) sumt=x print (sum) ii. str='Hello'. print (str[::-1]) (e) Given the following dictionary Write python statements for the following: d=('Gita': 45, 'Siya': 78, 'Sarika': 90} (8) (3) ili. Display the list of names and marks in the following format Name marks_obtained returns the reverse of Ist in a new list. Write a function in python reverse (Ist) that takes list Ist as a parameter and (5) (b) Write a program to generate the following pattern where the height of the pattern, 'h', (5) is input from the user. (0) Give the output of the following code: i. print (56**2//1883) print (10!=9 and 38>=38) ili.. print ('Welcome'*4) iv. print ('1' in 'Hello') 03 (a) Write a function that takes a string as input and returns the number of characters, vowels (5) and words as a tuple. (b) Let's assume a string- str1= 'house no123 ,Rajnagar Extension, Uttar Pradesh', What will be the output on executing each of the following statements: i. print (strl. find('no"')) ii. print (stri.split(' ")) iv. print (strl.is alpha ()) Write a program using function to swap two numbers with and without using a (5) v. print (str1. replace ('e', 'u")) (c) temporary variable. (9) Q4 (a) Given the output of the following code snippets i. c=[23,45,67,89,90, 123] ii. subject=" computer' subject=list (subject) for i in range (0, 1en (subject) -1) : subject [il=subject [i+1] subject [len (subject) -1]=ch print('" • join (subject)) iii. Fruits=| 'lemon', 'orange', 'grapes', 'apple', 'pineapple', 'ki wi'l Vegetables=['spinach', 'caultiflower', 'lady finger') print (Fruits and Vegetables) print (Fruits or Vegetables) print (Fruits- add ('Pomegranate"), (b) in it. Create a dictionary 'd' to store the vowels and their frequency present in the Write a program that takes a sentence as input and computes the frequency of vowels (6) another file, 'file2.txt'. Use appropriate exception handling during the file Write a function that reads the file 'file1. txt" and copies odd-numbered lines to (5) (b) Consider the following function computeSquareRoot (): import math (б) a=int (input ('Enter the value')) result=math.sqrt(a) except ValueError: print ('value error') except IypeError: print ('typeerror') else: print ('unexpected error') print (result) print ('End task') a='13' and a='-56'. Determine the output for the above function call when the value entered for a= "h', (c) Find the error in the following code snippet: F1=open ('Al.txt') (4) E1. write ("welcome") Rewrite the above code with the use of exception handling.

How can I prepare for Object Oriented Programming Using Python?

Related subjects in B.Sc. (Prog) Physical Science courses pertaining to Computer Science

Frequently asked questions

Where can I download the DU Object Oriented Programming Using Python previous year question paper PDF?
This page lists 2 Object Oriented Programming Using Python question papers for B.Sc. (Prog) Physical Science courses pertaining to Computer Science at Delhi University (2025). Open any paper to view the original PDF or download it. It is free and needs no login.
Which years of Object Oriented Programming Using Python question papers are available?
Object Oriented Programming Using Python papers are available for 2025.
What is the paper code (UPC) of Object Oriented Programming Using Python?
The Unique Paper Code for Object Oriented Programming Using Python in B.Sc. (Prog) Physical Science courses pertaining to Computer Science is 2343570001.
Which semester is Object Oriented Programming Using Python taught in?
Object Oriented Programming Using Python is a DSE paper in Semester III of B.Sc. (Prog) Physical Science courses pertaining to Computer Science, according to DU's published scheme.

← All B.Sc. (Prog) Physical Science courses pertaining to Computer Science subjects