
grade 9 week 12
Authored by jax teller
Information Technology (IT)
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to create a loop in Python?
loop
repeat
for
iterate
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code print? for i in range(3): print(i)
a) 1 2 3
b) 0 1 2
c) 0 1 2 3
d) 1 2
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the range(5) function generate?
[1, 2, 3, 4, 5]
[0, 1, 2, 3, 4]
[0, 5]
[5, 4, 3, 2, 1]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which loop is used when the number of iterations is unknown?
for
while
repeat
iterate
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of: count = 0 while count < 3: print("Hi") count += 1
1 Hi
2 Hi
3 Hi
Infinite Hi
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these loops will never stop?
Infinite loop
Finite loop
Nested loop
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is required to avoid an infinite while loop?
break statement
condition update inside loop
range()
print()
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?