wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Algorithms - GSHS

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

What is an algorithm?

a)

A part of the computer CPU.

b)

A logical step by step process for solving a problem.

c)

A web coding language.

d)

A computer peripheral.

2.

Algorithms are normally written as ...

a)

Flowcharts

b)

Recipes

c)

Pseudocode

d)

Essays

3.

There are a number of basic things to know to really understand a problem such as...

a)

The inputs/outputs of a problem and the order in which to carry out instructions.

b)

The mathematical code behind the solution.

c)

The amount of time it will take to come up with a solution to the problem.

d)

Whether the problem is deterministic or non deterministic.

4.

Select the three basic building blocks when designing an algorithm

a)

Sequencing

b)

Selection

c)

Functions

d)

Iteration

5.

What is sequencing?

a)

When instructions are carried out one after another.

b)

The order in which a computer chooses to load programs.

c)

When data is sent to a web server and back again

d)

How a hard disk loads information into main memory.

6.

Selection is usually represented by the instructions IF, THEN , ELSE?

a)

True

b)

False

7.

The following is a simple algorithm using selection:

INPUT age

IF age > 18

OUTPUT adult

ELSE

OUTPUT child

What would the output be if age = 14?

a)

adult

b)

child

c)

none

d)

error

8.

When designing algorithms, there may be some steps that need (a)   . This is known as iteration.

9.

Iteration in programming means repeating steps, or instructions over and over again. This is often called a (a)   .

10.

Algorithms consists of instructions that are carried out one after another. Sometimes an algorithm needs to repeat certain steps until told to stop or until a _________ is met.

a)

total

b)

logic gate

c)

memory limit

d)

condition

11.

For which of the following problems would iteration be useful?

a)

Counting up by 1

b)

Selecting a colour from a list

c)

Outputting "Hello Mr Harrison"

d)

Asking multiple users the same question

12.

What is logical reasoning?

a)

The process of applying rules to problem solving.

b)

The process of creating a flowchart.

c)

The process of coding a solution to a problem.

d)

The process of breaking down a problem into simpler steps.

13.

Logical reasoning can be used to compare how effective and efficient different solutions are.

a)

True

b)

False

14.

Why do we need searching algorithms?

a)

To load an operating systems instruction set.

b)

To make a CPU run.

c)

To find a particular item among millions of pieces of data.

d)

To allow a computer to iterate through millions of instructions quickly.

15.

Why do we need sorting algorithms?

a)

To load the computers operating system.

b)

To put a list of data items in order, e.g. alphabetical/numerical.

c)

So the CPU can work with more than one instruction at a time.

d)

So a computer knows which order to carry out its tasks.