
Python Quiz
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Hard
REENA. S
Used 7+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the importance of the init method in a class?
It initializes all the classes in code
It imports all the modules required for the program
It initializes the attributes of a class when an object is created
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code ?
Mylist = [1,2,3,5,3,4,6,9]
Mylist[-6:6]
[]
[3, 5, 3, 4]
[4, 3, 5, 3]
Index Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the method that is bound to class but not the instance?
Static method
Class method
Main Method
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a generator in Python?
The function that generates random numbers of specified count
The function that generates an error when a warning occurs
The function that gives a statement as output rather than a retur
The function that returns a generic object
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to print the doc string of a function?
myFun.doc()
doc(myFun)
doc(myFun)
myFun.__doc__
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
What is the output of the below code?
a1,b1,c1=1,2,3,4,5
print(b1)
2
4
1,2,3,4,5
ValueError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
What is the output of the below code?
List=list(range(-5,5,2))
len(List)
2
5
10
7
Create a free account and access millions of resources
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
25 questions
Pioneers of Technology
Quiz
•
4th - 6th Grade
25 questions
The Internet and it's usage
Quiz
•
3rd - 5th Grade
25 questions
RoboMind
Quiz
•
2nd - 5th Grade
29 questions
COMPTIA ITF
Quiz
•
1st Grade - Professio...
30 questions
9.1 - Computer Crime and Cyber Security
Quiz
•
4th - 9th Grade
27 questions
Programming with Karel the Dog I
Quiz
•
5th - 8th Grade
25 questions
Computer Basics
Quiz
•
4th - 6th Grade
25 questions
Working With Number (Microsoft Excel beginner)
Quiz
•
4th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
