Algorithms 2 Flashcards
what is a construct
A component from which something is built
what is a selection
A construct that allows a choice to be made between
different alternatives
what does iteration mean
A construct
what is an IF, THEN, ELSE statement
it allows a choice to be made on whether or not a condition is met
what is a relational operator
an operator that compares two values
what is a 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 this action
what is an indefinite iteration
this is used when the number of iterations is not known before the loop is started. is stooped when a specified condition is met
what is a definite iteration
this is used when the number of iterations or turns of the loop is known in advance
what is a logical operator
a Boolean operator using AND, OR and NOT
what is a random number
a number within a given range of numbers that is generated in such a way that each number in the range have equal chances of occurring
what is a nested loop
a loop that runs inside another loop
what is concatenation
the linking together of two or more items of information