numpy_test

numpy_test

University

20 Qs

quiz-placeholder

Similar activities

Exploring Python Libraries

Exploring Python Libraries

University

20 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

PSC ALM QUIZ

PSC ALM QUIZ

University

16 Qs

Quantitative Aptitude Series

Quantitative Aptitude Series

University

20 Qs

Java Basics for PM

Java Basics for PM

University

17 Qs

[Python For All] Quiz 5 - Numpy

[Python For All] Quiz 5 - Numpy

University

15 Qs

numpy library

numpy library

University

15 Qs

C Language Array Quiz

C Language Array Quiz

University

19 Qs

numpy_test

numpy_test

Assessment

Quiz

Computers

University

Medium

Created by

Mohammed Alhaan

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does NumPy primarily provide for Python?
GUI applications
Web development tools
High-level mathematical functions and arrays
Image editing features

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command creates a 1D array from 0 to 9 in NumPy?
np.arange(10)
np.linspace(0, 9, 10)
np.range(10)
np.list(10)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of np.zeros((2,3))?
2x3 array of ones
3x2 array of zeros
2x3 array of zeros
2x3 array with random values

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute returns the shape of a NumPy array?
.shape()
.dim()
.size()
.shape

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function reshapes a 1D array into 2D?
reshape()
ravel()
resize()
transpose()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does .T do on a NumPy array?
Creates a new array
Transposes it
Resizes it
Removes last axis

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of operation is a + b for NumPy arrays?
Loop-based
Matrix multiplication
Element-wise addition
Broadcast function

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?