9.1 homework Count controlled loops

9.1 homework Count controlled loops

8th Grade

10 Qs

quiz-placeholder

Similar activities

Python Ifs, Lists, and Loops

Python Ifs, Lists, and Loops

7th - 8th Grade

11 Qs

G-8-Python Basics Quiz

G-8-Python Basics Quiz

8th Grade

15 Qs

Java Basic Data Structures

Java Basic Data Structures

6th - 10th Grade

15 Qs

Spring 2 (Jan/Feb) Year 8

Spring 2 (Jan/Feb) Year 8

8th Grade

10 Qs

Code.org Express Course Quiz 2

Code.org Express Course Quiz 2

6th - 8th Grade

15 Qs

Coding quiz

Coding quiz

8th Grade

11 Qs

PowerPoint Techniques

PowerPoint Techniques

6th - 8th Grade

14 Qs

Intro to Python

Intro to Python

8th Grade

10 Qs

9.1 homework Count controlled loops

9.1 homework Count controlled loops

Assessment

Quiz

Computers

8th Grade

Medium

Created by

K Tilney

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?