Question: What will happen if you use a while loop and forget to include logic that eventually causes the while loop to stop?

  1. Nothing will happen; your computer knows when to stop running the code in the while loop.
  2. You will get a KeyError.
  3. Your code will get stuck in an infinite loop.
  4. You will get a WhileLoopError.

Answer: The correct answer of the above question is Option C:Your code will get stuck in an infinite loop.