
Python Quiz
Authored by REENA. S
Computers
5th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
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
Pioneers of Technology
Quiz
•
4th - 6th Grade
34 questions
Mulitimedia Pixlr Questions
Quiz
•
5th 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...
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
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
13 questions
The Life of Dr. Martin Luther King, Jr. - MLK Day! (Animated)
Interactive video
•
5th Grade
22 questions
Nonfiction Text Structures
Quiz
•
5th Grade
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
18 questions
Add and Subtract fractions and Mixed numbers
Quiz
•
5th Grade
13 questions
Martin Luther King, Jr. Holiday Lesson
Interactive video
•
5th Grade