EX200 Create simple shell scripts • Timed 10 Questions
This is a timed practice session. You have 10 minutes to answer 10 questions — approximately 1 minute per question, matching real EX200 exam pace. Answer every question before time expires.
Time remaining
10:00
Exam-pace drill
Allow 1 minute per question. On the real EX200 exam you have approximately 72 seconds per question — this session trains you to maintain that pace under pressure.
A system administrator needs to create a shell script that checks if the user 'jdoe' exists in the system and, if not, creates the user with a home directory. The script should also verify that the creation was successful. Which of the following script snippets correctly implements this logic?