Python Loops

Python Loops

9th - 11th Grade

12 Qs

quiz-placeholder

Similar activities

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

for---Loop

for---Loop

3rd Grade - University

13 Qs

Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 Qs

WHILE Loops yr 9

WHILE Loops yr 9

9th - 12th Grade

13 Qs

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

Loops in Python !

Loops in Python !

11th Grade

15 Qs

9.1.5 - Starter Quiz

9.1.5 - Starter Quiz

7th - 11th Grade

14 Qs

Python Beginner

Python Beginner

9th - 10th Grade

16 Qs

Python Loops

Python Loops

Assessment

Quiz

Computers

9th - 11th Grade

Medium

Created by

Helen Dinsmore

Used 863+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the following code, what will it generate

1,2,3,4,5,6,7,8,9,10,11,12

0,1,2,3,4,5,6,7,8,9,10,11,12

1,2,3,4,5,6,7,8,9,10,11,12,13

0,1,2,3,4,5,6,7,8,9,10,11,12,13

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following program display?

1,2,3,4

1,2,3,4,5

counter,counter,counter,counter,counter

0,1,2,3,4,5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Media Image
Media Image
Media Image

1,2,3,4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When do you know when you come to the end of the loop?

Its states End loop

The command End is given

The indentation stops

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

if you wished a loop to repeat 3 types whwt should you use?

For counter in range(0,5):

For counter in range(1.3):

For counter in range(0.3):

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

what is the name of the variable used in the following code?

counter

print

for

#

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an acceptable variable name?

no-text

8text

no_text

no_text$

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?