ЁЯЪА Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

NumPy Basics

Question: 51 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХреЛрдб рдХрд╛ рдкрд░рд┐рдгрд╛рдо рдХреНрдпрд╛ рд╣реИ ?

What will be output for the following code ?

import numpy as np
ary = np.array( [1, 2, 3, 5, 8 ] )
ary = ary + 1
print (ary [1] )
A)
B)
C)
D)

Question: 52 Report Error

x рдХрд╛ рдбреЗрдЯрд╛рдЯрд╛рдЗрдк рдХреНрдпрд╛ рд╣реИ?

What is the datatype of x ?

import numpy as np
a = np.array( [1, 2, 3, 4 ] )
x = a.tolist()
A)
B)
C)
D)

Question: 53 Report Error

NumPy рдкреИрдХреЗрдЬ рдореЗрдВ eye( ) рдлрд╝рдВрдХреНрд╢рди рдХреНрдпрд╛ рд▓реМрдЯрд╛рддрд╛ рд╣реИ?

What does the eye( ) function in the NumPy package return ?

A)
B)
C)
D)

Question: 54 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХреЛрдб рдХреЗ рд▓рд┐рдП рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛?

What will be output for the following code ?

import numpy as np 
a = np.array([[1,2,3],[0,1,4]]) 
print (a.size)
A)
B)
C)
D)

Question: 55 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХреЛрдб рдХреЗ рд▓рд┐рдП рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛?

What is the output of the following code ?

import numpy as np 
a = np.array([1,2,3]) 
print(a.ndim)
A)
B)
C)

Question: 56 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХреЛрдб рдХреЗ рд▓рд┐рдП рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛?

What will be output for the following code ?

import numpy as np 
a = np.array([[[1,2,3,5,8]]]) 
print (a.ndim)
A)
B)
C)
D)

Question: 57 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХреЛрдб рдХреЗ рд▓рд┐рдП рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛?

What will be output for the following code ?

import numpy as np 
a = np.array( [2, 3, 4, 5] ) 
print(a.dtype)
A)
B)
C)
D)

Latest Updates