NEW
Font size
WorksheetsFun with Numpy
Total questions: 10
Worksheet time: 3mins
Each location of an element in an array is called ______________
Size
Length
Index
Element
Two dimensional arrays are also known as ______________
Subscripts
Matrices
ndarray
Vectors
One dimensional arrays are also known as _____________
Vectors
ndarray
Matrices
Subscript
Which one of these is given as the 1st subscript?
column index no.
row index no.
_________________ returns the length of each element of array in bytes.
len()
itemsize
shape
type
A=np.array([1,2,3,4],dtype=np.float64)
What is the itemsize of array 'A'?
1
4
8
16
b=np.array([[1,2,3,4],[5,6,7,8],[10,11,12,13]])
Write the value of b[2,1].
3
6
10
11
We can do arithmetic operations in python list.
True
False
x=np.array([9,4,2,7])
y=x+5
[14 9 7 12]
[14,9 ,7, 12]
[13 8 6 12]
[13,8 ,6 ,12]
_______________ is used to change the dimension or shape of the array.(Select the code used for it.)
shape
reshape
reshape()
itemsize
