wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

L.7.LOOPING STRUCTURE

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

1. The structure that allows you to write one set of instructions that operates on multiple, separate sets of data is the _______________.

a)

sequence

b)

loop

c)

selection

d)

case

2.

2. The statements executed within a loop are known collectively as the _______________.

a)

loop body

b)

loop controls

c)

sequences

d)

sentinels

3.

3. Adding 1 to a variable is also called _______________ it.

a)

digesting

b)

resetting

c)

decrementing

d)

incrementing

4.

4. most programmers use a FOR loop ______________.

a)

for every loop they write

b)

when they know the exact number of times the loop will repeat

c)

when a loop must repeat many times

d)

when a loop will not repeat

5.

5. _______________ loop is exclusively available in PHP .

a)

switch

b)

for

c)

foreach

d)

none of these

6.

6. ____________ loop executes the block of code at least once before evaluating the condition.

a)

for

b)

while

c)

do..while

d)

switch

7.

7. Which type of loop iterates until condition become False?

a)

switch

b)

A count-controlled loop

c)

Repeat-once loop

d)

WHILE loop

8.

8. WHILE loops are ________________

a)

loops which run an unknown number of times

b)

loops which run for a specific number of times

c)

the same as if statements

d)

not part of programming

9.

9. The ______________ loop works only on arrays.

a)

while

b)

do..while

c)

for

d)

foreach

10.

10. In programming, what is iteration?

a)

The repetition of steps within a program

b)

The order in which instructions are carried out

c)

A decision point in a program

d)

Testing a program to make sure it works