Search Header Logo

Python and Numpy Quiz

Authored by Suraj Singh

Life Skills

Professional Development

Used 13+ times

Python and Numpy Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data structure in Python is mutable and allows duplicate elements?

Lists

Tuples

Dictionaries

Sets

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which Python data type represents a collection of key-value pairs?

List

Tuple

Dictionary

Set

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the boolean expression `True and False or True` in Python?

True

False

Syntax Error

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method is used to create a Numpy array from a Python list?

`np.create()`

`np.array()`

`np.build()`

`np.new()`

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of broadcasting in Numpy?

Allowing incompatible arrays to have the same shape

Adding dimensions to arrays

Performing element-wise operations on arrays of different shapes

Copying an array multiple times

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which Numpy function calculates the mean of all elements in an array?

`np.sum()`

`np.average()`

`np.mean()`

`np.median()`

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which aggregation function in Numpy finds the largest value in an array?

`np.sum()`

`np.max()`

`np.min()`

`np.average()`

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?