Search Header Logo

NumPy and Pandas Quiz

Authored by Manikandan Rajendiran

Other

Professional Development

Used 2+ times

NumPy and Pandas Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is NumPy?

A plotting library

A machine learning framework

A scientific computing library

A web development framework

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you create a NumPy array from a Python list?

np.array(list)

numpy(list)

array(list)

create.array(list)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the shape of a 1D NumPy array with 5 elements?

(1, 5)

(5,)

(5, 1)

(1,)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you access the element at the second row and third column of a 2D NumPy array arr?

arr[1, 2]

arr[2, 3]

arr[1][2]

arr[2][3]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the np.zeros((3, 4)) function in NumPy do?

Creates an array with ones

Creates an array with random values

Creates an array with zeros

Creates an identity matrix

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you perform element-wise multiplication of two NumPy arrays a and b?

a * b

np.multiply(a, b)

np.mult(a, b)

a.dot(b)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the np.arange(5, 15, 2) function in NumPy do?

Creates an array with values from 5 to 15

Creates an array with values from 5 to 14 with a step of 2

Creates an array with values from 5 to 15 with a step of 2

Creates an array with values from 5 to 14

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?