PrepAway - Latest Free Exam Questions & Answers

which of the following conditions?

In the PHP while statement, the value of the expression is checked under which of the following
conditions?

PrepAway - Latest Free Exam Questions & Answers

A.
each time at the beginning of the loop

B.
each time at the end of the loop

C.
each time in the middle of the loop

D.
it does not evaluate anything itself

E.
None of the above.

Explanation:

The meaning of a while statement is simple. It tells PHP to execute the nested statement(s)
repeatedly, as long as the while expression evaluates to TRUE. The value of the expression is
checked each time at the beginning of the loop, so even if this value changes during the execution
of the nested statement(s), execution will not stop until the end of the iteration (each time PHP
runs the statements in the loop is one iteration). Sometimes, if the while expression evaluates to
FALSE from the very beginning, the nested statement(s) won’t even be run once.
______________________________________________________________________________
_______


Leave a Reply