wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LOOP

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

It is a software program or script that repeats the same instructions or processes the same information over and over until receiving the order to stop.

a)

Loop

b)

Loop Structure

c)

For Loop

d)

While Loop

2.

What's the advantage of looping?

a)

Creativity

b)

Quality

c)

Efficiency

d)

Unity

3.

What is the control variable used in loops?

a)

Condition

b)

Elements

c)

While Loop

d)

Iteration

4.

What phrase is used to execute a block of code as long as a specific condition is true?

a)

For Loop

b)

While Loop

c)

Do-While Loop

d)

Looping

5.

Definite loops are type of loop where there is a predetermined number of repetitions of the sequence of items while the indefinite loop is a practice that refers to a loop within a loop.

a)

True

b)

False

6.

What is the practice of placing a loop inside another loop called?

a)

Nested Loop

b)

Internal Loop

c)

For Loop

d)

Inner Loop

7.

What's wrong with this code?

a)

Missing Exit Condition

b)

True

c)

Missing Initialization

d)

Nothing is wrong with the code

8.

What happens if you run this code?

a)

It will run indefinitely

b)

It won't run indefinitely

c)

The code will not run


d)

False

9.

Give 2 examples of common loop applications

a)

Iterating over Collections

b)

Nested Loop

c)

Definite Loop

d)

Performing calculations

10.

Can we use a for loop to perform calculations or operations on a set of data, For instance, finding the sum, average, or other statistics?

a)

No

b)

Yes

c)

I’m not sure

d)

Maybe