Quiz on Indexing and Slicing NumPy Arrays

Quiz on Indexing and Slicing NumPy Arrays

University

5 Qs

quiz-placeholder

Similar activities

Arrays in CQuiz

Arrays in CQuiz

1st Grade - University

10 Qs

Quiz Array dan Metode JavaScript

Quiz Array dan Metode JavaScript

University

10 Qs

Colecciones en Java

Colecciones en Java

University

10 Qs

FIT9132 PASS Week 12

FIT9132 PASS Week 12

University

9 Qs

Fundamentals of C Programming

Fundamentals of C Programming

University

10 Qs

LAB04

LAB04

University

7 Qs

Understanding Sorting Algorithms

Understanding Sorting Algorithms

University

10 Qs

ASSESMEN SUMATIF

ASSESMEN SUMATIF

2nd Grade - University

10 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