page-banner
Chapter-9 NumPy Basics
Q21.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following code?
import numpy as np
y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]])
print(y.ndim)
A. 1
B. 2
C. 3
View Answer
Q22.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following code?
import numpy as np
a = np.array([1, 2, 3])
print(a.ndim)
A. 1
B. 2
C. 3
View Answer
Q23.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following code?
import numpy as np
a = np.array([2, 3, 4, 5])
print(a.dtype)
A. int32
B. int
C. float
D. None of these
View Answer
Q24.
x का डेटाटाइप क्या है?

What is the datatype of x?
import numpy as np
a = np.array([1, 2, 3, 4])
x = a.tolist()
A. int
B. array
C. tuple
D. list
View Answer
Q25.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
import numpy as np
a = np.array([1, 2, 3, 5, 8])
b = np.array([0, 3, 4, 2, 1])
c = a + b
c = c * a
print(c[2])
A. 10
B. 21
C. 12
D. 28
View Answer

Create Account