
Looping Unit Test
Authored by Tim Collier
others
KG
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops would print the following numbers.
for i in range(5) :
print(i)
for i in range(1, 5, 1) : print(i)
for i in range(6) :
print(i)
for i in range(0, 5, 1) : print(i)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following for loops would print the following numbers? 3 5 7 9
for i in range(3, 10, 2): print(i)
for i in range(3, 9, 2): print(i)
for i in range(9) :
print(i)
for i in range(3, 9) : print(i)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of num when this loop completes?
2
8
12
20
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following for loops will give the same values for i as the loop below?
for i in range(11, 0):
for i in range(10, 0, -1):
for i in range(0, 10):
for i in range(0, 11, 1):
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Three of the for loops below will provide identical values for i. Which for loop will provide values that do not others?
for i in range(0, 5):
for i in range(5):
for i in range(0, 5, 1):
for i in range(5, 0, 1):
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this program print?
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
It's still a nice day
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following while loops would continue to loop as long as num has values between the range of 3 exclusive?
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
Quiz sull'Energia Idroelettrica
Quiz
•
8th Grade - University
10 questions
DSD QUIZZ 2 2023 Batch
Quiz
•
KG - University
19 questions
4ºESO Digitalización (Test de hardware del ordenador)
Quiz
•
KG - University
20 questions
Adjektiver
Quiz
•
KG - University
10 questions
Revision #2
Quiz
•
KG - University
12 questions
Tes formatif proyeksi
Quiz
•
KG - University
17 questions
Sales & Marketing Technical Quiz
Quiz
•
KG - University
10 questions
QUIZ MS WORD
Quiz
•
KG - University
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 others
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade