Multiple Choice Questions-NumPy

Description

Quiz on Multiple Choice Questions-NumPy, created by Aparna Dhirde on 30/03/2020.
Aparna Dhirde
Quiz by Aparna Dhirde, updated more than 1 year ago
Aparna Dhirde
Created by Aparna Dhirde over 4 years ago
3299
0

Resource summary

Question 1

Question
Correct syntax of the reshape() function in Numpy array python is
Answer
  • array.reshape(shape)
  • reshape(shape,array)
  • reshape(array,shape)
  • reshape(shape)

Question 2

Question
Which of the following find the maximum number in the Numpy array ?
Answer
  • max(array)
  • array.max()
  • array(max)
  • None of the above

Question 3

Question
How we can change the shape of the Numpy array in python?
Answer
  • By Shape()
  • By reshape()
  • By ord()
  • By change()

Question 4

Question
How we can convert the Numpy array to the list in python?
Answer
  • list(array)
  • list.array
  • array.list
  • None of the above

Question 5

Question
How we can find the type of numpy array in python ?
Answer
  • dtype
  • type
  • typei
  • itype

Question 6

Question
How we install Numpy in the system ?
Answer
  • install numpy
  • pip install python numpy
  • pip install numpy
  • pip install numpy python

Question 7

Question
It is possible to convert the Numpy array to list in python ?
Answer
  • Yes
  • No
  • Sometimes
  • None of the above

Question 8

Question
Minimum number of argument to pass in full() function in Numpy array ?
Answer
  • 0
  • 1
  • 2
  • 3

Question 9

Question
Numpy in the Python provides the
Answer
  • Function
  • Lambda function
  • Type casting
  • Array

Question 10

Question
Numpy.array(list), what it does ?
Answer
  • It convert array to list
  • It convert list to array
  • It convert array to array
  • Error

Question 11

Question
Shape() function in Numpy array is used to
Answer
  • Find the shape of the array
  • Change the shape of the array
  • Both of the above
  • None of the above

Question 12

Question
What is the use of the size attribute in Numpy array in python ?
Answer
  • It find the direction
  • It find the number of items
  • It find the shape
  • All of the above

Question 13

Question
what is the use of the zeros() function in Numpy array in python ?
Answer
  • 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

Question 14

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

Question 15

Question
Which of the following is correct way to import the Numpy module in your program ?
Answer
  • import numpy
  • import numpy as np
  • from numpy import *
  • All of the above
Show full summary Hide full summary

Similar

Fractions and percentages
Bob Read
Biology- Genes, Chromosomes and DNA
Laura Perry
Revision Timetable
katy.lay
Of Mice and Men Quotes
_Jess_
AS Chemistry - Enthalpy Changes
Sarah H-V
An Timpeallacht (Foclóir)
Sarah Egan
Junior Cert Physics formulas
Sarah Egan
Contract Law
sherhui94
SFDC App Builder 1 (126-150)
Connie Woolard
SFDC App Builder 1 (176-200ish)
Connie Woolard
The Children Act 2004
Carina Storm