# Python/Python MCQS - Numpy Sample Test,Sample questions

## Question: `Correct syntax of the reshape() function in Numpy array python is -`

1.array.reshape(shape)

2.reshape(shape,array)

3.reshape(array,shape)

4.reshape(shape)

1.By Shape()

2.By reshape()

3.By ord()

4.By change()

## Question: `How we can convert the Numpy array to the list in python?`

1.list(array)

2.list.array

3.array.list

4.None of the above

1.dtype

2.type

3.typei

4.itype

## Question: `How we install Numpy in the system ?`

1.install numpy

2.pip install python numpy

3.pip install numpy

4.pip install numpy python

## Question: `It is possible to convert the Numpy array to list in python ?`

1.Yes

2.No

3.Sometimes

4.None of the above

1.0

2.1

3.2

4.3

## Question: `Numpy in the Python provides the`

1.Function

2.Lambda function

3.Type casting

4.Array

## Question: `Numpy.array(list), what it does ?`

1.It convert array to list

2.It convert list to array

3.It convert array to array

4.Error

## Question: `Shape() function in Numpy array is used to`

1.Find the shape of the array

2.Change the shape of the array

3.Both of the above

4.None of the above

## Question: `What is the use of the size attribute in Numpy array in python ?`

1.It find the direction

2.It find the number of items

3.It find the shape

4.All of the above

## Question: `what is the use of the zeros() function in Numpy array in python ?`

1.To make a Matrix with all element 0

2.To make a Matrix with all diagonal element 0

3.To make a Matrix with first row 0

4.None of the above

## Question: `Which of the following argument we need to pass in reshape() function?`

1.Array

2.Shape

3.only array

4.Both array and shape

1.count()

2.return()

3.shape()

4.size()

## Question: `Which of the following find the maximum number in the Numpy array ?`

1.max(array)

2.array.max()

3.array(max)

4.None of the above

## Question: `Which of the following is correct way to import the Numpy module in your program ?`

1.import numpy

2.import numpy as np

3.from numpy import *

4.All of the above

## Question: `Which of the following is not valid to import the numpy module ?`

1.import numpy as np

2.import numpy as n

3.import numpy as p

4.None of the above

## Question: `Which of the following is the essential argument to pass in full() function of Numpy array ?`

1.shape

2.value

3.Both of the above

4.None of the above

## Question: `Which of the following is used to convert the list data type to the Numpy array ?`

1.array(list)

2.array.list

3.Numpy.array(list)

4.None of the above

1.access

2.import

3.fetch

4.from

## More MCQS

##### R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!