Search Header Logo

Quiz on Indexing and Slicing NumPy Arrays

Authored by Ms Kumar

Information Technology (IT)

University

Used 1+ times

Quiz on Indexing and Slicing NumPy Arrays
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?