Python Quiz 1.6

Quiz
•
Computers
•
University
•
Hard
Rahul Mahato
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Quiz 9

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
15 questions
Javascript Array dan Object

Quiz
•
University
14 questions
Array output

Quiz
•
University
15 questions
C programming

Quiz
•
University
15 questions
Selection Sort & Exhaustive Search

Quiz
•
University
10 questions
8.2 Arrays Cambridge IGCSE 0478

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University