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

NumPy Basics

Question: 1
Verified by Expert

eye() method __________ में उपलब्ध है ?

eye() method is available in __________?

A)
B)
C)
D)
Explanation
numpy.eye() is a commonly used function in the NumPy library to create a 2D array (matrix) with ones on the diagonal and zeros elsewhere, often used to create identity matrices.

Correct Answer: B) numpy


Question: 2
Verified by Expert

Numpy library को_________वर्ष में बनाया गया ?

Numpy library was created in_________ year?

A)
B)
C)
D)
Explanation
The NumPy library was created in 2005 by Travis Oliphant. It was developed by incorporating features of the competing Numarray package into the Numeric library, making it a foundational tool for scientific computing in Python.

Correct Answer: A) 2005


Question: 3
Verified by Expert

[ :: -1] array या sequence को reverse करता है ?

[ :: -1] reverses the array or sequence?

A)
B)
C)
D)
Explanation
In Python, the slicing notation [::-1] is a widely used idiom to reverse a sequence (such as a string, list, or tuple).

Correct Answer: B) True


Question: 4
Verified by Expert

हम python में Numpy array का आकार(shape) कैसे बदल सकते हैं?

How can we change the shape of Numpy array in python?

A)
B)
C)
D)
Explanation
The reshape() function allows you to change the shape of an array without changing its data. For example, you can convert a 1D array with 6 elements into a 2D array of 2 rows and 3 columns (2*3). The only condition is that the total number of elements must remain the same (2*3 = 6).

Correct Answer: B) reshape()


Question: 5
Verified by Expert

हम सिस्टम(Computer) में Numpy कैसे Install करते हैं?

How do we install Numpy in the system (computer)?

A)
B)
C)
D)
Explanation
pip is the standard package manager for Python. To install NumPy, you need to open your Command Prompt (Windows) or Terminal (macOS/Linux) and type pip install numpy. This command downloads the NumPy package from the Python Package Index (PyPI) and installs it on your system.

Correct Answer: D) pip install numpy


Question: 6 Report Error

हम सिस्टम में Numpy कैसे install करते हैं?

How do we install Numpy in the system?

A)
B)
C)
D)

Question: 7 Report Error

निम्‍नलिखित में से किस फंक्‍शन का इस्‍तेमाल numpy array में एलिमेंट्स की कुल संख्‍या ज्ञात करने के लिए किया जाता है

Which of the following functions is used to find the total number of elements in a numpy array?

A)
B)
C)
D)

Question: 8 Report Error

............... फ़ंक्शन original array को संशोधित करता है और .............. फ़ंक्शन array का एक नया instance बनाता है।

...............function modifies the original array and ...............function creates a new instance of the array.

A)
B)
C)
D)

Question: 9 Report Error

संख्याओं का अनुक्रम बनाने के लिए, NumPy एक फ़ंक्शन प्रदान करता है जो रेंज के अनुरूप होता है जो सूचियों के बजाय सरणी देता है

To create sequences of numbers, NumPy provides a function corresponding to ranges that returns arrays instead of lists.

A)
B)
C)
D)

Question: 10 Report Error

निम्न में से कौन सी method एक नई array object बनाती है जो same data को दिखाती है?

Which of the following methods creates a new array object that represents the same data?

A)
B)
C)
D)

Question: 11 Report Error

Python में NumPy का उद्देश्य क्या है?

What is the purpose of NumPy in Python?

A)
B)
C)
D)

Question: 12 Report Error

NumPy का मतलब है?

NumPy means?

A)
B)
C)
D)

Question: 13 Report Error

NumPy में परिभाषित सबसे महत्वपूर्ण वस्तु एक N-आयामी सरणी प्रकार है जिसे कहा जाता है?

The most important object defined in NumPy is an N-dimensional array type called?

A)
B)
C)
D)

Question: 14 Report Error

निम्नलिखित में से कौन सा कथन असत्य है?

Which of the following statements is false?

A)
B)
C)
D)

Question: 15 Report Error

निम्न में से कौन ufuncs में प्रयुक्त बफर के आकार को सेट करता है?What is Fortran order in NumPy?

Which of the following sets the size of the buffer used in ufuncs? What is Fortran order in NumPy?

A)
B)
C)
D)

Question: 16 Report Error

NumPy में फोरट्रान ऑर्डर क्या है?

What is Fortran order in NumPy?

A)
B)
C)
D)

Question: 17 Report Error

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

What are the properties of NumPy array?

A)
B)
C)
D)

Question: 18 Report Error

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

NumPy is developed by?

A)
B)
C)
D)

Question: 19 Report Error

हम python में NumPy सरणी के आकार को कैसे बदल सकते हैं?

How can we change the size of NumPy array in python?

A)
B)
C)
D)

Question: 20 Report Error

हम सिस्टम में numPy कैसे स्थापित करते हैं?

How do we install numPy in the system?

A)
B)
C)
D)

Question: 21 Report Error

NumPy मॉड्यूल कैसे इम्पोर्ट करें?

How to import NumPy modules?

A)
B)
C)
D)

Question: 22
Verified by Expert

गलत कथन को इंगित करें:

Point out the incorrect statement:

A)
B)
C)
D)

Question: 23
Verified by Expert

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

What will be the output of the following Python code?

import numpy
A=numpy.array([2,3,4,6])
B=numpy.array([5,7,8,4])
print(numpy.dot(A,B))
A)
B)
C)
D)

Question: 24 Report Error

संख्यात्मक में पहचान मैट्रिक्स

Identity matrix in numpy

A)
B)
C)
D)

Question: 25 Report Error

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

What will be output for the following code?

import numpy as np 
a = np.array([1, 2, 3], dtype = complex) 
print a
[[ 1.+0.j, 2.+0.j, 3.+0.j]]
A)
B)
C)
D)

Question: 26
Verified by Expert

जिनमें से Python लाइब्रेरी Pandas के समान है।

Amongst which Python library is similar to Pandas.

A)
B)
C)
D)
Explanation
NumPy is the core library for numerical computing in Python. Pandas is built directly on top of NumPy, meaning it uses NumPy's high-performance array objects to handle its own data structures like Series and DataFrames.

Correct Answer: C) NumPy


Question: 27
Verified by Expert

NumPy में किन विधियों का उपयोग करके दो सरणियों को जोड़ा जा सकता है?

Two arrays can be joined in NumPy using which methods.

A)
B)
C)
D)
Explanation
Two arrays can be joined in NumPy using (A) np.concatenate().

Correct Answer: A) np.concatenate()


Question: 28
Verified by Expert

NumPy np.delete() फ़ंक्शन का उपयोग किसी सरणी से _________ तत्वों को हटाने के लिए किया जाता है। यह इनपुट ऐरे से हटाए गए निर्दिष्ट सबरे के साथ एक नया ऐरे लौटाता है।

The NumPy np.delete() function is used to delete _______________ elements from an array. It returns a new array with the specified subarray deleted from the input array.

A)
B)
C)
D)
Explanation
The np.delete() function in NumPy is designed to remove one or more elements from an array. It returns a new array with the specified items removed, leaving the original array unchanged.

Correct Answer: A) One and more


Question: 29 Report Error

इन दो कथनों पर विचार करें:

Consider these two statements:

A)
B)
C)
D)

Question: 30 Report Error

इनमें से कौन सा पायथन का उपयोगकर्ता परिभाषित डेटा प्रकार है?

Which of these is user defined data type of Python ?

A)
B)
C)
D)

Question: 31 Report Error

पायथन का _____ मोड टाइप किए गए स्टेटमेंट का तुरंत परिणाम देता है।

The _____ mode of Python gives instant result of typed statement.

A)
B)
C)
D)

Question: 32 Report Error

डेटा प्रकारों के संख्यात्मक प्रकार क्या हैं?

What is Numeric Types of Data Types?

A)
B)
C)
D)

Question: 33 Report Error

सुन्न सरणी के डेटा प्रकार को खोजने के लिए किस विशेषता का उपयोग किया जाता है?

Which attribute is used to find the data type of numpy array ?

A)
B)
C)
D)

Question: 34 Report Error

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

What will be the output of the following ?

import numpy as np
a = np.array( [ [ 1, 2, 3, 4 ], [ 5, 6, 7, 8 ], [ 9, 10, 11, 12, ] ])
print (a[ 2, 2 ])
A)
B)
C)
D)

Question: 35 Report Error

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

What will be output for the following code ?

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

Question: 36 Report Error

सुन्न सरणी की विशेषताएँ क्या हैं?

What are the attributes of numpy array ?

A)
B)
C)
D)

Question: 37 Report Error

NumPY का मतलब है?

NumPY stands for ?

A)
B)
C)
D)

Question: 38
Verified by Expert

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

What is the purpose of the following code ?

import numpy as np 
z=[1,2,3] 
y=np.array(z)
A)
B)
C)
D)
Explanation
In above code initializes a standard Python list and converts it into a NumPy N-dimensional array (ndarray).

Correct Answer: A) to convert z to array


Question: 39 Report Error

Numpy सारणी में प्रयुक्त शून्य () फ़ंक्शन का उद्देश्य क्या है?

What is the purpose of zeros() function used in Numpy array ?

A)
B)
C)
D)

Question: 40 Report Error

पायथन में नम्पी ऐरे में ones () फ़ंक्शन का क्या उपयोग है?

What is the use of the ones() function in Numpy array in python ?

A)
B)
C)
D)

Question: 41 Report Error

NumPY का अर्थ है:

NumPY stands for :

A)
B)
C)
D)

Question: 42 Report Error

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

What is the output of the following code ?

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

Question: 43 Report Error

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

What will be the output of the following?

import numpy as np 
a = np. array ( [ 1, 5, 4, 7, 8 ] )
a = a + 1
print ( a [ 1 ])
A)
B)
C)
D)

Question: 44 Report Error

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

What will be the output of the following ?

import numpy as np
print ( np. maximum( [ 2, 3, 4, ], [ 1, 5, 2 ]))
A)
B)
C)
D)

Question: 45 Report Error

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

What will be the output of the following ?

import numpy as np
a = np.array (4)
b = np. arange ( 4 )
print( a + b )
A)
B)
C)
D)

Question: 46 Report Error

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

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)
B)
C)
D)

Question: 47 Report Error

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

What is the output of the following code ?

import numpy as np 
a = np.array( [ 1.1, 2, 3 ] )
print(a.dtype )
A)
B)
C)
D)

Question: 48 Report Error

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

What will be output for the following code ?

import numpy as np
a = np.array( [11, 2, 3 ] )
print(a.min())
A)
B)
C)
D)

Question: 49 Report Error

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

What is the output of the following code ?

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

Question: 50 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)
D)

Latest Updates