3.2.2 The structure of procedural programs

?
Procedural Programming
A procedural programming language is one in which programs are organised into blocks of code called Procedures, Functions or Subroutines.
1 of 13
Statement
A Statement is an instruction to the computer telling it what to do.
2 of 13
Sequence
A Sequence is a set of Statements executed one after the other.
3 of 13
Selection
In "selection" one of a number of statements is executed depending on the state of the program.
4 of 13
Iteration (Repetition)
Iteration, Repetition, Loops. Iteration means repeating a Statement. Loops are used in programming as means of iteration.
5 of 13
Subroutine
A Subroutine is a named block of code that performs a specific task.
6 of 13
Procedure
A Procedure is a Subroutine that does not return a value back to the main program.
7 of 13
Function
A Function is a Subroutine that does return a value to the main block of code.
8 of 13
Parameter
A Parameter or Argument is a variable used in a subroutine to refer to one of the pieces of data provided as input.
9 of 13
Recursion
Recursion is simply where a subroutine calls itself. A large number of problems are most simply solved by using recursion.
10 of 13
Tracing
It just means that you need to follow it through, writing down any calculations, and the values of any variables as they change, as well as when the subroutine calls itself.
11 of 13
Nesting
Selection statements can be nested within iteration statements (and vice versa).
12 of 13
Loop
This is where code is executed multiple times. Unless loops have an exit criteria, the program could get stuck in an infinite loop.
13 of 13

Other cards in this set

Card 2

Front

A Statement is an instruction to the computer telling it what to do.

Back

Statement

Card 3

Front

A Sequence is a set of Statements executed one after the other.

Back

Preview of the back of card 3

Card 4

Front

In "selection" one of a number of statements is executed depending on the state of the program.

Back

Preview of the back of card 4

Card 5

Front

Iteration, Repetition, Loops. Iteration means repeating a Statement. Loops are used in programming as means of iteration.

Back

Preview of the back of card 5
View more cards

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming techniques and logical methods resources »