Topic 1 - Problem Solving Flashcards

1
Q

What is an algorithm?

A

A precise method for solving a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are algorithms used for?

A

Calculations, data processing and automated reasoning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four ways of representing an algorithms?

A

Written description, flowcharts, pseudo-code and program code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a flowchart?

A

A graphical representation of an algorithm, using predefined symbols to visualise a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is pseudo-code?

A

A structured, code-like language that can be used to describe an algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a variable?

A

A container used to store data.

The data stored in the variable is referred to as a value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

With reference to variables, what is an identifier?

A

A unique name given to a variable or constant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a constant?

A

A ‘container’ that holds a value that never changes.

Like variables, constants have unique identifiers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a ‘sequence’?

A

An ordered set of instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a selection?

A

A construct that allows a choice to be made between different alternatives.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an iteration?

A

A construct that means the repetition of a process.

An action is repeated until there is a desired outcome or condition is met.

It is often referred to as a loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a relational operator?

A

An operator that compares two values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly