
Python - Numpy Quiz 1
Authored by Max Diender
Professional Development, Computers
University - Professional Development
Used 59+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to create a NumPy array?
np.createArray([1, 2, 3, 4, 5])
np.array([1, 2, 3, 4, 5])
np.object([1, 2, 3, 4, 5])
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to print the numbers [3, 4, 5] from the array below:
arr = np.array([1,2,3,4,5,6,7])
print(arr[2:5])
print(arr[2:6])
print(arr[2:4])
print(arr[3:6])
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to return the shape of an array?
shape(arr)
arr.shape
arr.shape()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct syntax to reshape the array below into 4 arrays with 3 elements?
arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
newarr = arr.reshape(3, 4)
newarr = arr.shape(3, 4)
newarr = arr.reshape(4, 3)
newarr = arr.shape(4, 3)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct method to join two or more arrays?
np.join()
np.array_join()
np.concatenate()
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?
Similar Resources on Wayground
10 questions
Python Quiz Techno India
Quiz
•
University
10 questions
DS Quiz1
Quiz
•
University
10 questions
cp06-01-1D-Array
Quiz
•
University
10 questions
Overview of Java Web Development
Quiz
•
University
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8
Quiz
•
University - Professi...
10 questions
ôn tập học kỳ 1-lớp 5
Quiz
•
2nd Grade - University
10 questions
Listen in Python
Quiz
•
University
10 questions
Letter & Email
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade