Single Choice Easy

QWhat is the purpose of a loop in programming?

ID: #18311 Introduction to Programming Fundamentals 101 views
Question Info
#18311Q ID
EasyDifficulty
Introduction to Programming FundamentalsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A No purpose of a loop in programming
  • B To declare variables
  • C To execute code conditionally
  • D To perform repetitive tasks
Correct Answer

Explanation

Loops in programming are used to repeatedly execute a block of code. They allow developers to automate repetitive tasks and iterate over data structures or sequences.

Share This Question

Challenge a friend or share with your study group.