Which of the following is not a programming control structure? A. Repetition B. Selection C. Sequence D. Sorting E. None of the above

[amp_mcq option1=”Repetition” option2=”Selection” option3=”Sequence” option4=”Sorting E. None of the above” correct=”option4″]

The correct answer is D. Sorting.

A programming control structure is a way to control the flow of execution of a computer program. The three basic control structures are sequence, selection, and repetition.

  • Sequence is the simplest control structure. It simply executes statements one after the other.
  • Selection is used to choose between two or more possible paths of execution.
  • Repetition is used to execute a block of statements multiple times.

Sorting is not a programming control structure. It is an algorithm that is used to rearrange data in a specific order.