NEW
Font size
WorksheetsL.7.LOOPING STRUCTURE
Total questions: 10
Worksheet time: 5mins
1. The structure that allows you to write one set of instructions that operates on multiple, separate sets of data is the _______________.
sequence
loop
selection
case
2. The statements executed within a loop are known collectively as the _______________.
loop body
loop controls
sequences
sentinels
3. Adding 1 to a variable is also called _______________ it.
digesting
resetting
decrementing
incrementing
4. most programmers use a FOR loop ______________.
for every loop they write
when they know the exact number of times the loop will repeat
when a loop must repeat many times
when a loop will not repeat
5. _______________ loop is exclusively available in PHP .
switch
for
foreach
none of these
6. ____________ loop executes the block of code at least once before evaluating the condition.
for
while
do..while
switch
7. Which type of loop iterates until condition become False?
switch
A count-controlled loop
Repeat-once loop
WHILE loop
8. WHILE loops are ________________
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
9. The ______________ loop works only on arrays.
while
do..while
for
foreach
10. In programming, what is iteration?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works
