Page 485 - AI Ver 3.0 class 10_Flipbook
P. 485
8. Which of the following operator is used for floor division?
a. / b. //
c. % d. **
9. Which data type is used to store mobile number?
a. Int b. Float
c. String d. Boolean
10. What is the output for the following code?
if True:
print(1001)
else:
print(2002)
a. 1001 b. true
c. 2002 d. false
11. Choose the correct option with respect to Python.
a. Both tuples and lists are immutable b. Both tuples and lists are mutable
c. Tuples are immutable while lists are mutable d. Tuples are mutable while lists are immutable
12. A powerful tool for interactively developing and presenting Machine Learning projects with the help of Python.
a. Anaconda b. Ipython
c. MathLab d. Jupyter
B. Fill in the blanks.
1. ………………………. parameter with print() gives a separator between the objects.
2. The reserved words in Python are called ………………………..
3. The ………………………. statement is optional and if required can be only one in one if block.
4. ………………………. is used to take input from the user.
5. ………………………. is a name given to a memory location to hold a specific value.
6. ………………………. operators which take the value of the operand on the right side, perform an operation and assign a
new value to the operand on the left side.
7. ………………………. and ………………………. are used for division in Arithmetic operators.
8. Python got its name from ………………………..
9. The ………………………. module in SciPy focuses on operations related to linear algebra, such as matrix factorization and
eigenvalue problems.
10. To install SciPy in Python, you need to use the command ………………………..
11. To create a vertical bar chart, you can use the function ………………………. in Matplotlib.
12. The function ………………………. is used to specify the values of the y-axis in Matplotlib.
13. To create a Series using a Python list, the code will be pd.Series([………………]).
14. Missing data, represented as ………………………. is easily and efficiently handled, regardless of data type.
15. A NumPy array can have multiple dimensions, where a two-dimensional array is called a ………………………..
C. State whether these statements are true or false.
1. Python is free and open source. ……….……
2. Datatype of ‘12’ is integer. ……….……
Advance Python (Practical) 483

