
Introduction to NumPy (easy)
Authored by Prynze Reyes
Computers
University
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
line 1: import numpy as np
line 1: import numpy as np
line 2: array = ______ ([1,2,3,4,5])
array
FILL IN THE BLANK
np.Array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Line 1: array = np.array([1,2,3,4,5])
Line 2: print(array[2])
What will the code print?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
array = np.array([1,2,3,4,5])
array[1] = 7
print(array)
What does line 3 do?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
array = np.array([1,2,3,4,5])
array[1] = 7
print(array)
What will the code print?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
array = np.array([1,2,3,4,5])
array += 10
print(array)
What does this code print?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
array = np.array([1,2,3,4,5])
sum_all = np.sum(array)
print(sum_all)
What is the result of this code?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
array = np.array([1,2,3,4,5])
sum_all = ______(array)
print(sum_all)
Fill in the blank
np.Sum
np.addition
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?