
Python quiz 2
Authored by Gnaneshwar Reddy
Physical Ed
1st Grade
20 Questions
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Why do we need loops in programming?
For avoiding repeated code.
For iterations.
For traversals.
All are correct.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do we differentiate the body of the loop from the rest of the code?
Writing loop above.
Using proper indentation.
All are correct.
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is a loop in python?
While
Do-while
If-else
Foreach
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following creates iterable elements?
If-else
Range
Count
None of these.
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Find the count of even numbers in the output of the code given below?
# Code snippet starts
for i in range(23,102,25):
print(i, end = “-“)
print(“0″,end=” “)
2
1
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the code given below?
# Code snippet starts
val = list(range(132,78,-12))
print(val)
# Code snippet ends
Range Error
[132, 120, 108, 96, 84]
Compilation error
None of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Find the output of the code given below?
# Code snippet starts
val = 500
while val>=230:
val = val*2//7
print(val)
# Code snippet ends
147
142
148
250
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
15 questions
P1 Personal hygiene quiz
Quiz
•
1st - 2nd Grade
15 questions
Sports Enrichment
Quiz
•
KG - 5th Grade
15 questions
Health and First Aid Quiz
Quiz
•
1st Grade
15 questions
SPS240
Quiz
•
1st Grade
18 questions
CPR Knowledge Quiz
Quiz
•
1st Grade
15 questions
Jeux d'opposition
Quiz
•
1st Grade
20 questions
Diving Physics
Quiz
•
1st Grade - Professio...
15 questions
Olympics Quiz
Quiz
•
1st - 6th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade