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
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# :
02
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# :
03
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# :
04
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# :
05
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# :
06
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# :
07
out of 50
Which attribute returns number of bytes per element?
कौन-सा administrative function प्रति element bytes की संख्या return करता है?
A.
itemsize
itemsize
B.
nbytes
nbytes
C.
memory
memory
D.
bytesize
bytesize
Question No# :
08
out of 50
Which function creates linearly spaced values?
कौन सा फ़ंक्शन रैखिक रूप से व्यवस्थित मान उत्पन्न करता है?
A.
range()
range()
B.
space()
space()
C.
arange()
arange()
D.
linspace()
linspace()
Question No# :
09
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# :
10
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# :
11
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# :
12
out of 50
NumPY stands for:
NumPY का पूर्ण रूप है:
A.
Numbering Python
नबरिंग पाइथन
B.
Number In Python
नबरिंग इन पाइथन
C.
Numerical Python
नुमेरिकल पाइथन
D.
None of the above
उपरोक्त में से कोई नहीं
Question No# :
13
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# :
14
out of 50
<p>What will be the output of the following Python code?</p><pre>len(["hello",2, 4, 6])</pre><div><br></div>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">len(["hello",2, 4, 6])</pre>
A.
Error
Error
B.
6
6
C.
4
4
D.
3
3
Question No# :
15
out of 50
The most important object defined in NumPy is an N-dimensional array type called?
NumPy में परिभाषित सबसे महत्वपूर्ण एक ऑब्जेक्ट न डायमेंशन ऐरे का प्रकार है जिसे कहा जाता है?
A.
ndarray
ndarray
B.
narray
narray
C.
nd_array
nd_array
D.
darray
darray
Question No# :
16
out of 50
Which of the following returns an array of ones with the same shape and type as a given array?
निम्नलिखित में से कौन दिए गए ऐरे के समान आकार और प्रकार का एक ऐरे देता है?
A.
all_like
all_like
B.
ones_like
ones_like
C.
one_alike
one_alike
D.
all of the mentioned
उल्लिखित सभी
Question No# :
17
out of 50
What is the default datatype of np.array([1,2,3])?
np.array([1,2,3]) का default datatype क्या है?
A.
float64
float64
B.
int32
int32
C.
int64
int64
D.
object
object
Question No# :
18
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# :
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 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# :
21
out of 50
<p>How many values are generated?</p><pre><span style="font-size: 14px;">import numpy as np<br></span><span style="font-size: 14px;">print(np.linspace(0, 10, 6))</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;">print(np.linspace(0, 10, 6))</span></pre>
A.
5
5
B.
10
10
C.
6
6
D.
11
11
Question No# :
22
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# :
23
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# :
24
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# :
25
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# :
26
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# :
27
out of 50
What is the output of np.arange(1,10,2)?
np.arange(1,10,2) का output क्या होगा?
A.
[1,3,5,7,9]
[1,3,5,7,9]
B.
[1,2,3,4,5]
[1,2,3,4,5]
C.
[2,4,6,8]
[2,4,6,8]
D.
Error
Error
Question No# :
28
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# :
29
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# :
30
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# :
31
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# :
32
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# :
33
out of 50
Which function is used to create a NumPy array?
NumPy array बनाने के लिए कौन-सा function उपयोग होता है?
A.
np.create()
np.create()
B.
np.array()
np.array()
C.
np.ndarray()
np.ndarray()
D.
np.makearray()
np.makearray()
Question No# :
34
out of 50
_____ creates an uninitialized array of specified shape and dtype.
.....निर्दिष्ट शेप और dtype का एक अनइनीशिलाइज्ड ऐरे बनाता का है।
A.
full
full
B.
empty
empty
C.
init
init
D.
None of these
इनमें से कोई नहीं
Question No# :
35
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# :
36
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# :
37
out of 50
What is the use of shape() in numpy?
numpy में shape() का उपयोग क्या है?
A.
change in shape of array
change in shape of array
B.
reshaping of array
reshaping of array
C.
get the shape of the array
get the shape of the array
D.
All of above
All of above
Question No# :
38
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# :
39
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# :
40
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# :
41
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# :
42
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# :
43
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# :
44
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# :
45
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# :
46
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# :
47
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# :
48
out of 50
Attribute of array determines
ऐरे के एट्रिब्यूट से क्या क्या पता कर सकते है
A.
Size, shape
साइज़ और आकार
B.
memory consumption
मेमोरी खपत
C.
data type of array
डेटा प्रकार
D.
All of these
ऊपर के सभी
Question No# :
49
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# :
50
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
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