CP M4 Repetition & Loops

CP M4 Repetition & Loops

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Functions

Python Functions

12th Grade

15 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Python while loops

Python while loops

12th Grade

20 Qs

Visual Basic Ch.5 Loops

Visual Basic Ch.5 Loops

9th - 12th Grade

20 Qs

Test 4 Edhesive Review

Test 4 Edhesive Review

9th - 12th Grade

18 Qs

CodeHS JavaScript Control Functions

CodeHS JavaScript Control Functions

9th - 12th Grade

20 Qs

JavaScript Control Structures

JavaScript Control Structures

9th - 12th Grade

20 Qs

Python Lists

Python Lists

10th Grade

14 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?