NumPy Basics Quiz

NumPy Basics Quiz

University

20 Qs

quiz-placeholder

Similar activities

DATA STRUCTURES QUIZ

DATA STRUCTURES QUIZ

University

15 Qs

Quiz 1_DSA

Quiz 1_DSA

University

20 Qs

AI Bootcamp: 2024 Edition- Session 2

AI Bootcamp: 2024 Edition- Session 2

University

25 Qs

PYTHONFIN1

PYTHONFIN1

University

15 Qs

РЭУ тест по Python

РЭУ тест по Python

University

20 Qs

python openCV

python openCV

University

20 Qs

Unit-2 Test-1

Unit-2 Test-1

University

20 Qs

Numpy

Numpy

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?