Which of the following is used to create an identity matrix in NumPy?

PYTHON(28.07.2023)

Quiz
•
Computers
•
Professional Development
•
Hard
Anandhi Technology
Used 1+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
zeros()
ones()
arange()
eye()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
import numpy as np
a = np.array([[1, 2], [3, 4]])
print((a).ndim)
0
1
2
3
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
import numpy as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
c = np.concatenate((a, b))
print(c)
[[1, 2, 3], [4, 5, 6]]
[[1, 4], [2, 5], [3, 6]]
[1, 2, 3, 4, 5, 6]
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import numpy as np
a = np.array([(10,20,30)])
print(a.itemsize)
2
4
3
6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correctly evaluated for this function?
pow(x,y,z)
(x**y) / z
(x / y) * z
(x**y) % z
(x / y) / z
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"pythoncode"[6:]
What will be the output of this code?
python
code
pythoncode
error
Similar Resources on Quizizz
10 questions
C Programming

Quiz
•
Professional Development
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
6 questions
Python Basics: External Libraries

Quiz
•
University - Professi...
9 questions
Javascript Array and Object

Quiz
•
University - Professi...
5 questions
Python - Numpy Quiz 1

Quiz
•
University - Professi...
10 questions
Latarnicy 2020

Quiz
•
1st Grade - Professio...
10 questions
informatyka by Robert Makłowicz

Quiz
•
KG - Professional Dev...
10 questions
[S3 Q2 10-12] Python z minecraftem

Quiz
•
Professional Development
Popular Resources on Quizizz
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade