Describe how a loop is controlled by a Boolean expression.
What will be an ideal response?
Within a looping structure, a Boolean expression is evaluated. If it is true, a block of statements called the loop body executes and the Boolean expression is evaluated again. As long as the expression is true, the statements in the loop body continue to execute. When the Boolean evaluation is false, the loop ends.
You might also like to view...
Indicate the correct order of precedence from highest to lowest priority: (ignore the commas)
A. ( ), *, = B. =, *, + C. +, *, = D. ( ), -, /
The box model supports a separate property for each side for ____, such aspadding-topormargin-left.
A. padding B. margin C. Both A and B. D. Neither A nor B.
Right-clicking a column heading, then selecting Insert, will add a new column to the left of the current column.
Answer the following statement true (T) or false (F)
Each ____ of a hard disk is a fixed size and can hold a certain amount of data.
A. track B. sector C. plate D. disk