Search Header Logo

Python and Numpy Quiz

Authored by Suraj Singh

Life Skills

Professional Development

Used 8+ times

Python and Numpy Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?