Question: When is a for loop the most appropriate choice when code in your program needs to be repeated? When the number of times the loop
When is a for loop the most appropriate choice when code in your program needs to be repeated?
When the number of times the loop needs to run is not known in advance.
When the number of times the loop needs to run is known in advance.
When the block of code in the loop consists of only one statement.
When the loop needs to run only once.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
