PP_Week12_Batch1_Numpy

PP_Week12_Batch1_Numpy

16 Qs

quiz-placeholder

Similar activities

Python Quiz 1.6

Python Quiz 1.6

University

12 Qs

NumPy

NumPy

10th Grade

15 Qs

pyplot in python class 12 (14/08/20)

pyplot in python class 12 (14/08/20)

12th Grade

20 Qs

July Monthly Test IP 20.07.2020

July Monthly Test IP 20.07.2020

12th Grade

15 Qs

python advance

python advance

10th Grade

13 Qs

JavaScript Quiz

JavaScript Quiz

University

12 Qs

Quiz 4.1

Quiz 4.1

Professional Development

20 Qs

InCube #Quiz 2

InCube #Quiz 2

University

15 Qs

PP_Week12_Batch1_Numpy

PP_Week12_Batch1_Numpy

Assessment

Quiz

Professional Development, Computers

Medium

Created by

Narasimha Reddy Soora

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to create a NumPy array?

Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is a correct syntax to print the numbers [3, 4, 5] from the array arr given in the image

print(arr[2:5])

print(arr[2:6])

print(arr[2:4])

print(arr[3:6])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to return the shape of an array?

shape(arr)

arr.shape

arr.shape()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the correct syntax to reshape the array given in the image into 4 arrays with 3 elements?

newarr = arr.reshape(3, 4)

newarr = arr.shape(3, 4)

newarr = arr.reshape(4, 3)

newarr = arr.shape(4, 3)

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the code given in the image?

[1 3 6]

[6]

[3 6 9]

[9]

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a correct syntax to subtract the numbers from arr1 with the numbers from arr2?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct method for getting the Natural Logarithm (Logarithm at base e)?


arr = np.arange(1, 10)

np.log(arr)

np.loge(arr)

np.natural(arr)

np.ln(arr)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?