Challenger App

No.1 PSC Learning App

★
★
★
★
★
1M+ Downloads
In programming, what is the purpose of a loop?

ATo execute a block of code multiple times

BTo terminate the program

CTo define a function or sub program

DTo handle exceptions

Answer:

A. To execute a block of code multiple times

Read Explanation:

loop in programming is a fundamental control structure that repeats a block of code until a specific condition is met. Loops are essential for saving time, reducing errors, and organizing code.


Related Questions:

The assembly language uses symbols instead of numbers known as:
Which of the following system software translate and execute high level language source code, statement by statement ?
ഫ്ലോ ചാർട്ട് ഒരു തരം _____ ആണ്.
To update a web without reloading the whole page can be done with :

What is the value of sum after the execution of the following code?

int sum = 0;

for (int i = -5; i<=;i++)

{

         if (!i) break;

         sum += i;

}