wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming - Iteration, Basic Programming Constructs & Loop

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.
Loops are used to repeat parts of a program
a)
True
b)
False
2.
Which of the following is not a type of loop?
a)
IF
b)
Input
c)
Str
d)
Else
3.
Iteration is an alternative term for loop.
a)
True
b)
False
4.
A WHILE loop is an example of a count-controlled loop.
a)
False
b)
True
5.
Which of the following is a count-controlled loop?
a)
FOR
b)
Else
c)
If
d)
Int
6.
A REPEAT loop will always execute at least once.
a)
True
b)
False
7.
A WHILE loop will always execute at least once.
a)
False
b)
True
8.
What is used to control if a loop should run or not?
a)
Condition
b)
If
c)
Else
d)
Fitness
9.
Which is the correct form of a FOR loop in pseudocode?
a)
FOR i=0 TO 10
b)
If i=0 To 10
c)
Else i=0 To 10
10.
Which of the following loops will stop when x reaches 10?
a)
WHILE x < 10
b)
WHILE x < 9
c)
WHILE x < 1
d)
WHILE x < 4