Machine-translated by Google. Questions are authored in English.
Top

Discussion

Loop which does not executed at all if it is tested at beginning is classified as

  • A.DO loop
  • B.WHILE loop
  • C.REPEAT loop
  • D.GO REPEAT loop

Answer: B

Correct answer: WHILE loop

A WHILE loop tests its condition before entering the body, so if the condition is false at the outset the body never runs at all. A REPEAT loop tests at the end and therefore always runs at least once.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.