Python Loops

Python Loops

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

For Loop Method

For Loop Method

9th Grade

22 Qs

pra PSPM SC025 (F02 KML)

pra PSPM SC025 (F02 KML)

6th Grade - University

24 Qs

Tin 11 - Lặp Python

Tin 11 - Lặp Python

12th Grade

23 Qs

Program Development - Python: Lists

Program Development - Python: Lists

8th - 10th Grade

22 Qs

JavaScript 3.1

JavaScript 3.1

10th Grade

25 Qs

Pra-PSPM SC025(F04)

Pra-PSPM SC025(F04)

12th Grade

24 Qs

Year 6 Computing Summer End-Term Assessment

Year 6 Computing Summer End-Term Assessment

6th Grade - University

24 Qs

December 12 classwork CS

December 12 classwork CS

11th Grade

30 Qs

Python Loops

Python Loops

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Tina Fountain

Used 85+ times

FREE Resource

27 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

30 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

What button do you press to compile (run) your program so that it runs in the shell?
F3
F5
F7
F9

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?