Algorithms Flashcards
What is unambiguous ?
Unambiguous means that the instructions cannot be misunderstood.Simply saying “turn” would be ambiguous because you could turn left or right.
What is Sequence ?
Sequence is an ordered set of instructions.
What is Algorithm?
Algorithm is a precise method to solve problem.
Define High-level programming language.
A programming language that resembles natural human language.
What is flowchart ?
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.
What is pseudo-code?
a structured code like language that can be used to describe an algorithm.
What is a variable?
a container used to store data. he data stored in variable is referred to as value.
What is a identifier?
a unique name given to a variable or constant.
What is an Arithmetic operator?
An operator that performs a calculation on two numbers.
What is Constant?
A container that holds a value that never changes.Like variables constants have unique identifiers.
What is construct?
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.
What is Selection?
a construct that allows a choice to be made between different alternatives.
What is Iteration?
a construct that means the repetition of a process. An action is repeated until there is a desired outcome.
What is Nested IF Statement?
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.
What is indefinite iteration?
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.