wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Algorithms & Pseudocode

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

The BEST description for an algorithm is...

a)

Code for a computer program

b)

A set of ordered steps to solve a problem

c)

A solution to a problem

d)

Something a computer runs

2.

Algorithms can be executed by a non-computing device.

a)

TRUE

b)

FALSE

3.

The THREE key features of an algorithm are...

a)

Unambiguous

b)

Ordered

c)

Finite

d)

Coded

4.

The THREE control structures used to create an algorithm are...

a)

Sequence

b)

Selection

c)

Iteration

d)

Variables

5.

When expressing an algorithm in pseudocode, which parts should be capitalised?

a)

Keywords

b)

All of it

c)

Output

d)

Input

6.

What type of font should be used to write pseudocode on a computer?

a)

Sans-serif

b)

Serif

c)

Monospace

d)

Any

7.

The pseudocode commands that can be used to create a variable where the initial value is not known.

a)

INITIALISE

b)

SET

c)

DECLARE

d)

VARIABLE

8.

The pseudocode command to create a variable with an initial value.

a)

SET

b)

INITIALISE

c)

DECLARE

d)

VARIABLE

9.

The use of the INPUT command in pseudocode is...

a)

To indicate that the user will be asked for input

b)

To indicate that the value for a variable will come from the user

c)

To indicate the value for a variable will come from a file

d)

To ask the user a question

10.

The ________ pseudocode command is used to provide a mathematical formula

a)

CALCULATE

b)

FORMULA

c)

WRITE

d)

INPUT

11.

Which of the following IS NOT a correct pseudocode syntax for selection?

a)

IF...THEN...ENDIF

b)

IF...ELSE...ENDIF

c)

IF...THEN...ELSE...ENDIF

d)

IF...THEN...ELIF...ENDIF

12.

What is the difference between a test-first and test-last loop structure? (Select TWO correct options)

a)

Test-first uses a FOR loop structure while a test-last uses REPEAT UNTIL

b)

The condition for a test-last loop is at the start

c)

The condition for a test-last loop is at the end of the loop

d)

The loop actions in a test-last loop must execute at least once

13.

Which iteration structure is known as a counted loop?

a)

FOR...NEXT

b)

WHILE...ENDWHILE

c)

REPEAT...UNTIL

d)

DO...WHILE

14.

Using a control structure inside another control structure is called...

a)

Nesting

b)

Cascading

c)

Concatenating

d)

Joining

15.

To signify the start and end of a pseudocode algorithm, we use...

a)

START...END

b)

BEGIN...END

c)

START...FINISH

d)

BEGIN...FINISH

16.

The control structures that use a condition are...

a)

SELECTION

b)

ITERATION

c)

SEQUENCE

d)

ARRAYS