大象传媒

Programming constructs - EduqasThe three basic programming constructs

Programs are created using common building blocks, known as programming constructs. These programming constructs form the basis for all programs and are also used in algorithms.

Part of Computer ScienceSystems analysis

The three basic programming constructs

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

There are three basic constructs to consider:

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

There are two types of iteration:

  • - repeatedly executes a section of code a fixed number of predetermined times
  • - repeatedly executes a section of code until a is met or no longer met

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