
9.1 homework Count controlled loops
Authored by K Tilney
Computers
8th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a count-controlled iteration in Python?
Repeating a set of instructions a fixed number of times
Repeating instructions until a condition is met
Running code only once
Skipping instructions in a program
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the missing word in this count controlled loop.
for i in ___________ (10):
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the variable 'i' represent in the following code? for i in range(5): print("Hello!")
The number of times "Hello!" is printed
The counter that keeps track of loop runs
The total number of loops
The value to be printed
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python statement is used to repeat an action a specific number of times in the provided code?
for i in range(times):
print("High five number", i + 1, "🖐")
times = int(input("How many high-fives do you want? "))
if times > 0:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value does the counter (i) start at in the example for loop: for i in range(5)?
0
1
5
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you want to print "Goodbye!" 3 times using a for loop in Python. Which code would you use?
for i in range(3): print("Goodbye!")
for i in range(5): print("Goodbye!")
for i in range(1): print("Goodbye!")
for i in range(0): print("Goodbye!")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Python code "for i in range(1, 6): print(i)" do?
Prints the numbers 1 to 6
Prints the numbers 0 to 5
Prints the numbers 1 to 5
Prints the number 6 only
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
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Anime
Quiz
•
KG - University
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
9 questions
Microbit Features Activity
Quiz
•
6th - 8th 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