4gI 0
0COg
5gOgUVgt 5E gItgg 55 1 4gI NCt 5 RRNgOgpVCt
ORt gOgpV COKpCVK p 0 gODgt
OKUUK pU
tg tUg Kp OR Vgt 5EKgpEg
5 1/2 6 6 10 5 0) 2 6 10
WT C CTM
4
5 tV pUygt
P T CNN W P
JC J rWTr H J H C P P J P
2. How do you de ne a class in Python ?
3. How do you import a module in Python ?
4. How do you add a checkbox to a Tkinter window ?
5. How do you commit a transaction in Python ?
6. How do you check if a le is closed in Python ?
4
5 tV UUC
P T Cp W P
7. i) How many lines of output will be there in the following statement ?
print (‘Good Morning How are you ?’)
W H WT CP T
8. Write a program that prompts users to enter two integers x and y. In addition,
the program should compute and display x
9. What is a class ? How do you de ne it ?
261
10. Explain the concept of list slicing in Python.
11. What is the difference between a list and an array in Python ?
12. How do you add widgets to a Tkinter frame ?
13. Write a program that uses functions to nd the maximum and minimum values
in a list.
14. “Two strings can be added and multiplied”. With the use of an example, explain
J C P
4
UUC
P T Cp W P
15. What are the different ways to run a python program ?
16. How do you add an entry eld to a Tkinter window ?
17. What you understand about the rule of associativity ? Explain with example.
18. Compare keyword arguments and required arguments in Python functions.
19. How will you rename a le in python with an example ?
20. Differentiate between class and object in Python.
4
. pI UUC
P T Cp Vy W P
21. Explain in detail about Shape Manipulation in arrays.
22. Elaborate on the role of the following three statements in a control loop with
suitable example :
i) break
ii) continue
rC
23. With an example, describe the function and types of arguments in Python.
24. Explain the concept of GUI programming using Tkinter.
aaaaaaaaaaaaaa