COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Tell the computer to wait for a while before continuing with the program
|
|
Implement selection
|
|
Implement a loop
|
|
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: -The do/while loop is a variant of the while loop. This loop will execute the code block once, before checking if the condition is true, then it will repeat the loop as long as the condition is true.
Detailed explanation-3: -A “Do While” loop statement runs while a logical expression is true. This means that as long as your expression stays true, your program will keep on running. Once the expression is false, your program stops running. A “Do Until” loop statement runs until a logical statement is true.