Algorithms Flashcards

1
Q

What does Unambiguous mean?

A

This means that the instructions cannot be misunderstood.

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

What does sequence mean?

A

An ordered set of instructions.

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

What does Algorithm mean?

A

A precise method for solving a problem.

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

What is High-level programming language?

A

A programming language that resembles natural human language.

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

What is a Flowchart?

A

A graphical representation of an algorithm.

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

What is a 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
7
Q

What is a variable?

A

A ‘container’ used to store data.

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

What is an Identifier?

A

A unique name given to a variable or a constant. Making code much easier to read.

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

What is an Arithmetic operator?

A

An operator that performs a calculation on two numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
Q

What is 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
12
Q

What is iteration?

A

A construct that means the repetition of a process.

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

What is a IF…THEN…ELSE statement?

A

The IF…THEN…ELSE statement allows a choice to be made between two alternatives whether or not a condition is met.

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

What is Relational operator?

A

An operator that compares two values.

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

What is a Nested IF statement?

A

A nested IF statement consists of one or more IF statements placed inside each other.

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

What is a Indefinite iteration?

A

This is used when the number of iterations is not known before the loop is started.

17
Q

What is a Define iteration?

A

This is used when the number of iterations, or turns of the loop, is known in advance.