Question: What is wrong with this script?
- If the value of PET doesn't match dog, the script will return a nonzero status code.
- There is nothing wrong with it. The condition checks the value of PET perfectly.
- It will fail if the user hits the Enter (Return) key without entering a pet name when prompted.
- 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.