Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Easy NTS Uploaded: 09 Aug 2026

What is the purpose of a 'loop' in programming?

  • A Design interfaces
  • B Connect to internet
  • C Store data
  • D Repeat a block of code multiple times
Correct Answer: Option D — Repeat a block of code multiple times
Explanation:
A loop in programming is a control structure used to repeat a block of code multiple times, based on a specified condition, until the condition is no longer met.
Submitted by: PaperMCQs
Related MCQs