Algorithms Flashcards

1
Q

What is unambiguous ?

A

Unambiguous means that the instructions cannot be misunderstood.Simply saying “turn” would be ambiguous because you could turn left or right.

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

What is Sequence ?

A

Sequence is an ordered set of instructions.

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

What is Algorithm?

A

Algorithm is a precise method to solve problem.

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

Define 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 flowchart ?

A

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

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

What is a variable?

A

a container used to store data. he data stored in variable is referred to as value.

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

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

A

a component from which something is built(i.e. a to z and 0 to 9) 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 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
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.

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

What is 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.

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

What is indefinite iteration?

A

this used when the number 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 condition controlled.

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

What is definite iteration?

A

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

17
Q

What is a constant?

A

a “container” that holds a value that never changes.

18
Q

What is a construct?

A

a component from which something is built.like bricks a construct for building.

19
Q

what is selection?

A

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

20
Q

what is iteration

A

a construct that means the repetition of a process.

21
Q

define if..Then…Else statement

A

these statements allows a choice to be made between different alternatives based on weather or not a condition is met

22
Q

define a relational operator

A

an operator that compares two values.

23
Q

define logical operator

A

a Boolean operator using And,OR and NOT.

24
Q

what is Concatenation

A

the linking together of two or more items of information.