Question: Part 1 : You are asked to write a block of code that will need to execute 1000 times. Which is the MOST APPROPRIATE type

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!