What is the difference between a while and a do…while loop?


a) The condition of a while is evaluated at the start of the loop; the condition of the do…while is evaluated at the end.
b) The body of a do…while loop is always executed once; the body of a while loop may never be executed.
c) Both a and b
d) There is no difference.


c) Both a and b

Computer Science & Information Technology

You might also like to view...

_______ is a free tool that can be used to recover Windows files

a. SearchIt b. Disk Digger c. FileRecover d. None of the above

Computer Science & Information Technology

All of the data in a relational database are contained in ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

____ are designed to withstand much more physical abuse than conventional devices.

A. Secured devices B. Ruggedized devices C. Malleable devices D. Flexible devices

Computer Science & Information Technology

A form that enables users to view but not change data is a(n) ________ form

Fill in the blank(s) with correct word

Computer Science & Information Technology