Which looping structure should you use?

You are creating a routine that will perform calculations by using a repetition structure. You
need to ensure that the entire loop executes at least once.
Which looping structure should you use?

You are creating a routine that will perform calculations by using a repetition structure. You
need to ensure that the entire loop executes at least once.
Which looping structure should you use?

A.
For

B.
While

C.
Do„While

D.
For. „Each

Explanation:
In a Do..While loop the test is at the end of the structure, so it will be executed at least once.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


mandisa

mandisa

C is the correct answer of which its Do,,While loop

DB7

DB7

C: Do While
valuation Expression is located at bottom of loop, therefore is executed after first iteration