python important question
python important question
Unit 1
2 mark questions:
1. Define python
2. Who developed python?
3. What are the benefits of using python?
4. What is python interpreter?
5. What are the main features of python?
6. What is the use of indentation feature in Python?
7. Why Python is called an interpreted language?
8. What is the process of executing a python code?
9. List out the applications of python.
10. What is the purpose of type() function in Python.
11. Explain the difference between set and frozen set data types in Python.
12. What are mutable and immutable data types in Python.
13. What is type conversion in Python?
14. What is the function used to print output in Python?
15. What is % operator in string formatting in Python?
16. Give the difference between break and continue statement in Python.
17. Define function. List the types of functions in Python.
18. List out the advantages of functions.
19. What are built- in functions and user -defined functions.?
20. Give the syntax for defining a function.
21. What are void functions?
22. What are local and global variables?
23. Define module.
24. Give the difference between actual and formal parameters.
25. Define string.
26. What is slicing?
27. What is the purpose of join method?
5 / 8 Marks Questions:
Unit 2
2 mark questions:
a, b, c = my_tuple
5 / 8 Marks Questions:
2 mark questions:
1. Define a file.
2. What are the types of files?
3. Differentiate binary file and text file.
4. What is meant by absolute and relative file path?
5. What is the purpose of opening and closing a file?
6. Give the difference between tell() and seek() method in Python.
7. What are the attributes of a file object in Python?
8. What is pickle module in Python?
9. What is meant by pickling and unpickling in Python?
10. What is the CSV file in Python?
11. What is the difference between dump() and load()?
12. Define object oriented programming.
13. Define class and object in Python.
14. Define inheritance and polymorphism in OOP.
15. What is abstraction?
16. What is Duck typing in Python?
17. What are the access modifiers in Python?
18. Give the difference between class attributes and data attribute in Python.
19. What are the two types of polymorphism in Python?
20. Define Pandas and Data frames in Python.
5 / 8 Marks Questions:
Unit 4
2 marks questions:
1. What is data visualisation?
2. What is MATPLOTLIB?
3. What is JSON?
4. Mention any four methods of matplotlib library.
5. How to save a plot or a chart in matplotlib?
6. Mention different JSON formats.
7. Define Plotly.
8. What is an API and Web API?
9. What is API key?
10. What is GIT and GITHUB?
5 / 8 Marks Questions: