wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Writing Algorithms

Total questions: 22

Worksheet time: 7mins

Name
Class
Date
1.

What should be considered when designing an algorithm?

a)

If there is more than one way of solving the problem

b)

If the correct hardware is being used

c)

If the correct software is being used

2.

What are the two main ways that algorithms can be designed?

a)

Charts and Text

b)

In pseudocode or as a flowchart

c)

Algorithms and Programs

3.

What is pseudocode?

a)

A way of describing a set of instructions in text form

b)

A specific programming language that all computers use

c)

A diagrammatic representation of a set of instructions

4.

What is a flowchart?

a)

A flowchart is a text-based way of designing an algorithm

b)

A flowchart is a specific programming language

c)

A flowchart is a diagram that represents a set of instructions

5.

What is the symbol for a decision in a flowchart?

a)

A parallelogram

b)

A diamond

c)

A circle

6.

Which of these is the correct symbol for a process in a flowchart?

a)

A diamond

b)

A rectangle

c)

A parallelogram

7.

How are symbols connected together in a flowchart?

a)

Symbols do not get connected together in a flowchart

b)

With lines and an arrow to show the direction of flow

c)

By numbers

8.

An integer is...

a)

A whole number

b)

A number with a decimal part

c)

Letters, numbers or punctuation

d)

True or False

9.

A boolean is...

a)

A whole number

b)

A number with a decimal part

c)

Letters, numbers or punctuation

d)

True or False

10.

A real is...

a)

A whole number

b)

A number with a decimal part

c)

Letters, numbers or punctuation

d)

True or False

11.

A string is...

a)

A whole number

b)

A number with a decimal part

c)

Letters, numbers or punctuation

d)

True or False

12.
What is meant by pseudocode?
a)
simplified programming code that is not language specific, used to design algorithms.
b)
it's a type of programming language
c)
code that can be used on any type of computer
d)
a debugging tool to improve programming code
13.
What is decomposition?
a)
Breaking down of soil
b)
Breaking down of a problem into smaller chunks
c)
Making a problem a bigger deal 
d)
Breaking smaller chunks of problems into one large problem
14.

Which type of iteration should you use if you don't know how many times you need to loop?

a)

Condition Controlled

b)

Count Controlled

15.

Which type of iteration should be used when you know how many times you want to loop?

a)

Count Controlled

b)

Condition Controlled

16.

What is missing?


____ i = 1 To 10

OUTPUT: "String"

ENDFOR

a)

FOR

b)

FOUR

c)

WHILE

17.

Fill in the missing blank:


_______ variable <> "Hi"

OUTPUT: "Hi to you!"

ENDWHILE

a)

WHILST

b)

WHILE

c)

FOR

d)

IF

18.

Pick the correct answer to match the following:


A loop that will check the condition before the code inside is executed.

a)

FOR

b)

WHILE

c)

REPEAT...UNTIL

19.

Pick the correct answer to match the following:


A loop that will check the condition after the code inside is executed.

a)

WHILE

b)

REPEAT...UNTIL

c)

FOR

20.
What is the purpose of a flowchart?
a)
To plan the program before it is made
b)
Because it is easier
21.

How many arrows come out of the end symbol in the flowchart?

a)

0

b)

1

c)

2

d)

3

22.

How many arrows come out of the decisionsymbol in the flowchart?

a)

0

b)

1

c)

2

d)

3