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 5 years ago
3322
0
1 2 3 4 5 (1)

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

0 comments

There are no comments, be the first and leave one below:

Similar

Anatomy and Physiology
pressey_property
Study Plan
mlanders
GRE Word of the Day
SAT Prep Group
Geography Unit 1, World at Risk Compulsory Case Study 3 - Impact of climate change on the Arctic region
Holly Lovering
Exchange surfaces and breathing
megan.radcliffe16
Biology B1
Phoebe Drew
Variation and evolution Quiz
James Edwards22201
AS level Maths Equations to Remember
Gurdev Manchanda
An Inspector Calls- Quotes
ae14bh12
MCQ practice for research methods, psychology
Ben Armstrong