COMPUTER SOFTWARE
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
a control flow statement that allows code to be executed repeatedly.
|
|
occurs when the programmer does not follow the rules of the language.
|
|
functioning improperly or badly.
|
|
None of the above
|
Detailed explanation-1: -In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement.
Detailed explanation-2: -Iterative statements are also known as repetitive statements or looping statements. A looping statement is used when the program requires a statement’s execution (or the repeated execution of a set of statements) until some condition for loop termination is satisfied. There are two types of loops: For loop.
Detailed explanation-3: -The while Loop The purpose of a while loop is to execute a statement or code block repeatedly as long as an expression is true. Once the expression becomes false, the loop terminates.