0% found this document useful (0 votes)
17 views

UNIT 5_Python programming _QUESTION BANK_2023-24

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

UNIT 5_Python programming _QUESTION BANK_2023-24

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ABES ENGINEERING COLLEGE, GHAZIABAD

Unit-5
QUESTION BANK
SUBJECT NAME: PYTHON PROGRAMMING
SUBJECT CODE: BCC-302

Q.No Description CO BL
Write a Python program to create a line plot using matplotlib that
1 CO5 K2
displays the population growth of a city over 10 years.
Create a NumPy array with random integers and write a function to
2 CO5 K3
find the mean, median, and standard deviation of the array.
Implement matrix multiplication using NumPy arrays and explain the
3 CO5 K3
advantages of using NumPy for matrix operations.
Load a CSV file into a Pandas DataFrame and display basic statistics
4 (mean, median, std) for a specific column. Explain the concept of CO5 K3
merging and joining in Pandas with suitable examples.
Describe the purpose and usage of the Tkinter library in Python for
5 CO5 K2
creating graphical user interfaces (GUIs).
6 List and explain some common Tkinter widgets and their use cases. CO5 K2
Create a simple Tkinter application that takes user input in a text box
7 and displays it in a label widget when a button is clicked. CO5 K3

Discuss the event-driven programming model in Tkinter and how it


8 CO5 K2
differs from procedural programming.
Create a Tkinter program that uses at least three different types of
9 widgets, such as buttons, labels, and entry fields, to build a basic CO5 K3
calculator.
Develop a Tkinter application that allows users to browse and select
10 CO5 K3
an image file from their computer and display it on the GUI.
Compare and contrast the popular Python Integrated Development
Environments (IDEs) like PyCharm, VSCode, and Jupyter
11 Notebook. Discuss their strengths and weaknesses. CO5 K2
Describe the steps to set up a Python project in your preferred IDE,
including creating virtual environments and managing dependencies.
Create a bar chart using Matplotlib that visualizes the sales data for a
12 set of products over a month. Add labels, titles, and customize the CO5 K3
chart appearance.
Describe the purpose of broadcasting in NumPy and provide an
13 CO5 K2
example where it is useful.
Discuss the role of the root window in a Tkinter application and
14 CO5 K2
explain how it is created and configured.
Create a Tkinter program that uses the Listbox widget to implement
15 a simple to-do list application with options to add, remove, and mark CO5 K3
tasks as complete.
ABES ENGINEERING COLLEGE, GHAZIABAD

Discuss the advantages and disadvantages of various geometry


16 CO5 K2
managers in Tkinter, such as pack(), grid(), and place().
Write a Python program that reads data from an Excel spreadsheet
17 using Pandas, performs data analysis, and generates a new Excel file CO5 K2
with the results.
Explain the difference between plot() and scatter() functions in
18 CO5 K2
Matplotlib, and when to use each.
Describe the event-driven programming paradigm in the context of
19 Tkinter and explain how it differs from traditional procedural CO5 K2
programming.
Develop a Tkinter application for a basic calculator with a user-
20 friendly interface for addition, subtraction, multiplication, and CO5 K2
division.

You might also like