Python Loops

Python Loops

9th - 11th Grade

12 Qs

quiz-placeholder

Similar activities

Quiz 2 in programming

Quiz 2 in programming

10th Grade

10 Qs

KS3 Computing -- Iteration: FOR or WHILE?

KS3 Computing -- Iteration: FOR or WHILE?

7th - 9th Grade

10 Qs

Edhesive Python Unit 4: Test Review

Edhesive Python Unit 4: Test Review

10th - 11th Grade

10 Qs

Code.org Unit 5 - Loops

Code.org Unit 5 - Loops

9th - 12th Grade

10 Qs

Python_Loop(for) _high level

Python_Loop(for) _high level

9th Grade

15 Qs

PR 4 - Loops

PR 4 - Loops

KG - University

8 Qs

Pseudocode with Slides

Pseudocode with Slides

8th - 9th Grade

9 Qs

GCSE Unit 2 Prep - pseudocode

GCSE Unit 2 Prep - pseudocode

10th Grade

10 Qs

Python Loops

Python Loops

Assessment

Quiz

Computers

9th - 11th Grade

Medium

Created by

Helen Dinsmore

Used 865+ 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?