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
<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>print(a.ndim)</pre><div><br></div>
<p>निम्नलिखित कोड के लिए आउटपुट क्या होगा?</p><pre style="font-size: 12.6px;">import numpy as np<br>a=np.array([1,2,3,5,8])<br>print(a.ndim)</pre><div><br style="letter-spacing: 0.14px;"></div>
A.
0
0
B.
1
1
C.
2
2
D.
3
3
Question No# :
02
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# :
03
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# :
04
out of 50
<p>What will be the output of the following ?</p><pre>import numpy as np<br>a=np.array([2,4,1])<br>b=a<br>a[1]=3<br>print(b)</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,1])<br>b=a<br>a[1]=3<br>print(b)</pre>
A.
[2 4 1]
[2 4 1]
B.
[3 4 1]
[3 4 1]
C.
[2 3 1]
[2 3 1]
D.
[2 4 3]
[2 4 3]
Question No# :
05
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# :
06
out of 50
<p>What will be the output of the following ?</p><pre>import numpy as np<br>a = np.array( [2, 3, 4, 5] )<br>b = np.arange(4)<br>print(a+b)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a = np.array( [2, 3, 4, 5] )<br>b = np.arange(4)<br>print(a+b)</pre>
A.
[2 3 4 5]
[2 3 4 5]
B.
[3 4 5 6]
[3 4 5 6]
C.
[1 2 3 4]
[1 2 3 4]
D.
[2 4 6 8]
[2 4 6 8]
Question No# :
07
out of 50
Getting and setting the value of individual array elements:
पर्टिकुलर ऐरे एलिमेंट का मान प्राप्त करना और सेट करना
A.
Indexing
इंडेक्सिंग
B.
Slicing
स्लाइसिंग
C.
Reshaping
रिशेपिंग
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
08
out of 50
Using ndim we can find
ndim का उपयोग करके हम पा सकते हैं
A.
We can find the dimension of the array
We can find the dimension of the array
B.
Size of array
Size of array
C.
Operational activities on Matrix
Operational activities on Matrix
D.
None of the mentioned above
None of the mentioned above
Question No# :
09
out of 50
What is the purpose of zeros() function used in NumPy array ?
NumPy सरणी में उपयोग किए जाने वाले शून्य () फ़ंक्शन का उद्देश्य क्या है?
A.
To make a Matrix with all diagonal element 0
To make a Matrix with all diagonal element 0
B.
To make a Matrix with first row 0
To make a Matrix with first row 0
C.
To make a Matrix with all elements 0
To make a Matrix with all elements 0
D.
None of the above
None of the above
Question No# :
10
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# :
11
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
out of 50
<p>What is a correct syntax to print the numbers [3, 4, 5] from the array below:</p><pre>arr = np.array([1,2,3,4,5,6,7])</pre>
<p>नीचे दी गए ऐरे से संख्या [3, 4, 5] को प्रिंट करने के लिए एक सही सिंटैक्स क्या है:</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[2:4])
print(arr[2:4])
B.
print(arr[2:5])
print(arr[2:5])
C.
print(arr[2:6])
print(arr[2:6])
D.
print(arr[3:6])
print(arr[3:6])
Question No# :
17
out of 50
How can you create a NumPy array from a Python list?
आप Python सूची से NumPy सरणी कैसे बना सकते हैं?
A.
numpy.array(list)
numpy.array(list)
B.
numpy.array(list, dtype=float)
numpy.array(list, dtype=float)
C.
Both a and b
Both a and b
D.
None of the above
None of the above
Question No# :
18
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# :
19
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# :
20
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# :
21
out of 50
Which of the following is the primary object in NumPy for representing arrays?
ऐरे का प्रतिनिधित्व करने के लिए NumPy में निम्नलिखित में से कौन सा प्राथमिक ऑब्जेक्ट है?
A.
Array
Array
B.
List
List
C.
Matrix
Matrix
D.
Tuple
Tuple
Question No# :
22
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# :
23
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,3,.5)<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,3,.5)<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
[1 2 3]
[1 2 3]
B.
[1. 1.5 2. 2.5]
[1. 1.5 2. 2.5]
C.
[1. 1.5 2. 2.5 3]
[1. 1.5 2. 2.5 3]
D.
[1 1.5 2 2.5 3]
[1 1.5 2 2.5 3]
Question No# :
24
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# :
25
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# :
26
out of 50
Which of the following functions that retrieve information from the data type?
निम्नलिखित में से कौन सा कार्य डेटा प्रकार से जानकारी प्राप्त करता है?
A.
Constructors
Constructors
B.
Retriever
Retriever
C.
Finder
Finder
D.
Selectors
Selectors
Question No# :
27
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
इनमे से कोई भी नहीं
Question No# :
28
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# :
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
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# :
31
out of 50
How can you import NumPy in a Python script?
आप Python स्क्रिप्ट में NumPy को कैसे इम्पोर्ट कर सकते हैं?
A.
import numpy
import numpy
B.
import np
import np
C.
from math import numpy
from math import numpy
D.
import numPy as np
import numPy as np
Question No# :
32
out of 50
Getting and setting smaller subarrays within a larger array
एक बड़े ऐरे से छोटे ऐरे को प्राप्त करना और सेट करना
A.
Indexing
इंडेक्सिंग
B.
Slicing
स्लाइसिंग
C.
Reshaping
रिशेपिंग
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
33
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# :
34
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# :
35
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# :
36
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# :
37
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# :
38
out of 50
<p>What will be the output of the following ?</p><pre>import numpy as np<br>a=np.array([2,4,1])<br>b=a.copy()<br>a[1]=3<br>print(b)</pre>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a=np.array([2,4,1])<br>b=a.copy()<br>a[1]=3<br>print(b)</pre>
A.
[2 4 1]
[2 4 1]
B.
[2 3 1]
[2 3 1]
C.
[3 4 1]
[3 4 1]
D.
[2 4 3]
[2 4 3]
Question No# :
39
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# :
40
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# :
41
out of 50
What is a correct syntax to print the first item of an array?
किसी ऐरे के पहले आइटम को प्रिंट करने के लिए सही सिंटैक्स क्या है?
A.
print(arr[1])
print(arr[1])
B.
print(arr,0)
print(arr,0)
C.
print(arr,1)
print(arr,1)
D.
None of These
None of These
Question No# :
42
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# :
43
out of 50
NumPY stands for:
NumPY का पूर्ण रूप है:
A.
Numbering Python
नबरिंग पाइथन
B.
Number In Python
नबरिंग इन पाइथन
C.
Numerical Python
नुमेरिकल पाइथन
D.
None of the above
उपरोक्त में से कोई नहीं
Question No# :
44
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# :
45
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# :
46
out of 50
Attribute of array determines
ऐरे के एट्रिब्यूट से क्या क्या पता कर सकते है
A.
Size, shape
साइज़ और आकार
B.
memory consumption
मेमोरी खपत
C.
data type of array
डेटा प्रकार
D.
All of these
ऊपर के सभी
Question No# :
47
out of 50
empty( ) function used to create a NumPy array which contained the values
empty() फ़ंक्शन का उपयोग NumPy सरणी बनाने के लिए किया जाता है जिसमें मान होते हैं
A.
Filled with Zero
शून्य से भरा हुआ
B.
Filled with Blank space
रिक्त स्थान से भरा हुआ
C.
Filled with random garbage value
रैंडम गार्बेज मूल्य से भरा हुआ
D.
Filled with One
एक से भरा हुआ
Question No# :
48
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# :
49
out of 50
<p>What is the output of the following code ?</p><pre>import numpy as np<br>y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]])<br>print(y.ndim)</pre>
<p>निम्नलिखित कोड का परिणाम क्या है ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]])<br>print(y.ndim)</pre>
A.
1
1
B.
2
2
C.
3
3
D.
0
0
Question No# :
50
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
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