Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
CompTIA logo

CompTIAServer+

Domain 2Objective 6

Scripting Basics SK0-005 Practice Questions (Page 1)

Part of the Server administration domain, which accounts for 30% of the SK0-005 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~11–18 in this domain), expect 2–3 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)

23questions here
5free pages
11concepts
30%of the exam

Questions 1–5

  1. 1foundation · easy

    In a Linux script, which command is used to create a new user account named 'jsmith'?

    Select an answer first
  2. 2foundation · easy

    What is the primary function of a loop in a script?

    Select an answer first
  3. 3foundation · medium

    A PowerShell script must monitor a service and restart it if it stops. The script should check the service status every 30 seconds and continue indefinitely. Which loop construct is most appropriate for this task?

    Select an answer first
  4. 4foundation · easy

    Given the Bash script snippet below, what is the output? count=5 count=$((count + 3)) echo "Total: $count"

    Select an answer first
  5. 5application · medium

    A Windows administrator is writing a PowerShell script that must create a temporary file, attempt to move it to a destination folder, and then check if the move succeeded. If the move failed, the script should retry the move. The script must always attempt the move at least once, even if the destination folder does not exist at the start. Which loop construct should be used?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “SK0-005” is a trademark of its owner, used for identification only.