Question: When would you use a for loop?

  1. Only in some situations, as loops are used only for certain type of programming.
  2. When you need to check every element in an iterable of known length.
  3. When you want to minimize the use of strings in your code.
  4. When you want to run code in one file for a function in another file.

Answer: The correct answer of the above question is Option B:When you need to check every element in an iterable of known length.