Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2.2.1 Programming Constructs

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Execution of statements or functions one after another.

a)

Sequence

b)

Iteration

c)

Selection

d)

Branching

2.

Used to repeat sections of code.

a)

Sequence

b)

Iteration

c)

Selection

d)

Branching

3.

Used when code is executed based on a condition.


Tick all that apply.

a)

Sequence

b)

Iteration

c)

Selection

d)

Branching

4.

Give an example of an instruction in LMC that implements selection.

(a)  

5.

Which type of iteration executes a fixed number of predetermined times.

(a)  

6.

Which type of iteration executes until something happens.

(a)  

7.

Which is the correct IF statement?

a)

if ( i == a )

b)

if ( i=0 )

c)

if (i=a )

d)

if ( ( i = a ) && ( i = 0 ) )

8.

Which of the following does NOT implement iteration?

a)

WHILE

b)

FOR

c)

REPEAT UNTIL

d)

IF

9.

What is the name of the table used to test the operation of an algorithm?

(a)  

10.

Which of the following does NOT implement selection?

a)

CASE

b)

IF

c)

ELSEIF

d)

WHILE