🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

NumPy Basics

Question: 51 Report Error

निम्नलिखित कोड का उद्देश्य क्या है?

What will be output for the following code ?

import numpy as np 
a = np.array( [ [1, 2, 3 ], [0, 1, 4 ], [11, 22, 33 ] ] )
print (a.size )
A)
B)
C)
D)

Question: 52 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

import numpy as np 
a = np.array( [ 1, 2, 3, 4, 8 ] )
b = np.array( [ 0, 3, 4, 2, 1 ] )
c = b*a
c = c + b
print (c[ 1 ])
A)
B)
C)
D)

Question: 53 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of following code ?

import numpy as np 
a = np.array([[1,2,3],[4,5,6]]) 
print(a.shape)
A)
B)
C)
D)

Question: 54 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What will be output for the following code ?

import numpy as np
ary = np.array( [1, 2, 3, 5, 8 ] )
ary = ary + 1
print (ary [1] )
A)
B)
C)
D)

Question: 55 Report Error

x का डेटाटाइप क्या है?

What is the datatype of x ?

import numpy as np
a = np.array( [1, 2, 3, 4 ] )
x = a.tolist()
A)
B)
C)
D)

Question: 56 Report Error

NumPy पैकेज में eye( ) फ़ंक्शन क्या लौटाता है?

What does the eye( ) function in the NumPy package return ?

A)
B)
C)
D)

Question: 57 Report Error

निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be output for the following code ?

import numpy as np 
a = np.array([[1,2,3],[0,1,4]]) 
print (a.size)
A)
B)
C)
D)

Question: 58 Report Error

निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What is the output of the following code ?

import numpy as np 
a = np.array([1,2,3]) 
print(a.ndim)
A)
B)
C)

Question: 59
Verified by Expert

निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be output for the following code ?

import numpy as np 
a = np.array([[[1,2,3,5,8]]]) 
print (a.ndim)
A)
B)
C)
D)
Explanation
The output of the code is: 3 In NumPy, the ndim attribute returns the number of axes (dimensions) of an array. [1, 2, 3] is 1-dimensional. [[1, 2, 3]] is 2-dimensional. [[[1, 2, 3, 5, 8]]] contains three levels of nesting, making it a 3-dimensional array.

Correct Answer: C) 2


Question: 60
Verified by Expert

निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be output for the following code ?

import numpy as np 
a = np.array( [2, 3, 4, 5] ) 
print(a.dtype)
A)
B)
C)
D)
Explanation
On most modern 64-bit systems and Google Colab, NumPy defaults to int64. On some 32-bit systems or older Windows configurations, it may default to int32.

Correct Answer: B) int64


Question: 61 Report Error

x का डेटाटाइप क्या है

What is the datatype of x

import numpy as np
a=np.array([1,2,3,4])
x= a.tolist()
A)
B)
C)
D)

Question: 62 Report Error

NumPy का मतलब है

NumPy stands for

A)
B)
C)
D)

Question: 63 Report Error

NumPy ऐरे की विशेषताएँ क्या हैं

What are the attributes of NumPy array

A)
B)
C)
D)

Question: 64
Verified by Expert

NumPy किसके द्वारा विकसित किया गया है

NumPy developed by

A)
B)
C)
D)
Explanation
In 2005, Travis Oliphant created NumPy by incorporating features of the competing Numarray into Numeric, with extensive modifications. NumPy is open-source software.

Correct Answer: B) Travis Oliphant


Question: 65
Verified by Expert

NumPy में reshape() फ़ंक्शन का उद्देश्य क्या है

What is the purpose of the reshape() function in NumPy

A)
B)
C)
D)

Latest Updates