
Deep Learning - Crash Course 2023 - NumPy Part 3
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of slicing a 2D numpy array with a single index?
A single row
A single element
An error
A single column
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you transpose a numpy array using a method?
np.transpose(array)
array.T()
array.transpose()
np.T(array)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you transpose a 1D numpy array?
It becomes a 2D array
It remains unchanged
It becomes a row vector
It becomes a column vector
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key feature of the resize function in numpy?
It requires the new size to match the original size
It fills new dimensions with zeros
It can only reduce the size of an array
It repeats the original array to fill new dimensions
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When using the reshape function, what must be true about the new shape?
It must have the same number of dimensions
It must be larger than the original shape
The total number of elements must match the original
It must be a square matrix
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you try to reshape an array to a size that doesn't match the total number of elements?
The array will be automatically resized
An error will occur
The array will be truncated
The array will be padded with zeros
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid reshape operation for an array with 18 elements?
Reshape to (3, 6)
Reshape to (4, 5)
Reshape to (2, 9)
Reshape to (1, 20)
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?