Iteration Key Terms
Terms in this set (17)
The repetition of a process or utterance.
Part of a program where the same activity is repeated over and over again for a fixed number of times or until a condition is met. Usually the condition is stated within the loop itself.
When a programmer or part of a program by the computer.
A grammatical mistake in the code. For example, it could be caused by a misspelling, e.g. 'prnit' instead of 'print' or by missing colons, semi-colons or brackets.
The program is run on paper and each stage is carefully analysed to see what values the various variables, inputs and outputs have. At this stage, a computer is not being used.
While the dry run is being worked through, a table is drawn up showing values of each variable, input and output, and how they change as the program is running. A trace table has columns for each of the variables and rows for each of the steps in the algorithm.
Efficiency can be assessed by:
How long it takes to generate a program.
How much code has been written to generate the result.
How much memory it uses.
The rules of spelling, punctuation, and grammar of a language so that the meaning of what is being communicated is clear (humans can make allowances if the rules are broken, but computers can't).
The number of iterations is not known before we start to execute the body of the loop, but depends on when a certain condition becomes true (and this depends on what happens in the body of the loop)
In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement.
In most computer programming languages, a do while loop is a control flow statement that executes a block of code at least once, and then repeatedly executes the block, or not, depending on a given Boolean condition at the end of the block. The do while construct consists of a process symbol and a condition.
A nested loop is a loop within a loop, an inner loop within the body of an outer one. How this works is that the first pass of the outer loop triggers the inner loop, which executes to completion. Then the second pass of the outer loop triggers the inner loop again. This repeats until the outer loop finishes.
An infinite loop (sometimes called an endless loop ) is a piece of coding that lacks a functional exit so that it repeats indefinitely. In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.
In computer programming, a logic error is a bug in a program that causes it to operate incorrectly, but not to terminate abnormally (or crash). A logic error produces unintended or undesired output or other behaviour, although it may not immediately be recognised as such.
In computer science, algorithmic efficiency is a property of an algorithm which relates to the number of computational resources used by the algorithm. An algorithm must be analysed to determine its resource usage.
YOU MIGHT ALSO LIKE...
Academic Word Lists - AWL Sublists
REVIEW Ch 1-5 Programming Logic & Design
OTHER SETS BY THIS CREATOR
Tests for Positive and Negative Ions and Gases
Computer Science Ch15 Key Words Definitions
Algorithm Key Vocabulary