Programming Fundamentals Using Python — DU B. Sc. (Hons) Electronics Previous Year Question Papers
- Programme
- B. Sc. (Hons) Electronics
- Paper type
- DSC
- Paper code
- 2512011101
- Exam years
- 2024–2025
Programming Fundamentals Using Python is a DSC paper in Semester I of B. Sc. (Hons) Electronics at Delhi University (paper code 2512011101). 4 previous year question papers from 2024–2025 are listed below; view or download each original PDF.
2025 question papers
2025
2512011101B. Sc. (Hons) Electronics
2025
2512011101B. Sc. (Hons) Electronics
2024 question papers
2024
2512011101B. Sc. (Hons) Electronics
2024
2512011101B. Sc. (Hons) Electronics
What was asked in the 2025 Programming Fundamentals Using Python paper?
Text of the nov dec 2025 DU question paper (UPC 2512011101), so you can see what gets asked before opening a PDF.
(b) Create a Numpy array representing the average temperature (in °C) for 12 months:
months = [`Jan', `Feb', `Mar', `Apr', `May', `Jun',
Plot a bar graph .of temperature vs months using
Matplotlib. Add markers, title, and x-axis labels as month names. (6+6+6)
Name.of the Course : B.Sc. (H) Electronics
1. (a) Evaluate the following expression:
(i) Create Pandas DataFrame using the above data and display it.
(ii) Add a new column named Total Sales, calculated as:
(b) Examine the following code and identify any errors, if present. Provide a brief justification for your answer
Total_Sales = Units_Sold x Price_per_Unit total-0
for i in range(1,N+1):
for j in range(1,N+1):
total+-j print(total)
(iii) Find the T.otal sales for each month
(b) Create a class Rectangle with attributes: length and width.
Member methods: Area() that returns the area of the rectangle.
Perimeter() that returns the perimeter of the rectangle.
(c) Explain how .Ioc[] and .iloc[] differ when selecting data from a DataFrame.
Display() that prints the rectangle's length, width, area, and perimeter in a readable format.
clef show():
Create an object of the class and display their details using the Display() method.
print("Inside function, x =", x)
A line plot of heights (y-axis) vs.
time|]oints (x-axis).
A title: "Projectile Trajectory Simulation".
Labels for the axes: "Time (s)" and
7. (a) A store keeps track of its monthly sales for two products: Pen and Book. The data is as follows :
Montfr Product Units sold Price_per_Unit
Jan Pen 120
Jan Book 80
Feb Pen 150
Feb Book 60.
Mar Pen 130
Mar Book 100
Apr Pen 170
print("Outside function, x =", x)
Trace the output of the above program and identify which x is local and which is global in the above code. Explain why the values of x inside and outside the function differ.
(e) Define a function mix(a, b=2) that returns a*b + b. Give outputs for: mix(3), mix(b=5), mix(4' b-3).
(D Give the output of the following python snippet setl = {|0, 20, 30, 40, 50, 60}
print(setl|set2)
print(setl&set2) (3x6-18)
2. (a)Write a Python program to demonstrate the use of identity operators and membership operators.
(b) Write a Python program to display a pyramid pattern using nested loops.
t = time in seconds
vo = initial vertical velocity (in in/s)
g = acceleration due to gravity (in in/s2)
Assume vo = 50m/s and g = 9.8m/s
(c) What will be the output of the following Python code :
(i) Create a Numpy array named time_points that represents time from 0 to 10 seconds
(both inclusive) with a step of 0.1 seconds.
(ii)Using this array, calculate the corresponding heights of the projectile.
(iii) print (a ^ b)
(iii) Determine and print the maximum height reached by the projectile, and the time at which the maximum height occurs.
(iv) Generate a plot showing the trajectory of the projectile. The plot must include:
ii) Add a new country and capital into the created dictionary.
(iii) Remove any one country and its capital from the created dictionary.
How can I prepare for Programming Fundamentals Using Python?
Related subjects in B. Sc. (Hons) Electronics
Frequently asked questions
- Where can I download the DU Programming Fundamentals Using Python previous year question paper PDF?
- This page lists 4 Programming Fundamentals Using Python question papers for B. Sc. (Hons) Electronics at Delhi University (2024–2025). Open any paper to view the original PDF or download it. It is free and needs no login.
- Which years of Programming Fundamentals Using Python question papers are available?
- Programming Fundamentals Using Python papers are available for 2025, 2024.
- What is the paper code (UPC) of Programming Fundamentals Using Python?
- The Unique Paper Code for Programming Fundamentals Using Python in B. Sc. (Hons) Electronics is 2512011101.
- Which semester is Programming Fundamentals Using Python taught in?
- Programming Fundamentals Using Python is a DSC paper in Semester I of B. Sc. (Hons) Electronics, according to DU's published scheme.
