Numpy

Quiz
•
Other
•
Professional Development
•
Medium
Satish Gupta
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to check the number of dimensions in an array?
arr.ndim()
arr.dim
arr.dim()
arr.ndim
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How to create an array of 5 elements, all of which are 0/1 in Numpy
np.zeros(5) / np.ones(5)
np.array([0,0,0,0,0] )/ np.array([1,1,1,1,1])
np.arange(0)/np.arange(1)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Only one of the following statements is true when it comes to Copies in NumPy, which one?
The copy SHOULD be affected by the changes made to the original array.
The copy SHOULD NOT be affected by the changes made to the original array.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which syntax would print the array as in reverse order:
arr = np.array([1,2,3,4,5,6,7])
print(arr[3:])
print(arr[0:7])
print(arr[::-1])
print(arr[:-1:])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following arrays is a two dimensional (2-D) array?
42
[[1, 2, 3], [4, 5, 6]]
[1, 2, 3, 4, 5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to subtract the numbers from arr1 with the numbers from arr2?
np.minus(arr1, arr2)
np.min(arr1, arr2)
np.sub(arr1, arr2)
np.substract(arr1, arr2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to return the shape of an array?
arr.shape
shape(arr)
arr.shape()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
ADP 5 - Ice Breaking Serius

Quiz
•
Professional Development
13 questions
PowerPoint IMiL Quiz

Quiz
•
Professional Development
10 questions
Quiz Refreshment Training SA Toyota

Quiz
•
Professional Development
16 questions
EXCEL CƠ BẢN =))

Quiz
•
Professional Development
14 questions
Wentylacja 1

Quiz
•
Professional Development
20 questions
DCM Unit 2 Revision

Quiz
•
Professional Development
14 questions
Buổi 16 mảng 2 chiều

Quiz
•
Professional Development
15 questions
Avaluación inicial M07

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development