wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y8 Algorithm Design

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

Which method for representing an algorithm is the most visual?

a)

Pseudocode

b)

Flow Chart

c)

Sentences

2.

What is an algorithm?

a)

A type of computer code

b)

A set of computer instructions

c)

A set of instructions to solve a problem

d)

A list of tasks

3.

In flow charts, which shape is used to represent an INPUT/OUTPUT?

a)

Rectangle

b)

Diamond

c)

Rounded Rectangle

d)

Parallelogram

4.

What data type is the following an example of?

"Hello Year 9 students"

a)

Integer

b)

String

c)

Real

d)

Boolean

5.

The char data type stores...

a)

a single number

b)

a single letter

c)

a single special character

d)

any single character

6.

Boolean data type is used to store a true or false value only.

a)

True

b)

False

7.

What are loops used for?

a)

To prevent lines of code being repeated

b)

To repeat a sequence of code as many times as the user wishes

c)

To repeat a sequence of code for a certain number of times

d)

To provide a sub routine within a program

8.

A WHILE loop...

a)

repeats a sequence of code while a condition is false

b)

repeats a sequence of code while a condition is true

c)

repeats a sequence of code if a condition is true

d)

repeats a sequence of code if a condition is false

9.

What does the following algorithm do?

START

count <- 0

Repeat

OUTPUT count

count <- count +1

Unit count = 10

END

a)

Counts down from 10 to 0

b)

Counts up from 0 to 10

c)

Counts from 0 to 10 in twos

d)

Counts up from 0 to 10 with 1 second between each output

10.

What does this flow chart do?

a)

Adds a life when the player touches the ground

b)

Removes a life when the player touches an enemy

c)

Removes 2 lives when the player touches the ground

d)

Removes a life when the player touches the ground

11.

Misspelling a variable name is an example of what type of error?

a)

Syntax Error

b)

Logic Error

c)

Runtime Error

d)

No Error

12.

When an algorithm works but produces different results from what you designed or expected, which type of error is this?

a)

Syntax Error

b)

Logic Error

c)

Runtime Error

d)

No Error

13.

When a program is asked to do something that it cannot, the program may ‘crash’. ​Which type of error is this?

a)

Syntax Error

b)

Logic Error

c)

Runtime Error

d)

No Error

14.

What do we call a program within a program that can be called multiple times?

a)

A mini program

b)

A loop

c)

A subroutine

d)

A call program

15.

Which of the following statements are true for a decision component of an algorithm?

a)

Uses a rectangle shape in a flow chart

b)

Gives 3 possible outputs

c)

Is only used in flow charts

d)

None of these

16.

A selection requires a Boolean decision, which of the following outputs would be given for this expression: 10 * 2 > 20

a)

True

b)

Error

c)

Equals

d)

False

17.

A sequence is...

a)

a set of decisions made one at a time

b)

a set of tasks executed one at a time

c)

a set of tasks executed at the same time

d)

a set of instructions to perform a specific task

18.

In a flow chart, a task/process is represented using which shape?

a)

Rectangle

b)

Rounded rectangle

c)

Diamond

d)

Arrow

19.

Which of the following Boolean operators represents less than or equals to?

a)

>=

b)

=>

c)

<=

d)

=<

20.

Which of the following is also referred to as the counting loop?

a)

WHILE

b)

REPEAT UNTIL

c)

IF THEN ELSE