
PYTHON(28.07.2023)
Authored by Anandhi Technology
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to create an identity matrix in NumPy?
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)
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
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
9 questions
PreTrainingCollectionsArrays
Quiz
•
Professional Development
10 questions
DP-100 Day 4
Quiz
•
University - Professi...
10 questions
AWS ACF Módulo 1 - Visão geral dos conceitos de nuvem
Quiz
•
Professional Development
10 questions
Senz AIoT Savants - ML & C++
Quiz
•
Professional Development
11 questions
Java Fundamentals
Quiz
•
Professional Development
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
10 questions
DevOps Quiz
Quiz
•
Professional Development
10 questions
CND Quiz Week 11
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade