QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 99

Which statements about a do...while loop are true? Select all that apply.

  1. Its body runs at least onceՃիշտ պատասխան
  2. It tests its condition before the initial body execution
  3. Its condition controls whether another iteration beginsՃիշտ պատասխան
  4. Its condition is ignored after the body runs

Բացատրություն

The body comes before the condition check, so even an initially false condition allows one execution. The later test decides whether another iteration starts; it is not skipped permanently, and the loop is therefore not equivalent to while in the zero-run case.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 99: Which statements about a do...while loop are true? Select… · JavaScript Fundamentals · Questena