Logo
search
menuicon
NUMPY

NUMPY

LAVANYA J CSE
마녀의 마법
quiz thumbnail
अनुक्रमण
कॉलेज
Tech

NUMPY

LAVANYA J CSE

138

20 प्रश्न

गलत उत्तर की अनुमति दें

उत्तर छिपाएँ

सार्वजनिक क्विज़

# 1बहुविकल्पी
Which of the following is the main purpose of using NumPy in Python?
Creating graphical user interfaces
Performing numerical and scientific computations
Building web applications
Managing databases
# 2सही/गलत
NumPy arrays can only store integers.
# 3लघु उत्तर
What is the name of the function used to create an array in NumPy?
array
# 4बहुविकल्पी
Which NumPy function would you use to generate an array of evenly spaced values between two numbers?
arange
linspace
zeros
reshape
# 5सही/गलत
The shape of a NumPy array can be changed using the reshape() method.
# 6बहुविकल्पी
Which attribute of a NumPy array returns the number of dimensions?
size
ndim
shape
dtype
# 7बहुविकल्पी
What does the NumPy function zeros() return?
An array of random numbers
An array filled with zeros
An array filled with ones
An empty array
# 8सही/गलत
Is it possible to perform element-wise addition between two NumPy arrays of the same shape?
# 9बहुविकल्पी
Which of the following is the correct way to import NumPy in a Python program?
import numpy as np
import np as numpy
from numpy import np
import numpy
# 10लघु उत्तर
What is the result of np.arange(5)?
[0 1 2 3 4]
# 11सही/गलत
The dtype attribute of a NumPy array tells you the data type of its elements.
# 12बहुविकल्पी
Which method would you use to find the maximum value in a NumPy array?
sum()
max()
mean()
sort()
# 13बहुविकल्पी
What will np.ones((2,3)) create?
A 2x3 array of ones
A 3x2 array of ones
A 2x3 array of zeros
A 3x2 array of zeros
# 14सही/गलत
NumPy can be used to perform matrix multiplication.
# 15बहुविकल्पी
What does slicing a NumPy array mean?
Changing the shape of an array
Extracting a part of the array
Sorting the array
Filling the array with zeros
# 16बहुविकल्पी
Which NumPy function returns the average of array elements?
sum()
mean()
median()
average()
# 17बहुविकल्पी
What is the default data type of elements in np.array([1, 2, 3])?
float
complex
int
bool
# 18सही/गलत
You can use negative indices to access elements from the end of a NumPy array.
# 19लघु उत्तर
What is the output shape of np.zeros((3, 2))?
(3, 2)
# 20बहुविकल्पी
Which function would you use to combine two NumPy arrays along a new axis?
concatenate()
stack()
split()
reshape()
Google Classroom पर शेयर करें