1.1 Algorithms Flashcards

1
Q

Unambiguous.

A

tis means that the instructions cannot be misunderstood. simply saying ‘turn’ would be ambiguous because you could turn left or right.

All instructions given to the computer should be unambiguous or it wont know what to do.

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

Sequence.

A

An ordered set of instructions.

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

Algorithms.

A

A precise method of problem solving .

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

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

Flowchart

A

A graphical representation of an algorithm. Each step in the algorithm is represented by a symbol. Symbols are linked together with arrows showing the order in which steps are executed.

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

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

Variable.

A

A ‘container’ used to store data. The data stored in a variable is referred ta as a value. the value stored in a variable is not fixed. the same variable can store different values during the course of a program and each time a program is run

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

Identifier.

A

A unique name given to a variable or a constant. using descriptive names for variables makes code much easier to read.

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

Arithmetic operator.

A

A 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

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

construct

A

a component from which something is built. letters and numbers (i.e. a to z and zero to nine) are the constructs we use to build our language and convey meaning. bricks and cement are the basic constructs of a building.

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

Selection

A

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

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

iteration

A

a construct that means the repetition of a process. An action is repeated there is a desired outcome or a 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
14
Q

IF…THEN…ELSE statement.

A

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

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

Relational operator

A

An operator that conducts two main values

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

Nested IF statement

A

a nested if statement contains of one or more if statements placed inside each other. A nested if is used were there are two or more possible courses of action

17
Q

indefinite iteration

A

this is known when the number of iteration is not known before the loop is started. the iteration stop when a specified condition is met. this set of loop set to be called a condition of a lot if loops.

18
Q

Definite iteration

A

this is used when the number of iterations or turns of the loop. is started.