What is the purpose of a loop in programming?

  • ATo store data
  • BTo design the program
  • CTo repeat a set of instructions
  • DNone of these
Show answerHide answer

Correct answer C

A loop in programming allows a set of instructions to be executed repeatedly until a condition is met. It helps reduce code repetition and makes programs more efficient.