Search Header Logo

NumPy Quiz

Authored by Ankita Roy

Computers

University

NumPy Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term used for a NumPy array with any number of dimensions?

tensor

matrix

vector

ndarray

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of array in NumPy?

1-D Array

0-D Array

2-D Array

4-D Array

3-D Array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the shape of a NumPy array represent?

The data type of the array

The number of dimensions

The size of the array along each dimension

The number of elements

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to reshape a NumPy array?

change_shape()

modify_shape()

reshape_array()

reshape()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operations can be performed on NumPy arrays?

Addition

Subtraction

Multiplication

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the np.sum() function do?

Calculates the mean

Calculates the maximum value

Calculates the sum of array elements

Calculates the product of array elements

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to append a row to a NumPy array?

np.insert()

np.concat()

np.append()

np.add()

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?

Discover more resources for Computers