
Quiz on Indexing and Slicing NumPy Arrays
Authored by Ms Kumar
Information Technology (IT)
University
Used 1+ 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
30 sec • 1 pt
What is the starting index for NumPy indexing?
1
0
2
-1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of indexing allows random access to elements in an array?
Advanced indexing
Boolean indexing
Negative indexing
Basic indexing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does negative indexing in NumPy start from?
The second element
The first element
The last element
The middle element
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a 2-D array, how many indices are used for indexing?
Four
One
Two
Three
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of basic slicing in NumPy?
An error
A view of the original array
A new array with different dimensions
A copy of the data
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?