Python QB
Python QB
2 Marks
4 Marks
1. Write a program to create class EMPLOYEE with ID and NAME and display its contents
2. Explain how to use user defined function in python with example
3. Write a program for importing module for addition and substraction of two numbers
4. Write a program illustrating use of user defined package in python
5. Explain any four Python's Built-in Function with example.
6. With neat example differentiate between readline( ) and readlines( ) functions in file-handling.
7. Describe 'Self' Parameter with example.
8. Explain any four file modes in Python.
9. Write a program to show user defined exception in Python.
10. Explain Module and its use in Python.
11. Explain method overloading and overriding in python.
12. Explain Numpy package in detail.
13. Explain lambda function with syntax and example
14. WAP to read contents of first.txt file and write same content in second.txt file
15. Describe following Standard Packages i)matplotlib ii) Pandas
16. Write a python program to create a user defined module that will ask your program name and
display the name of the program
17. Write a program function that accepts a string and calculate the number of uppercase letters
and lower case letters.
18. Write a python program to create class student with roll-no and display its contents.
19. Explain following functions with example: i)open( ) ii)write( ) iii)close() iv) read()
20. Describe Exception in Python With Suitable Example.