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

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
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
18 questions
Badminton Officiating Rules & Regulations
Quiz
•
KG - 11th Grade
15 questions
How well do you know Kevin De Bruyne
Quiz
•
KG - Professional Dev...
15 questions
ACT 1 - QUIZ NO.1
Quiz
•
1st Grade
20 questions
KARATE DO PUP
Quiz
•
1st - 5th Grade
20 questions
Q4: PE 3 - MOVEMENT RELATIONSHIP
Quiz
•
1st - 6th Grade
20 questions
Grade 1-2 PE Assessment
Quiz
•
1st - 5th Grade
15 questions
P.E. Test Level 1 - 2
Quiz
•
1st - 2nd Grade
20 questions
Rugby Tag
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Physical Ed
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade