Important Question Python
Important Question Python
Unit-II
Chapter-5
1. What is a function in python? How to call a function. Write an example
2. Write about local and global variables.
3. Write about Indentation in Python
4. Write about the concept of scope of a variable in a function
5. Explain about passing arguments to function with an example.
6. Explain about value returning in functions with an example
7. Explain abour random numbers. Or random module with syntax
8. Explain about math module and write the various functions and methods with an example.
Chapter-6
9. What is a file and features of file
10. Exaplain about file input and output in python
11. Write about file processing records
Chapter-7
12. Write in brief about Lists in python.
13. Explain about methods in Lists of Python with appropriate examples.
14. What are the different operations that can be performed on a list? Explain with examples.
15. Explain about two dimensional lists with an example
16. Write in brief about Tuple in python. Write operations with suitable examples.
17. Write in brief about Sequence in python.Write operations with suitable examples.
18. Compare List and Tuple.
19. What is a Module? Explain usgae of import module, list some module names in python
20. What do you mean by slicing in lists