SSC MTS EXAM

SSC

COMPUTER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these is the definition of a while loop?
A
Repeats a process a fixed number of times
B
Repeats the process until a criteria is met
C
Repeats the process until a criteria is met, checking first
D
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.