CompTIA
SK0-005 · Question #595
Which of the following constructs would most likely be used to iterate a list of users?
The correct answer is B. Loop. A loop is the most appropriate construct for iterating over a list of users. A loop allows you to process each item in the list (each user) sequentially, which is exactly what is needed for this
Server administration
Question
Which of the following constructs would most likely be used to iterate a list of users?
Options
- AConditional
- BLoop
- CVariable
- DArray
How the community answered
(28 responses)- A7% (2)
- B89% (25)
- C4% (1)
Explanation
A loop is the most appropriate construct for iterating over a list of users. A loop allows you to process each item in the list (each user) sequentially, which is exactly what is needed for this
Topics
#Scripting fundamentals#Loops#Programming constructs#Automation
Community Discussion
No community discussion yet for this question.