Python and NumPy Quiz

Python and NumPy Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

Checkpoint 1 revision

Checkpoint 1 revision

9th - 12th Grade

9 Qs

Numpy Revision Test

Numpy Revision Test

10th Grade

8 Qs

Reshaping & vStack&hstack( )

Reshaping & vStack&hstack( )

9th Grade - University

10 Qs

Quiz 12

Quiz 12

University

10 Qs

python advance

python advance

10th Grade

13 Qs

Data Analytics using Python - Quiz 1

Data Analytics using Python - Quiz 1

University

10 Qs

Numpy 4 life

Numpy 4 life

9th - 12th Grade

10 Qs

InCube #Quiz 2

InCube #Quiz 2

University

15 Qs

Python and NumPy Quiz

Python and NumPy Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

deepasree varma

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is NumPy?

NumPy is a Python library used for numerical computing.

NumPy is a programming language.

NumPy is used for web development.

NumPy is a database management system.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to import NumPy?

import numpy as numpy

import numpy as npy

import numpy as n

import numpy as np

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a NumPy array?

numpy.create_array()

numpy.array()

numpy.array([])

numpy.make_array()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? import numpy as np arr = np.array([1, 2, 3, 4, 5]) print(arr[2])

2

3

4

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr[1, 2])

6

5

1

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr[:, 1])

[1, 4]

[2, 4]

[3, 6]

[2, 5]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr[1:, 1:])

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

[[5, 6]]

[[2, 3], [5, 6]]

[[4, 5, 6]]

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?