Question: What is the main difference between a while and a do...while statement?
Instructor answer: The block inside a do...while statement will execute at least once.

Student answer: "The “do” statement first evaluates the condition and then executes the lines of code in the statement 0 or more times.<br>	The “do while” statement executes the lines of code and then it evaluates the condition.<br>"
Score (0-5): 4.5

Student answer: do...while statements evaluate whether or not to loop after running the block contained within it at least once. So the main differance is that while statements have a possibility of never being used. Do ... while statements on the other hand are always run at least once before evaluating whether to run again.
Score (0-5): 5

Student answer: The main difference between a while and a do...while loop is that the do...while loop always cycles through the loop at least once, but the while loop does not always do so.
Score (0-5): 5

Student answer: While loop used to execute a block of code as long as some condition is true.  A do...while loop used to execute a block of code as long as some condition is satisfied.  The difference between while and do...while is while loop tests its condition before the execution of its contents and the do...while loop tests its condition after the execution of its contents at least once.
Score (0-5): 5

Student answer: The termination condition of a do...while statement is usually at the end of the loop so it will run at least once. As for the while statement, if the condition is false to begin with, then the loop will never run.
Score (0-5): 5

Student answer: A while loop will check the statement to make sure it is true before executing. A do while loop will execute before checking the statement to see if it should run again.
Score (0-5): 5

Student answer: A while statement will test the condition of the while loop FIRST - there is a chance the loop will never run. A do...while loop will ALWAYS run once, and then the while test will determine if it will run again.
Score (0-5): 5

Student answer: a do while loop always executes once. A while loop's conditional statement has to be true for it to run.
Score (0-5): 5

Student answer: -WHILE statement --The condition is checked for validity, then is repeated until the conditon is false.<br><br>  -Do...WHILE statement--The code is performed at least once then checked for valid condition.  Will continue to <br>
Score (0-5): 5

Student answer: while statements will evaluate the statement BEFORE executing a cycle of the loop, including the first cycle, meaning that a while loop will not always execute. A do...while will run evaluate the statement AFTER running through a cycle of the loop, ensuring that the loop always executes at least one time.
Score (0-5): 5

Student answer: The main difference between a do and a do...while statement is in a do...while statement is the statements in a do block are always executed atleast once.<br>  The while statement will only execute if its condition is true.
Score (0-5): 5

Student answer: The loop of a do...while statement always executes once.
Score (0-5): 4.5

Student answer: a while statement will only process if the statement is met, while a do...while will always process once, then only continue if the statement is met.
Score (0-5): 5

Student answer: Do ...while runs the embedded code at least once, the do command does not necessarily
Score (0-5): 4

Student answer: While tests for true first before running, do...while runs once first before checking.
Score (0-5): 5

Student answer: A do...while statement's body always executes at least once.  Where as a while statement will not execute at all unless the condition for the while is true.
Score (0-5): 5

Student answer: The statements within the block of the do while loop will always be executed at least once regardless of the conditions. Whereas the while loops may never be executed if the conditions are not met.
Score (0-5): 5

Student answer: a do... while loop will always run through once, while an while loop<br>performs a test before running through the loop.
Score (0-5): 5

Student answer: A while statement tests the condition before it can start.<br>A do...while statement loops through once before the condition is tested.
Score (0-5): 5

Student answer: A while loop terminates at the beginning of the loop, a do/while terminates at the end of the loop.
Score (0-5): 3.5

Student answer: the loop body always executes at least once<br>
Score (0-5): 3.5

Student answer: While loop evaluates its expression at the top of its loop and decides if it needs to execute, and the do-while always executes at least once and then evaluates its expression at the bottom of its loop.
Score (0-5): 5

Student answer: A do...while statement will always execute the "do" piece of code at least once before checking the condition. A while statement will always check the condition first.
Score (0-5): 5

Student answer: A do-while passes atleast 1 time before checking the condition, however, a while would fail to enter the loop if the condition fails in its first place.
Score (0-5): 5

Student answer: a while loop checks if the condition is true or not first, if it was true, it excutes the statement.<br>a do.. while loop executes the statement before it checks the condition. if the condition was true it would excute the statement again. so a do...while loop would excute the statement atleast once.
Score (0-5): 5

Student answer: NO ANSWER
Score (0-5): 0

Student answer: A do...while loop will always execute atleast once, a while loop may never <br><br>execute depending on teh conditions.
Score (0-5): 5

Student answer: a while loop is pre-check (it checks the condition statement before it executes the code within the while block)<br><br>a do while loop is post-check (it checks the condition AFTER the block executes, it runs at least once no matter what the condition statement is)
Score (0-5): 5

Student answer: ))     What is the main difference between a while and a do...while statement?<br>The do while construct consists of a block of code and a condition. First, the code within the block is executed, and then the condition is evaluated, this is done until it is proven false. The difference between the While loop is it tests the condition before the code within the block is executed.<br>
Score (0-5): 5