PythonQuestion bank for Exam preparation
Q.1 How to develop any type of mathematics-related problems(like finding the square, average,
mean of a number or to develop calculator ) using user defined packages in python.
Q.2 Discuss the difference in between entry and text widget using tkinter.
Q.3 Analyze the working of pack(), grid(),place() using python programming with example.
Q.4 Proof the working of user defined exception handling for voting system.
Q.5 justify the working of following widget with examples and algorithm:
a) frame widget
b) Labelframe widget
c) Toplevel frame widget
d) canvas widget
e) spinbox widget
f ) scrollbar widget
g) button widget
h) radibutton widget
i) checkbox/ checkbutton widget
j) menubutton
k) listbox
k)Entry and text widget
Q.6 What is progress bar and how it is being created using tk library method.
Q.7 Analyze the working of menubar for creating student database sytem.
Q.8 Justify the working of lambda function using following methods to compute the square ,
average, mean of a number :
1 reduce()
2 sort()
3 filter()
4 map()
Q.9 Compare the working of module and the package
Q.10 WAP a program for following exception with algorithm:
a) Name error
b) Value Error
c) key error
d) file not found error
e) zero division error
Q.11 How finally block works in exception handling justify using syntax of it with program
Q.12 What is the syntax of exception handling explain.
Q.13 Explain the working of user defined exception for bank balance system. If balance in the
account is below 2000 then user has to raise that exception as a result.
Q.14 Create a text file using [Link] extension and store at least 15 lines inside it, now user will
search 8th line and will print 7th character of 8th line. Design the solution for this problem statement
using file processing.
Q.15 Design a program in python using read(), readline(), readlines() with algorithm.
Q.16 Compare the working of r, r+, w, w+, a, a+, rb, wb methods using examples.
Q.17 What do you mean by file directory explain.
Q.18 Write all building methods of file directory which is used to create, rename, update, delete a
directory in file processing.
Q.19 Differentiate between seek(), tell() using python programming.
Q.20 Justify the working of seek(0), seek(1.7),seek(-1),seek(1,2) with examples.
Q.21 Compare the canvas widget with any other widget and justify its working using python
programming.
Q.22 what are the attributes and methods of following widgets explain in detail:
a) frame widget
b) Labelframe widget
c) Toplevel frame widget
d) canvas widget
e) spinbox widget
f ) scrollbar widget
g) button widget
h) radibutton widget
i) checkbox widget
j) menubutton
k) listbox
k)Entry and text widget
Q.23 What is the importance of frame widget and how it is different then other widgets .
Q24 Inspect a Python program that implements exception handling to manage invalid index errors
and display an appropriate message.
Q.25 What is tkMessagebox widget explain with example.
Q.26 Discuss the various build in methods of sys modules and os module
Q.27 Use NumPy to create an array and perform arithmetic operations on it using python
programming.
Q.28 how different import statements work inside the code to access modules from a package using
python programming.
Q.29 Use Matplotlib to display a bar chart and straight line in python.
Q.30 How progress bar works justify your answer using programming.