wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

YEAR 5-CA2-ALGORITHMS

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What is an algorithm?

a)

An unordered set of instructions

b)

A precise set of instructions to complete a task.

2.

IF you study hard, THEN you get good marks.

What is the condition?

a)

you study hard

b)

get good marks

3.

In the statement "IF you press the power button, THEN the computer turns on.", what is the action?

a)

IF

b)

you press the power button

c)

THEN

d)

the computer turns on

4.

An algorithm that requires less steps and less time to complete a task is considered as an ____________ algorithm

a)

longer

b)

efficient

c)

bad

5.

What is the primary purpose of identifying errors in an algorithm?

a)

To make it look more complex.

b)

To make sure it produces the correct results.

c)

To change the programming language.

d)

To make it run slower.

6.

The __________ statement is used when you want to perform an action only if a condition is true.

a)
IF-THEN
b)

IF-THEN-ELSE

7.

When a condition in an IF-THEN-ELSE statement is false, the (a)   part is executed.

a. IF

b. THEN

c. ELSE

8.

Two characters in an algorithm where one's action impacts the other are called:

a)


Independent objects

b)

Simple objects

c)


Interrelated objects

9.

for the desired output, identify the error in the algorithm below:

step 1: move 1 block forward

step 2: IF the block contains a flag, THEN fill in green colour.

ELSE blue colour

step 3: Repeat steps 1 and 2 five more times

a)

The algorithm should fill in red color for blocks with flags.

b)

The algorithm should fill in green color for blocks with flags.

10.

Which algorithm is efficient?

a) algorithm-1

b) algorithm-2

(a)