Quiz on Indexing and Slicing NumPy Arrays

Quiz on Indexing and Slicing NumPy Arrays

University

5 Qs

quiz-placeholder

Similar activities

PAW.09 - DOM Javascript

PAW.09 - DOM Javascript

University

10 Qs

Quiz sobre Matrizes em Python

Quiz sobre Matrizes em Python

University

9 Qs

Understanding Arrays and Loops in JavaScript

Understanding Arrays and Loops in JavaScript

11th Grade - University

7 Qs

insertion sort

insertion sort

University

6 Qs

SWE111_quiz 2

SWE111_quiz 2

University

10 Qs

NGD Quiz 1 : MongoDB Basics

NGD Quiz 1 : MongoDB Basics

University

9 Qs

C-Volution (Hard)

C-Volution (Hard)

University

10 Qs

Kuis Manipulasi DOM

Kuis Manipulasi DOM

University

8 Qs

Quiz on Indexing and Slicing NumPy Arrays

Quiz on Indexing and Slicing NumPy Arrays

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Ms Kumar

Used 1+ times

FREE Resource

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