NumPy and Pandas Quiz

NumPy and Pandas Quiz

Assessment

Quiz

Other

Professional Development

Medium

Created by

Manikandan Rajendiran

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?