SSC
COMPUTER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of these is the definition of a while loop?
|
Repeats a process a fixed number of times
|
|
Repeats the process until a criteria is met
|
|
Repeats the process until a criteria is met, checking first
|
|
Repeats the process until a criteria is met, checking last
|
Explanation:
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: -The repeat / until loop is a loop that executes a block of statements repeatedly, until a given condition evaluates to true . The condition will be re-evaluated at the end of each iteration of the loop, allowing code inside the loop to affect the condition in order to terminate it.
There is 1 question to complete.