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
The number of axes in an ndarray is called its ___
एक ndarray में अक्षों की संख्या को उसका ___कहा जाता है।
A.
rank
रैंक
B.
dtype
डीटाइप
C.
shape
शेप
D.
None of these
इनमे से कोई भी नहीं
Question No# :
02
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# :
03
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# :
04
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# :
05
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# :
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
Attribute of array determines
ऐरे के एट्रिब्यूट से क्या क्या पता कर सकते है
A.
Size, shape
साइज़ और आकार
B.
memory consumption
मेमोरी खपत
C.
data type of array
डेटा प्रकार
D.
All of these
ऊपर के सभी
Question No# :
08
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# :
09
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# :
10
out of 50
<p>What will be output for the following code ?</p><p><span style="font-size: 14px;">import numpy as np</span></p><p><span style="font-size: 14px;">ary=np.array([1,2,3,5,8])</span></p><p><span style="font-size: 14px;">ary=ary+1</span></p><p><span style="font-size: 14px;">print(ary[1])</span></p><div><br></div>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><p><span style="font-size: 14px;">import numpy as np</span></p><p><span style="font-size: 14px;">ary=np.array([1,2,3,5,8])</span></p><p><span style="font-size: 14px;">ary=ary+1</span></p><p><span style="font-size: 14px;">print(ary[1])</span></p><div><br></div>
A.
0
0
B.
1
1
C.
2
2
D.
3
3
Question No# :
11
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# :
12
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]])<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]])<br>print (a.size)</pre>
A.
1
1
B.
5
5
C.
6
6
D.
4
5
Question No# :
13
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,5,8])<br>b = np.array([0,1,5,4,2])<br>c = a + b<br>c = c*a<br>print (c[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,5,8])<br>b = np.array([0,1,5,4,2])<br>c = a + b<br>c = c*a<br>print (c[2])</pre>
A.
6
6
B.
24
24
C.
0
0
D.
None of these
None of these
Question No# :
14
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# :
15
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# :
16
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# :
17
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# :
18
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# :
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
<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# :
21
out of 50
<p>What is the datatype of x ?</p><pre>import numpy as np<br>a=np.array([1,2,3,4])<br>x=a.tolist()</pre><div><br></div>
<p>x का डेटाटाइप क्या है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a=np.array([1,2,3,4])<br>x=a.tolist()</pre><p> </p>
A.
int
int
B.
array
array
C.
tuple
tuple
D.
list
list
Question No# :
22
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# :
23
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# :
24
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# :
25
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# :
26
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# :
27
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# :
28
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# :
29
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# :
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
<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# :
32
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# :
33
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# :
34
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# :
35
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# :
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
<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# :
38
out of 50
Who developed NumPy?
Numpy किसके द्वारा विकसित किया गया है?
A.
Guido van Rossum
Guido van Rossum
B.
Travis Oliphant
Travis Oliphant
C.
Wes McKinney
Wes McKinney
D.
Jim Hugunin
Jim Hugunin
Question No# :
39
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# :
40
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# :
41
out of 50
NumPY stands for:
NumPY का पूर्ण रूप है:
A.
Numbering Python
नबरिंग पाइथन
B.
Number In Python
नबरिंग इन पाइथन
C.
Numerical Python
नुमेरिकल पाइथन
D.
None of the above
उपरोक्त में से कोई नहीं
Question No# :
42
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# :
43
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# :
44
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# :
45
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# :
46
out of 50
<p>What is the output of the following code?</p><pre><span style="font-size: 14px;">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])</span> </pre><div><br></div><div><br></div>
<p>निम्नलिखित कोड का आउटपुट क्या है?</p><pre style=""><span style="font-size: 14px;">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])</span><span style="font-size: 12.6px; letter-spacing: 0.14px;"> </span></pre><div><br></div>
A.
10
10
B.
21
21
C.
12
12
D.
28
28
Question No# :
47
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=np.array([3,5])<br>c=a+b<br>print(c)</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=np.array([3,5])<br>c=a+b<br>print(c)</pre>
A.
[2 4 1 3 5 ]
[2 4 1 3 5 ]
B.
[5 9 1]
[5 9 1]
C.
15
15
D.
ValueError
ValueError
Question No# :
48
out of 50
<p>What will be the output of following Python code?</p><pre>import numpy as np<br>a = np.array([(10,20,30)])<br>print(a.itemsize)</pre><div><br></div>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import numpy as np<br>a = np.array([(10,20,30)])<br>print(a.itemsize)</pre>
A.
10
10
B.
9
9
C.
4
4
D.
All of the mentioned above
All of the mentioned above
Question No# :
49
out of 50
Which of the following Numpy operation are correct?
निम्नलिखित में से कौन सा Numpy ऑपरेशन सही है?
A.
Mathematical and logical operations on arrays.
सरणियों पर गणितीय और तार्किक संचालन
B.
Fourier transforms and routines for shape manipulation.
आकार हेरफेर के लिए फूरियर रूपांतरण और दिनचर्या।
C.
Operations related to linear algebra.
रैखिक बीजगणित से संबंधित संचालन।
D.
All of the above
ऊपर के सभी
Question No# :
50
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
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
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
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz