Page 483 - AI Ver 3.0 class 10_Flipbook
P. 483
14. The ………………………. function in Matplotlib allows you to add a label to the x-axis of a plot.
15. The scipy.linalg module in SciPy focuses on ………………………. operations, such as matrix factorization and eigenvalue
problems.
16. The scipy.stats module offers a wide range of ………………………. distributions and statistical functions.
C. State whether these statements are true or false.
1. Python code is compiled by a compiler. ……….……
2. Complex data type is made up of real and imaginary numbers. ……….……
3. Data once created cannot be changed. ……….……
4. Identifiers are the user-defined names of variables. ……….……
5. Comments can be given on single line or multi lines. ……….……
6. NumPy arrays allow mathematical operations on each element without using loops. ……….……
7. Python lists can only store elements of the same type, like NumPy arrays. ……….……
8. SciPy is built on the NumPy extension of Python. ……….……
9. SciPy's scipy.signal module is used for image processing tasks. ……….……
10. The hist() function in Matplotlib is used to create a pie chart. ……….……
11. The linewidth parameter in Matplotlib controls the thickness of the line in a plot. ……….……
12. Pandas supports both ordered and unordered time series data. ……….……
13. In Pandas, the data in a Series cannot be indexed. ……….……
14. It is not necessary to import cv2 for OpenCV. ……….……
15. By default, OpenCV represents the images in BGR. ……….……
D. Match the following:
1. Anaconda a. Default kernel
2. IPython b. No effect on output
3. Jupyter notebook interface c. GUI
4. Kernel d. Python interpreter
5. Comments e. Computational engine
SECTION B (Subjective Type Questions)
Short answer type questions.
1. Define Arrays.
Ans. Arrays are an ordered collection of values of the same data type that can be arranged in one or more dimensions. They
can store numbers, characters, Boolean values, etc.
2. What is the main advantage of using NumPy arrays over Python lists?
Ans. The main advantage of using NumPy arrays over Python lists are:
• NumPy arrays are more memory effecient while Python List occupies more memory.
• NumPy arrays are mostly used for scientific computing, numerical operations, and data analysis while Python list are
used for data storage and management.
Advance Python (Practical) 481

