Question: What is the problem with this code?

  1. There is no END WHILE statement;
  2. The local varaible is not available to the WHILE block.
  3. The query causes an infinite loop.
  4. "Counter" is an invalid variable name.

Answer: The correct answer of the above question is Option C:The query causes an infinite loop.