Numpy Quiz 1

Numpy Quiz 1

University

12 Qs

quiz-placeholder

Similar activities

UML - Use Cases e Diagramas

UML - Use Cases e Diagramas

University

13 Qs

Quiz 1

Quiz 1

University

10 Qs

Mini 2 (5junio)

Mini 2 (5junio)

University

10 Qs

Java quiz-2024-Sec-B

Java quiz-2024-Sec-B

University

12 Qs

Tuples and set

Tuples and set

University

10 Qs

Review Ciclo 1

Review Ciclo 1

University

11 Qs

Pascal Programming

Pascal Programming

10th Grade - University

15 Qs

EC8393_FDS_MODEL EXAM_3_PART B

EC8393_FDS_MODEL EXAM_3_PART B

University

15 Qs

Numpy Quiz 1

Numpy Quiz 1

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Vishnuvardhan Reddy Avija

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to create an array in NumPy?

numpy.createArray()

numpy.makeArray()

numpy.newArray()

numpy.array()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to reshape a NumPy array?

transform

resize

reshape

adjust

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you concatenate two NumPy arrays?

Use numpy.concatenate((array1, array2), axis=0) to concatenate two NumPy arrays.

Use numpy.add(array1, array2) to concatenate two NumPy arrays.

Combine arrays with array1 + array2 for concatenation.

Use numpy.stack((array1, array2), axis=1) to concatenate two NumPy arrays.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of np.arange(5)?

[0, 1, 2, 3, 4]

[0, 1, 2, 3, 4, 5]

[0, 1, 2, 3]

[1, 2, 3, 4, 5]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function computes the mean of a NumPy array?

numpy.average

numpy.sum

numpy.mean

numpy.median

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the np.zeros() function return?

A list of empty strings.

An array filled with ones.

An array filled with zeros.

A matrix of random numbers.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change the data type of a NumPy array?

Use the `astype()` method to change the data type of a NumPy array.

Change the data type by reassigning the array to a new variable.

Use the `convert()` function to change the data type.

Use the `change_type()` method to modify the data type.

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