Programming concepts - AQAThe three basic programming concepts

Programs are designed using common building blocks, known as programming constructs. These programming constructs form the basis for all programs.

Part ofComputer ScienceComputational thinking and problem solving

The three basic programming concepts

are designed using common building blocks. These building blocks, known as programming concepts (or programming constructs), form the basis for all programs.

There are three basic building blocks to consider:

  • is the order in which occur and are processed
  • determines which path a program takes when it is running
  • is the repeated of a section of code when a program is running

There are two types of iteration:

  • (also known as count-controlled iteration)
  • (also known as condition-controlled iteration)

All programs use one or more of these constructs. The longer and more complex the program, the more these constructs will be used repeatedly.