
Quiz 9
Authored by Moirangthem Sonia
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which NumPy function is used to compute the square root of elements in an array?
np.sqrt()
np.power()
np.exp()
np.square()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
arr = np.array([1, 4, 9])
print(np.sqrt(arr))
What will be the output?
[1 2 3]
[1 16 81]
[1.0 2.0 3.0]
[1, 16, 81]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which NumPy function calculates the exponential of an array element-wise?
np.log()
np.exp()
np.e()
np.power()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The common alias for matplotlib.pyplot is:
plt
map
mp
graph
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to plot a line graph in matplotlib?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To plot multiple lines on the same graph, you:
Call plt.plot() multiple times before plt.show()
Use plt.multi()
Use plt.lines()
Cannot plot multiple lines
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which argument in plt.plot() changes the color of a line?
color=red
style=red
color='red'
None
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?