0% found this document useful (0 votes)
10 views3 pages

Unit 5 previous year papers

The document contains a series of previous year questions divided into short and long answer sections, focusing on Python programming concepts, libraries, and GUI development. It covers topics such as Python packages, modules, data handling with NumPy and Pandas, and the use of IDEs. Additionally, it includes practical programming tasks and examples related to password validation, text filtering, and data visualization.

Uploaded by

sattyam349
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Unit 5 previous year papers

The document contains a series of previous year questions divided into short and long answer sections, focusing on Python programming concepts, libraries, and GUI development. It covers topics such as Python packages, modules, data handling with NumPy and Pandas, and the use of IDEs. Additionally, it includes practical programming tasks and examples related to password validation, text filtering, and data visualization.

Uploaded by

sattyam349
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Unit - 05 (Previous Year Questions)

**************************************

# Short Answers ( 2 Marks)

[1]. What is PIP?

[2]. Differentiate between package and module.

[3]. Differentiate between built-in packages and user-defined packages.

[4]. List some Python IDs.

[5]. How can you uninstall a Python package?

[6]. How do you import a module from a package in Python?

[7]. Differentiate between plt.plot and plt.scatter.

[8]. What is Broadcasting in NumPy?

[9]. What is Purpose of np.zeros function in NumPy?

[10]. What is DataFrame in Pandas?

[11]. What does GUI stand for? Name one popular library for creating GUI applications in Python.

[12]. What is the key difference between GUI and Command Line Interface (CLI) ?

[13]. What is Purpose of callback function in GUI programming?

[14]. How does an IDE differ from a text editor in terms of functionality?

[15]. Explain the programming cycle for Python in detail.

[16]. Show the way to import the module in Python.

[17]. Explain features of any two Python IDEs.

[18]. Discuss why Python is called as dynamic and strongly typed language ?

# Long Answers (7 Marks)

[1]. What is a Python Package? List various steps to create a package in Python.

[2]. What is Python Module? How to create and import a module in Python. What is the significance
of module in Python?

[3]. What are the methods of importing a module? Explain with suitable examples.

[4]. What is the Python Libraries? List some of the important Python libraries.

[5]. How can you create a Python file that can be imported as a library as well as run as a standalone
script?
[6]. Describe the difference between ' import library ' and ' from library import * ' . When used in a
Python program, here library is some Python library.

[7]. Define matplotlib. List some built-in functions in matplotlib.

[8]. Write a program to plot a simple line graph using matplotlib. Also, create this on a bar chart and
histogram.

[9]. Write a NumPy program to create a two-dimensional array of size 2x3 composed of 4 byte
integer elements. Also, print the shape, type, and data type of the array. [10]. What is GUI in
Python? With example.

[11]. What is tkinter and why it is used in Python programming? What are widgets in tkinter and can
you give example of some commonly used widgets?

[12]. What is python? How python is interpreted? What are the tools that helps to find bugs or
perform static analysis? What are python decorators?

[13]. What is an IDE? Discuss some python IDE.

[14]. Write short notes with example :

(i) The programming cycle for python,

(ii) Elements of python,

(iii) Type conversion in python,

(iv) operator precedence, and

(v) boolean expression.

[15] . What do you mean by comments in python?

[16]. How memory is managed in python? Explain pep8. Write a python program to print even
length words in a string.

[17]. A website requires the users to input username and password to register. Construct a program
to check the validity of password input by users. Following are the criteria for checking the password:

1. At least 1 letter between [a-z]

2. At least 1 number between [0-9]

3. At least 1 letter between [A-Z]

4. At least 1 character from [$#@]

5. Minimum length of transaction password: 6

6. Maximum length of transaction password: 12

Your program should accept a sequence of comma separated passwords and will check them
according to the above criteria. Passwords that match the criteria are to be printed, each separated
by a comma.
[18]. . Construct following filters:

1. Filter all the numbers.

2. Filter all the strings starting with a vowel.

3. Filter all the strings that contains any of the following noun: Agra, Ramesh, Tomato, Patna.

Create a program that implements these filters text. to clean the text .

[19]. Change all the numbers in the file to text. Construct a program for the same.

Example:

Given 2 integer numbers, return their product only if the product is equal to or lower than 10.

And the result should be:

Given two integer numbers, return their product only if the product is equal to or lower than
one zero.

[20]. Construct a program which accepts a sequence of words separated by whitespace as file input.
Print the words composed of digits only.

[21]. Construct a program to read cities.csv dataset, remove last column and save it in an array. Save
the last column to another array. Plot the first two columns.

[22]. Design a calculator with the following buttons and functionalities like addition , subtraction ,
multiplication , division and clear . ( By Tkinter)

You might also like