CP M4 Repetition & Loops

CP M4 Repetition & Loops

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Quiz 4 Edhesive Review

Quiz 4 Edhesive Review

9th - 12th Grade

10 Qs

Python Week 6

Python Week 6

6th - 10th Grade

16 Qs

29W Quiz 1 - PLTW

29W Quiz 1 - PLTW

8th - 12th Grade

15 Qs

AP CSP Unit 6

AP CSP Unit 6

11th Grade

20 Qs

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

Unit 5 TEST

Unit 5 TEST

11th - 12th Grade

20 Qs

Looping Review

Looping Review

10th - 12th Grade

15 Qs

Python Unit 5 Looping

Python Unit 5 Looping

9th - 12th Grade

15 Qs

CP M4 Repetition & Loops

CP M4 Repetition & Loops

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Marcia Bernas

Used 12+ times

FREE Resource

15 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A __________________ is a collection of commands that are given a name.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False. Every WHILE loop can be replaced with FOR loop.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variable used to end the loop

Loop control variable

count variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While loops should always be:

output

indented

calculated

input

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a loop to stop, the loop control variable must ________________.

change

be input from the keyboard

be true

change inside the loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with:

x = 1

while (x < 20):

print (x)

There is no x = 0 before the loop

The loop will not stop since the condition is wrong

x should be c

The loop will not stop since x never changes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use loops?

Because computers can do calculations humans can't.

Because programming is an important skill

Because of efficiency.

Because programs need to make decisions.

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?