Answer:
The correct answer for the given question is option(A) i,e a statement or block that is repeated as long as the expression is true.
Explanation:
While loop is an entry control loop it means if the condition in while loop is true then the statement inside the while loop is executed untill condition of while loop is false .
Following are the syntax of while loop
while(condition checking)
{
// statement
// increment or dec variable;
}
Let us consider an example of while loop
Following are the program in c++
#include<iostream> // header file
using namespace std; //namespace
void main() // main method
{
int k=1; // variable declarartion
while(k<5) // iterating over loop
{
cout<<"hello brainly:";
k++; // increment of k by 1
}
}
In the following code the variable k is initialized by 1 so 1<5 condition is "true" it executed the statement inside the loop that menas when k=1 it print hello brainly: after printed the message hello brainly: it increment the value of k by 1, Now k becomes "2" again 2<5 condition is "true "it executed the statement again .This process will continue untill k=5 when k=5 the condition is "false" it terminate the while loop.
Output
hello brainly:hello brainly:hello brainly:hello brainly:hello brainly: