What is a correct syntax to create a NumPy array?

PP_Week12_Batch1_Numpy

Quiz
•
Professional Development, Computers
•
•
Medium
Narasimha Reddy Soora
Used 1+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
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
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?
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
Similar Resources on Quizizz
20 questions
Sjmit-Q2-[Workshop-MAR-25]

Quiz
•
12th Grade - University
15 questions
Python Arrays Quiz P7

Quiz
•
11th Grade
20 questions
Pointers

Quiz
•
University
12 questions
Coding Vocabulary Words

Quiz
•
8th Grade
17 questions
Quiz 9

Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
15 questions
Data Analytics using Python - Quiz 2

Quiz
•
University
20 questions
Module 2 Review

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade