
Python Quiz 1.6
Authored by Rahul Mahato
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is full form of NumPy?
Number Python
Numeric Python
Numerical Python
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the function is a function to create a numpy array?
empty()
array()
ones()
All the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
np.arange(2,8)
array([2, 3, 4, 5, 6, 7])
array([3, 4, 5, 6, 7])
array([2, 3, 4, 5, 6, 7, 8])
array([3, 4, 5, 6, 7, 8])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below code.
a = np.array([[[1,2,3],[4,5,6]]])
print(a.ndim)
1
(1,3)
3
(3,1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below code.
a = np.array([[1,2,3],[4,5,6]])
print(a[1,2])
6
5
2
TypeError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
print(np.linspace(1,5,5))
array([1. , 2.33333333, 3.66666667, 5. ])
array([1., 2., 3., 4., 5.])
array([1. , 1.8, 2.6, 3.4, 4.2, 5. ])
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is code gives an error?
a = np.array([(1,2,3),(4,5,6)]) a[(0,1)]
a = np.array([(1,2,3),(4,5,6)]) a.reshape(2,4)
a = np.array([(1,2,3),(4,5,6)]) a[np.arange(1), :]
All the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
L1 - Computer Networks
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
Bengkel Interpretasi Kurikulum Program DIT
Quiz
•
University
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
Information systems concepts
Quiz
•
University
10 questions
Soal SKD
Quiz
•
University - Professi...
12 questions
Porcentajes
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade