Provide a code example of a pretest loop and an example of a posttest loop.

What will be an ideal response?


In a pretest loop, the control variable is evaluated at the top of the loop before the body is executed:for(x = 0; x < 100000; ++x){  ... code here...}?In a posttest loop, the loop control variable is tested after the loop body executes:do{
   total += numberValue;
}while(total < 200);

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ is a small extension on one or two sides of a graphic with a different, unobtrusive color, usually a shade of gray with no visible border.

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

Computer Science & Information Technology

Document properties include ____.

A. handouts B. subject matter C. author name D. Both B and C.

Computer Science & Information Technology

Describe the TLS/SSL handshake process as initiated by a web client accessing a secure website.

What will be an ideal response?

Computer Science & Information Technology

Describe the five activities associated with the software measurement process.

What will be an ideal response?

Computer Science & Information Technology