Python and NumPy Quiz

Python and NumPy Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

Teste python- Unesp-Jaboticabal

Teste python- Unesp-Jaboticabal

University

10 Qs

07 - Map

07 - Map

University

15 Qs

JDBC_Objective_Exam_2

JDBC_Objective_Exam_2

Professional Development

15 Qs

HTML Quiz

HTML Quiz

University

10 Qs

Hardware

Hardware

11th Grade

12 Qs

โปรแกรมสร้างสื่อดิจิทัล

โปรแกรมสร้างสื่อดิจิทัล

KG - University

10 Qs

Java Collection

Java Collection

12th Grade

10 Qs

Quiz C++ Introduction - X TJKT 1

Quiz C++ Introduction - X TJKT 1

10th Grade

10 Qs

Python and NumPy Quiz

Python and NumPy Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

deepasree varma

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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]]

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?