Search Header Logo

Numpy

Authored by Sheryl A

Computers

University

Used 22+ times

Numpy
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import numpy as np

arr = np.array([1, 2, 3, 4])

print(arr[1])

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Iimport numpy as np

arr = np.array(42)

print(arr)

42

4

2

24

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of NumPy in Python?

To do numerical calculations

To do scientific computing

Both A and B

None of the mentioned above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

NumPy package is capable to do fast operations on arrays.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

NumPy arrays can be ___.

Indexed

Sliced

Iterated

All of the mentioned above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a library in python

pandas

matplotlib

numpy

Visualization

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import numpy as np

x = np.array([[0, 1], [2, 3]])

np.transpose(x)

array([[0, 2], [1, 3]])

array([[0, 1], [2, 3]])

array([[2, 3], [0, 1]])

None of the mentioned

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