Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Constructs - Bitesize

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What are the three basic programming constructs?

a)

Sequence, selection and iteration

b)

Sequence, selection and looping

c)

Sequence, iteration and looping

2.

Which of the following statements implement a count-controlled iteration?

a)

for next

b)

repeat until

c)

while endwhile

3.

What is a sequence?

a)

A programming construct that determines the order in which data is stored

b)

A programming construct that determines the order in which instructions are carried out

c)

A programming construct that determines the order in which files are accessed

4.

Which form of condition-controlled iteration tests the condition at the end of the loop?

a)

repeat until

b)

for next

c)

while endwhile

5.

Which form of condition-controlled iteration tests the condition at the start of the loop?

a)

repeat until

b)

while endwhile

c)

for next

6.

Which of the following is another name for iteration?

a)

Selecting

b)

Repeating

c)

Looping

7.

Which of the following allows a programmer to implement selection?

a)

for next

b)

if then else

c)

if while else

8.

What is the term given to the process of including one programming construct within another?

a)

Iteration

b)

Looping

c)

Nesting

9.

What is an infinite loop?

a)

A condition-controlled iteration that loops forever

b)

A count-controlled iteration that loops forever

c)

Iteration where the code is never executed

10.

What are the two possible results of testing a condition?

a)

YES and NO

b)

TRUE and FALSE

c)

POSITIVE and NEGATIVE