NumPy Basics Quiz

NumPy Basics Quiz

University

20 Qs

quiz-placeholder

Similar activities

Exploring Python Libraries

Exploring Python Libraries

University

20 Qs

C Language Array Quiz

C Language Array Quiz

University

19 Qs

Data Analytics using Python - Quiz 2

Data Analytics using Python - Quiz 2

University

15 Qs

[Python For All] Quiz 5 - Numpy

[Python For All] Quiz 5 - Numpy

University

15 Qs

Coding Titans

Coding Titans

University

17 Qs

Bertelsmann AI Track Quiz Initiative #3

Bertelsmann AI Track Quiz Initiative #3

University - Professional Development

20 Qs

Arrays

Arrays

University

20 Qs

LOOKUP

LOOKUP

9th Grade - University

20 Qs

NumPy Basics Quiz

NumPy Basics Quiz

Assessment

Quiz

Computers

University

Easy

Created by

Harshita Kanojia

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does NumPy stand for?

Number Python

Numerical Python

Numbers in Python

Numeric Python Programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to import NumPy?

import numpy as pnp

import numpy as np

import np as numpy

import NumPy

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main object in NumPy?

list

array

ndarray

matrix

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a 1D NumPy array?

np.array([1, 2, 3])

np.array((1, 2, 3))

np.array{1, 2, 3}

Both A and B

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output shape of np.array([[1,2],[3,4]])?

(2,)

(4,)

(2, 2)

(1, 4)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a NumPy array with 5 zeros?

np.zero(5)

np.zeros(5)

np.empty(5)

np.ones(5)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to create an array with values from 0 to 9?

np.range(10)

np.arrange(10)

np.arange(10)

np.linspace(10)

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?