Aparna Dhirde
Quiz by , created more than 1 year ago

Quiz on Multiple Choice Questions-NumPy, created by Aparna Dhirde on 30/03/2020.

3265
0
0
Aparna Dhirde
Created by Aparna Dhirde over 4 years ago
Close

Multiple Choice Questions-NumPy

Question 1 of 15

1

Correct syntax of the reshape() function in Numpy array python is

Select one of the following:

  • array.reshape(shape)

  • reshape(shape,array)

  • reshape(array,shape)

  • reshape(shape)

Explanation

Question 2 of 15

1

Which of the following find the maximum number in the Numpy array ?

Select one of the following:

  • max(array)

  • array.max()

  • array(max)

  • None of the above

Explanation

Question 3 of 15

1

How we can change the shape of the Numpy array in python?

Select one of the following:

  • By Shape()

  • By reshape()

  • By ord()

  • By change()

Explanation

Question 4 of 15

1

How we can convert the Numpy array to the list in python?

Select one of the following:

  • list(array)

  • list.array

  • array.list

  • None of the above

Explanation

Question 5 of 15

1

How we can find the type of numpy array in python ?

Select one of the following:

  • dtype

  • type

  • typei

  • itype

Explanation

Question 6 of 15

1

How we install Numpy in the system ?

Select one of the following:

  • install numpy

  • pip install python numpy

  • pip install numpy

  • pip install numpy python

Explanation

Question 7 of 15

1

It is possible to convert the Numpy array to list in python ?

Select one of the following:

  • Yes

  • No

  • Sometimes

  • None of the above

Explanation

Question 8 of 15

1

Minimum number of argument to pass in full() function in Numpy array ?

Select one of the following:

  • 0

  • 1

  • 2

  • 3

Explanation

Question 9 of 15

1

Numpy in the Python provides the

Select one of the following:

  • Function

  • Lambda function

  • Type casting

  • Array

Explanation

Question 10 of 15

1

Numpy.array(list), what it does ?

Select one of the following:

  • It convert array to list

  • It convert list to array

  • It convert array to array

  • Error

Explanation

Question 11 of 15

1

Shape() function in Numpy array is used to

Select one of the following:

  • Find the shape of the array

  • Change the shape of the array

  • Both of the above

  • None of the above

Explanation

Question 12 of 15

1

What is the use of the size attribute in Numpy array in python ?

Select one of the following:

  • It find the direction

  • It find the number of items

  • It find the shape

  • All of the above

Explanation

Question 13 of 15

1

what is the use of the zeros() function in Numpy array in python ?

Select one of the following:

  • To make a Matrix with all element 0

  • To make a Matrix with all diagonal element 0

  • To make a Matrix with first row 0

  • None of the above

Explanation

Question 14 of 15

1

What gets printed?
import numpy as np
ary=np.array([1,2,3,5,8])
ary=ary+1
print(ary[1])

Select one of the following:

  • 1

  • 2

  • 3

  • 4

Explanation

Question 15 of 15

1

Which of the following is correct way to import the Numpy module in your program ?

Select one of the following:

  • import numpy

  • import numpy as np

  • from numpy import *

  • All of the above

Explanation