NumPy

NumPy

University

20 Qs

quiz-placeholder

Similar activities

Antecedentes Conocimiento Mecánica Orbital

Antecedentes Conocimiento Mecánica Orbital

University

15 Qs

DLD Unit 1 _ 2

DLD Unit 1 _ 2

University

20 Qs

Quiz 2-Uji Pengetahuan Desain Manufaktur

Quiz 2-Uji Pengetahuan Desain Manufaktur

University

15 Qs

EXAMEN 2DO PARCIAL 01_03

EXAMEN 2DO PARCIAL 01_03

University

20 Qs

PENILAIAN AKHIR FORMATIF

PENILAIAN AKHIR FORMATIF

University

17 Qs

Diodos y semiconductores

Diodos y semiconductores

University

20 Qs

Тест по мартеновской печи

Тест по мартеновской печи

University

16 Qs

WEEK11-12 Flyback,PF, Half-Bridge

WEEK11-12 Flyback,PF, Half-Bridge

University

17 Qs

NumPy

NumPy

Assessment

Quiz

Engineering

University

Practice Problem

Medium

Created by

PRABANAND S C

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

A. List


B. Tuple


C. ndarray

D. Series

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

 Which function returns evenly spaced values within a given range?

A. np.linspace()


B. np.arange()


C. np.range()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of np.zeros((2,3))?

A. A 2x3 array filled with zeros

B. A 3x2 array filled with zeros


C. A 2x3 array filled with ones


D. An empty array

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does a.shape return if a = np.array([[1, 2], [3, 4]])?

A. (4,)

B. (2, 2)

C. 2

D. [2, 2]

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to get a random number between 0 and 1?


B. np.random.rand()


C. np.random.uniform(1)


D. np.random.random()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you access the element at the second row and third column of a 2D NumPy array a?

A. a[1][2]


B. a[2][3]


C. a[2,3]


D. a[1,2]

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of np.arange(1, 10, 2)?

[1,2,3,4,5,6,7,8,9,10]

[2,4,6,8,10]

[1,3,5,7,9]

[1,3,5,7]

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?