Algorithms Flashcards
what does Unambiguous mean?
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.
What is a sequence?
An ordered set of instructions.
what is an Algorithm?
A precise method for solving a problem.
What does High-level programming language mean?
A programming language that resembles natural human language.
What is a flowchart?
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.
what is a 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. 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.
what is an identifier?
a unique name given to a variable or a constant. Using descriptive names for variables makes codes much easier to read.
what is a Arithmetic operator ?
an operator that performs a calculation on two numbers.
What is a constant ?
a ‘container’ that holds a value that never changes. Like variables, constants have unique identifiers.
what is a construct?
a component from which something is built.letters and numbers are the constructs we use to build our language and convey meaning.
what is meant by selection?
a construct that allows a choice to be made between alternatives.
what is iteration ?
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.
what is a IF……THEN….ELSE statement?
the IF….THEN….ELSE statement allows a choice to be made between two alternatives based on whether or not a condition is met.
What is a relational operator?
an operator that compares two values.