Algorithms Flashcards

1
Q

what does Unambiguous mean?

A

This means that the instructions cannot be misunderstood. Simply saying ‘turn’ would be ambiguous because you could turn left or right. All instructions given to a computer must 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

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
3
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
4
Q

What does High-level programming language mean?

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. Each step in the algorithm is represented by a symbol.Symbols are linked together wit 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

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. the data stored in a variable is referred to 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

what is an identifier?

A

a unique name given to a variable or a constant. Using descriptive names for variables makes codes much easier to read.

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

what is a 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 a construct?

A

a component from which something is built.letters and numbers are the constructs we use to build our language and convey meaning.

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

what is meant by selection?

A

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

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

what is iteration ?

A

a construct that means the repetition of a process.An action is repeated until 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

what is a IF……THEN….ELSE statement?

A

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

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

what is an Nested IF statement?

A

a nested IF statement consists of one or more IF statements placed inside each other.A nested IF is used where there are more than two possible courses of action.

17
Q

what is an indefinite iteration?

A

this statement is used when the numbers of iterations is not known before the loop is started. The iterations stop when a specified condition is met. This sort of loop is said to be a conditional loop.

18
Q

what is a definite iteration?

A

this is used when the number of iterations,or turns the loop, is known in advance.It can be set to as many turns as you want.this sort of loop is said to be count controlled

19
Q

what is a logical operator?

A

it is a boolean operator using AND,OR,NOT.

20
Q

what is a RANDOM NUMBER?

A

a number within a given range of numbers that is generated in such a way that each number in the range has an equal chance of occurring.

21
Q

what is a nested loop?

A

a loop that runs inside another loop. The inner one executes all of its instructions for each turn of the outer loop.

22
Q

what is concatenation?

A

it is the linking together of two or more items of information.