Question: What is wrong with this script?

  1. If the value of PET doesn't match dog, the script will return a nonzero status code.
  2. There is nothing wrong with it. The condition checks the value of PET perfectly.
  3. It will fail if the user hits the Enter (Return) key without entering a pet name when prompted.
  4. The then statement needs to be on a separate line.

Answer: The correct answer of the above question is Option C:It will fail if the user hits the Enter (Return) key without entering a pet name when prompted.