exam questions

Exam SK0-005 All Questions

View all questions & answers for the SK0-005 exam

Exam SK0-005 topic 1 question 313 discussion

Actual exam question from CompTIA's SK0-005
Question #: 313
Topic #: 1
[All SK0-005 Questions]

An administrator discovers a misconfiguration that impacts all servers but can be easily corrected. The administrator has a list of affected servers and a script to correct the issue. Which of the following scripting principles should the administrator use to cycle through the list of servers to deliver the needed change?

  • A. Linked list
  • B. String
  • C. Loop
  • D. Constant
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
surfuganda
8 months ago
Selected Answer: C
C. Loop A loop in scripting or programming is a control flow statement that allows code to be executed repeatedly based on a given condition or conditions. When dealing with a list of servers and needing to apply changes or execute a script on each server, a loop can iterate over the list, performing the required action(s) on each server until the list is exhausted. This method is efficient, reduces the potential for human error, and ensures that the change is consistently applied across all servers listed.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago