Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : python - NUMPY BASICS
NUMPY BASICS
00:00:00
English
Hindi
Question No# :
01
out of 50
What is a correct syntax to check the number of dimensions in an array?
ऐरे में डायमेंशन की संख्या की जांच करने के लिए सही सिंटैक्स क्या है?
A.
np.ndim(array_name)
np.ndim(array_name)
B.
array_name.ndim()
array_name.ndim()
C.
np.dim(array_name)
np.dim(array_name)
D.
array_name.dim
array_name.dim
Question No# :
02
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">import numpy as npa<br></span><span style="font-size: 14px;">a=np.array([1,2,3])<br></span><span style="font-size: 14px;">print(a*2)</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import numpy as npa<br></span><span style="font-size: 14px;">a=np.array([1,2,3])<br></span><span style="font-size: 14px;">print(a*2)</span></pre>
A.
[2 4 6]
[2 4 6]
B.
[1 2 3 1 2 3]
[1 2 3 1 2 3]
C.
[3 4 5]
[3 4 5]
D.
Error
Error
Question No# :
03
out of 50
<p>What will be the output of the following ?</p><pre>import numpy as np<br>a=np.array([2,4])<br>b=np.array([3,5])<br>c=a*b<br>print(c)</pre><div><br></div>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a=np.array([2,4])<br>b=np.array([3,5])<br>c=a*b<br>print(c)</pre>
A.
[ 2 4 3 5]
[ 2 4 3 5]
B.
[ 6 20]
[ 6 20]
C.
[ 6 12 10 20]
[ 6 12 10 20]
D.
26
26
Question No# :
04
out of 50
What does size attribute in numpy use to find?
numpy में numpy एट्रिब्यूट का क्या उपयोग है
A.
Number of Rows and Column in array
Number of Rows and Column in array
B.
Size of each items in array
Size of each items in array
C.
Number of elements in array
Number of elements in array
D.
Largest element of an array
Largest element of an array
Question No# :
05
out of 50
What is the purpose of the np.array() function in NumPy?
NumPy में np.array() फ़ंक्शन का उद्देश्य क्या है?
A.
It creates a new Python list.
यह एक नई पायथन सूची बनाता है।
B.
It creates a NumPy array.
यह एक NumPy ऐरे बनाता है।
C.
It performs element-wise addition.
यह तत्व-वार जोड़ करता है।
D.
It calculates the mean of an array.
यह किसी ऐरे के माध्य की गणना करता है।
Question No# :
06
out of 50
Which of the following argument we need to pass in reshape function.
निम्नलिखित में से कौन सा आर्गुमेन्ट हमें reshape फंक्शन में पास करने की आवश्यकता होती है।
A.
Shape
शेप
B.
Array
ऐरे
C.
both a) and b)
a) तथा b) दोनों
D.
None of the above.
इनमे से कोई भी नहीं
Question No# :
07
out of 50
Which function creates linearly spaced values?
कौन सा फ़ंक्शन रैखिक रूप से व्यवस्थित मान उत्पन्न करता है?
A.
range()
range()
B.
space()
space()
C.
arange()
arange()
D.
linspace()
linspace()
Question No# :
08
out of 50
What is a correct syntax to create a NumPy array?
NumPy array बनाने के लिए सही सिंटैक्स क्या है?
A.
np.array([4,5,6])
np.array([4,5,6])
B.
np.create_array([4,5,6])
np.create_array([4,5,6])
C.
np.createArray([4,5,6])
np.createArray([4,5,6])
D.
np.numpyArray([4,5,6])
np.numpyArray([4,5,6])
Question No# :
09
out of 50
What is the use of the zeros() function in Numpy array in python ?
पायथन में Numpy ऐरे में zero() फंक्शन का उपयोग है
A.
To make a Matrix with all element 0
सभी एलिमेंट के साथ एक मैट्रिक्स 0 बनने के लिए
B.
To make a Matrix with all diagonal element 0
सभी डायगोनल एलिमेंट के साथ एक मैट्रिक्स 0 बनने के लिए
C.
To make a Matrix with first row 0
पहली पंक्ति के साथ एक मैट्रिक्स 0 बनने के लिए
D.
None of the above
उपरोक्त में से कोई नहीं
Question No# :
10
out of 50
<p>What will be the output of the following ?</p><pre><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a = np.arange(1,5,2)<br></span><span style="font-size: 14px;">print(a)</span></pre>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a = np.arange(1,5,2)<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
[1 3 5]
[1 3 5]
B.
[1 3]
[1 3]
C.
[1,3]
[1,3]
D.
[1,2,3,4,5]
[1,2,3,4,5]
Question No# :
11
out of 50
What is the main object type in NumPy that represents homogeneous arrays?
NumPy में मुख्य ऑब्जेक्ट प्रकार क्या है जो सजातीय सरणियों का प्रतिनिधित्व करता है?
A.
List
List
B.
Array
Array
C.
Matrix
Matrix
D.
Set
Set
Question No# :
12
out of 50
Attribute of array determines
ऐरे के एट्रिब्यूट से क्या क्या पता कर सकते है
A.
Size, shape
साइज़ और आकार
B.
memory consumption
मेमोरी खपत
C.
data type of array
डेटा प्रकार
D.
All of these
ऊपर के सभी
Question No# :
13
out of 50
What does pip stand for python?
पिप का मतलब पाइथॉन क्या है?
A.
unlimited length
unlimited length
B.
all private members must have leading and trailing underscores
all private members must have leading and trailing underscores
C.
Preferred Installer Program
Preferred Installer Program
D.
None of the above
None of the above
Question No# :
14
out of 50
Which of the following is used to find the largest element in numpy array
नमपाई ऐरे में सबसे बड़े डाटा को खोजने के लिए निम्नलिखित में से किसका उपयोग किया जाता है
A.
numpy.maximum()
numpy.maximum()
B.
numpy.arraymax()
numpy.arraymax()
C.
numpy.amax()
numpy.amax()
D.
numpy.big()
numpy.big()
Question No# :
15
out of 50
What is zeros() function in numpy use to?
numpy उपयोग में zeros() फ़ंक्शन क्या है?
A.
make a matrix with first column 0
पहले कॉलम 0 के साथ एक मैट्रिक्स बनाएं
B.
make a matrix with all elements 0
सभी तत्वों के साथ एक मैट्रिक्स बनाएं 0
C.
make a matrix with diagonal elements 0
विकर्ण तत्वों के साथ एक मैट्रिक्स बनाएं 0
D.
All of the above
ऊपर के सभी
Question No# :
16
out of 50
Which attribute returns array dimensions in NumPy?
NumPy में कौन सा एट्रीब्यूट ऐरे के आयाम लौटाता है?
A.
size
size
B.
dtype
dtype
C.
ndim
ndim
D.
shape
shape
Question No# :
17
out of 50
<p>What will be output for the following code?</p><pre>import numpy as np<br>a = np.array([1,2,3,5,8])<br>b = np.array([0,3,4,2,1])<br>c = a + b<br>c = c*a<br>print (c[2])</pre><p> </p>
<p>निम्नलिखित कोड के लिए आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a = np.array([1,2,3,5,8])<br>b = np.array([0,3,4,2,1])<br>c = a + b<br>c = c*a<br>print (c[2])</pre>
A.
18
18
B.
20
20
C.
21
21
D.
22
22
Question No# :
18
out of 50
<p>What will be the output of the following ?</p><pre>import numpy as np<br>a = np.array([[ 1,2,3,4], [5,6,7,8], [9,10,11,12]])<br>print(a[2,2])</pre>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a = np.array([[ 1,2,3,4], [5,6,7,8], [9,10,11,12]])<br>print(a[2,2])</pre>
A.
7
7
B.
11
11
C.
10
10
D.
8
8
Question No# :
19
out of 50
In NumPy, what does the SHAPE of an array mean?
NumPy में, सरणी के आकार का क्या अर्थ है?
A.
the shape is the number of rows
the shape is the number of rows
B.
the shape is the number of columns
the shape is the number of columns
C.
the shape is the number of element in each dimension
the shape is the number of element in each dimension
D.
Total number of elements in array
Total number of elements in array
Question No# :
20
out of 50
What is a correct method to join two or more arrays?
दो या दो से अधिक सरणियों में शामिल होने का सही तरीका क्या है?
A.
np.concatenate()
np.concatenate()
B.
np.join()
np.join()
C.
np.array_join()
np.array_join()
D.
np.join_array()
np.join_array()
Question No# :
21
out of 50
<p>What will be the output of the following ?</p><pre><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a = np.arange(5,1)<br></span><span style="font-size: 14px;">print(a)</span></pre>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a = np.arange(5,1)<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
[ ]
[ ]
B.
[1 2 3 4 5]
[1 2 3 4 5]
C.
[5 4 3 2 1]
[5 4 3 2 1]
D.
[1 2 3 4]
[1 2 3 4]
Question No# :
22
out of 50
The number of axes in an ndarray is called its ___
एक ndarray में अक्षों की संख्या को उसका ___कहा जाता है।
A.
rank
रैंक
B.
dtype
डीटाइप
C.
shape
शेप
D.
None of these
इनमे से कोई भी नहीं
Question No# :
23
out of 50
<p>Which syntax would print the last 3 numbers from the array below:</p><pre>arr = np.array([1,2,3,4,5,6,7])</pre>
<p>कौन सा सिंटैक्स नीचे दी गई सरणी से अंतिम 3 नंबर प्रिंट करेगा:</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">arr = np.array([1,2,3,4,5,6,7])</pre>
A.
print(arr[3:])
print(arr[3:])
B.
print(arr[3])
print(arr[3])
C.
print(arr[:3])
print(arr[:3])
D.
print(arr[4:])
print(arr[4:])
Question No# :
24
out of 50
<p>What is the output of following code ?</p><pre>a = np.array([[1,2,3],[4,5,6]])<br>print(a.shape)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a = np.array([[1,2,3],[4,5,6]])<br>print(a.shape)</pre>
A.
(2,3)
(2,3)
B.
(3,2)
(3,2)
C.
(1,1)
(1,1)
D.
none of these
इनमे से कोई नहीं
Question No# :
25
out of 50
How do you import NumPy in Python?
आप Python में NumPy कैसे इम्पोर्ट करते हैं?
A.
import numpy as np
import numpy as np
B.
import numPy
import numPy
C.
from python import numpy
from python import numpy
D.
using numpy
using numpy
Question No# :
26
out of 50
NumPY stands for:
NumPY का पूर्ण रूप है:
A.
Numbering Python
नबरिंग पाइथन
B.
Number In Python
नबरिंग इन पाइथन
C.
Numerical Python
नुमेरिकल पाइथन
D.
None of the above
उपरोक्त में से कोई नहीं
Question No# :
27
out of 50
NumPy arrays used over lists because
NumPy ऐरे का उपयोग लिस्ट पर किया जाता है क्योंकि
A.
NumPy arrays have contiguous memory location
NumPy सरणियों में सन्निहित स्मृति स्थान होता है
B.
They are more speedy to work with
उनके साथ काम करने की गति अधिक होती है
C.
They are more convenient to deal with
वे निपटने के लिए अधिक सुविधाजनक हैं
D.
All of the above
ऊपर के सभी
Question No# :
28
out of 50
What is a correct syntax to create an array of type float?
फ्लोट प्रकार की सरणी बनाने के लिए सही सिंटैक्स क्या है?
A.
arr=np.array([1,2,3,4],dtype='float')
arr=np.array([1,2,3,4],dtype='float')
B.
arr=np.array([1,2,3,4],dtype='f')
arr=np.array([1,2,3,4],dtype='f')
C.
arr=np.array([1,2,3,4],dtype=float)
arr=np.array([1,2,3,4],dtype=float)
D.
All of the above
All of the above
Question No# :
29
out of 50
Numpy array's dimension are known as
Numpy ऐरे के डायमेंशन को कहा जाता है
A.
axes
axes
B.
degree
degree
C.
cordinate
cordinate
D.
points
points
Question No# :
30
out of 50
NumPY stands for?
NumPY का मतलब है?
A.
Numbering Python
Numbering Python
B.
Number in Python
Number in Python
C.
Numerical Python
Numerical Python
D.
Number for Python
Number for Python
Question No# :
31
out of 50
<p>What will be the output of the following code?</p><pre><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a=np.array([1,2,3])<br></span><span style="font-size: 14px;">print(a.ndim)</span></pre><div><br></div>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a=np.array([1,2,3])<br></span><span style="font-size: 14px;">print(a.ndim)</span></pre>
A.
1
1
B.
2
2
C.
3
3
D.
0
0
Question No# :
32
out of 50
<p>What will be output for the following code ?</p><pre>import numpy as np<br>a=np.array([2,3,4,5])<br>print(a.dtype)</pre><div><br></div>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px;">import numpy as np<br>a=np.array([2,3,4,5])<br>print(a.dtype)</pre><div><br style="letter-spacing: 0.14px;"></div>
A.
int32
int32
B.
int
int
C.
float
float
D.
none of these
इनमे से कोई नहीं
Question No# :
33
out of 50
NumPy arrays can be
NumPy ऐरे में क्या क्या हो सकता है
A.
Indexed
Indexed
B.
Sliced
Sliced
C.
Iterated
Iterated
D.
All of the mentioned above
All of the mentioned above
Question No# :
34
out of 50
What is default data type of NumPy Array
NumPy Array का डिफ़ॉल्ट डेटा प्रकार क्या है?
A.
float
float
B.
integer
integer
C.
string
string
D.
boolean
boolean
Question No# :
35
out of 50
How can you perform element-wise addition of two NumPy arrays arr1 and arr2?
आप दो NumPy सरणियों arr1 और arr2 को एलिमेंट वाइज कैसे जोड़ सकते हैं?
A.
arr1 + arr2
arr1 + arr2
B.
add(arr1, arr2)
add(arr1, arr2)
C.
arr1.add(arr2)
arr1.add(arr2)
D.
elementwise_add(arr1, arr2)
elementwise_add(arr1, arr2)
Question No# :
36
out of 50
What is the primary purpose of NumPy in Python?
Python में NumPy का प्राथमिक उद्देश्य क्या है?
A.
Web development
Web development
B.
Machine learning and scientific computing
Machine learning and scientific computing
C.
Game development
Game development
D.
Database management
Database management
Question No# :
37
out of 50
What is NumPy?
NumPy क्या है?
A.
A machine learning library
एक मशीन लर्निंग लाइब्रेरी
B.
A web development framework
एक वेब डेवलोपमेन्ट फ्रेमवर्क
C.
A numerical computing library in Python
एक संख्यात्मक कंप्यूटिंग लाइब्रेरी
D.
A data visualization tool
एक डेटा विज़ुअलाइज़ेशन उपकरण
Question No# :
38
out of 50
which one is the correct syntax to create an array of type float?
फ्लोट प्रकार की सरणी बनाने के लिए सही सिंटैक्स क्या है?
A.
arr=np.float([1,2,3,4])
arr=np.float([1,2,3,4])
B.
arr=np.array([1,2,3,4]).toFloat()
arr=np.array([1,2,3,4]).toFloat()
C.
arr=np.array([1,2,3,4],dtype='float')
arr=np.array([1,2,3,4],dtype='float')
D.
arr=np.farray([1,2,3,4])
arr=np.farray([1,2,3,4])
Question No# :
39
out of 50
Regarding creating ndarray, choose the build in functions in numpy.
Ndarray बनाने के संबंध में, numpy में बिल्ड इन फ़ंक्शंस चुनें।
A.
np.array()
np.array()
B.
np.zeros()
np.zeros()
C.
np.empty()
np.empty()
D.
All of the above
All of the above
Question No# :
40
out of 50
What is a correct method to split arrays?
सरणियों को विभाजित करने का सही तरीका क्या है?
A.
array_split()
array_split()
B.
split()
split()
C.
split_array()
split_array()
D.
hstack() and vstack()
hstack() and vstack()
Question No# :
41
out of 50
How to import numpy module?
कैसे numpy मॉड्यूल आयात करने के लिए?
A.
from numpy import *
from numpy import *
B.
import numpy
import numpy
C.
import numpy as my_numpy
import numpy as my_numpy
D.
All of above
All of above
Question No# :
42
out of 50
Which of the following arrays is a two dimensional (2-D) array?
निम्न में से कौन सा सरणियाँ द्विविमीय (2-डी) सरणी है?
A.
89
89
B.
[1,2,3,4]
[1,2,3,4]
C.
[1,2,3],[3,4,5],[1,3,4]
[1,2,3],[3,4,5],[1,3,4]
D.
[[2 3 5][ 4 5 6][4 5 6]]
[[2 3 5][ 4 5 6][4 5 6]]
Question No# :
43
out of 50
<p>What will be the output of the following ?</p><pre><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a = np.array([1, 5, 4, 7, 8])<br></span><span style="font-size: 14px;">a = a + 1<br></span><span style="font-size: 14px;">print(a[1])</span></pre><div><br></div>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">a = np.array([1, 5, 4, 7, 8])<br></span><span style="font-size: 14px;">a = a + 1<br></span><span style="font-size: 14px;">print(a[1])</span></pre>
A.
4
4
B.
5
5
C.
6
6
D.
7
7
Question No# :
44
out of 50
Which function is used to generate evenly spaced values within a specified range?
किसी निर्दिष्ट सीमा के भीतर समान दूरी वाले मान उत्पन्न करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
A.
numpy.linspace()
numpy.linspace()
B.
numpy.range()
numpy.range()
C.
numpy.arrange()
numpy.arrange()
D.
numpy.spaceline()
numpy.spaceline()
Question No# :
45
out of 50
What are the attributes of numpy array?
Numpy सरणी के गुण क्या हैं?
A.
shape, dtype, ndim
shape, dtype, ndim
B.
objects, type, list
objects, type, list
C.
objects, non vectorization
objects, non vectorization
D.
Unicode and shape
Unicode and shape
Question No# :
46
out of 50
<p> What will be output for the following code?</p><pre>import numpy as np<br>ary = np.array([1,2,3,5,8])<br>ary = ary + 1<br>print (ary[1])</pre><div><br></div><p> </p>
<p>निम्नलिखित कोड के लिए आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>ary = np.array([1,2,3,5,8])<br>ary = ary + 1<br>print (ary[1])</pre>
A.
0
0
B.
1
1
C.
2
2
D.
3
3
Question No# :
47
out of 50
What is the data type of elements in a NumPy array?
NumPy ऐरे में तत्वों का डेटा प्रकार क्या है?
A.
Only integers
केवल पूर्णांक
B.
Only floating-point numbers
केवल फ़्लोटिंग-पॉइंट संख्याएँ
C.
Homogeneous, but can be integers or floating-point numbers
एक पारकर के डाटा , लेकिन पूर्णांक या फ़्लोटिंग-पॉइंट संख्याएं हो सकती हैं
D.
Heterogeneous, supporting a mix of data types
विषम, डेटा प्रकारों के मिश्रण का समर्थन करता है
Question No# :
48
out of 50
<p>What is the output of the following code ?</p><pre>import numpy as np<br>a = np.array([[1,2,3]])<br>print(a.shape)</pre>
<p>निम्नलिखित कोड का परिणाम क्या है ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a = np.array([[1,2,3]])<br>print(a.shape)</pre>
A.
(2,3)
(2,3)
B.
(3,1)
(3,1)
C.
(1,3)
(1,3)
D.
None of These
None of These
Question No# :
49
out of 50
<p>What will be output for the following code ?</p><pre>import numpy as np<br>a = np.array([[1, 2, 3],[0,1,4],[11,22,33]])<br>print (a.size)</pre><div><br></div>
<p>निम्नलिखित कोड के लिए आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a = np.array([[1, 2, 3],[0,1,4],[11,22,33]])<br>print (a.size)</pre>
A.
1
1
B.
3
3
C.
9
9
D.
4
4
Question No# :
50
out of 50
<p>What is a correct syntax to print the number 8 from the array below:</p><pre>arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])</pre>
<p>नीचे दी गई सरणी से संख्या 8 को प्रिंट करने के लिए एक सही सिंटैक्स क्या है:</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])</pre>
A.
print(arr[3,0])
print(arr[3,0])
B.
print(arr[1,2])
print(arr[1,2])
C.
print(arr[7,2])
print(arr[7,2])
D.
None of The Above
इनमे से कोई भी नहीं
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2026
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Best Website and Software Company in Allahabad