
Pyhton-Loops
Authored by Zubaidah Shaheen
Computers
9th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many lines will this program print?
while True:
print("hi")
0
1
an infinite number of lines
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many lines will this program print?
x = 10
while x > 0:
print(x)
x = x - 3
3
4
5
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the purpose of a for loop?
A for loop is for doing something an indeterminate number of times.
A for loop is doing something an infinite number of times.
A for loop is for doing something a fixed number of times.
A for loop is for doing something three times.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following programs prints ten lines?
for i in range(10): print("hi")
for i = 1 to 10: print("hi")
for i in 1 - 10: print("hi")
for i from 0 to 9: print("hi")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I am using the following condition in my program:
while True:
which keyword should I use to make sure I don’t create an infinite loop?
break
continue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python keyword skips back to the beginning of a loop?
break
continue
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following does not properly nest control structures?
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
20 questions
Trắc nghiệm bài 9a-10a
Quiz
•
9th Grade
20 questions
Python with Ai
Quiz
•
9th Grade - University
20 questions
Perangkat lunak quiz
Quiz
•
7th - 9th Grade
20 questions
Documente Web. Formatul HTML
Quiz
•
9th Grade - University
20 questions
Network topologies
Quiz
•
8th Grade - University
18 questions
LATIHAN INFORMATIKA
Quiz
•
9th Grade
18 questions
Cyber Security and Social Engineering
Quiz
•
9th - 11th Grade
20 questions
Teknologi Informasi dan Komunikasi
Quiz
•
8th Grade - 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