Unit 5 previous year papers
Unit 5 previous year papers
**************************************
[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) ?
[14]. How does an IDE differ from a text editor in terms of functionality?
[18]. Discuss why Python is called as dynamic and strongly typed language ?
[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.
[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?
[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:
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:
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.
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)