Part 1:
You are asked to write a block of code that will need to execute 1000 times. Which is the MOST APPROPRIATE type of control structure to use?
Part 2:
You are asked to write a block of sentinel-controlled code. Which is the MOST APPROPRIATE type of control structure to use?
Select the TWO options that correctly indicate the answer to either Part 1 or Part 2 of this question. Each wrongly selected option will result in 1 mark being deducted.
a.
Part 1: a for loop
b.
Part 1: a while loop
c.
Part 1: a do-while loop
d.
Part 2: a while loop
e.
Part 2: a for loop
f.
Part 2: a switch