220-1002 · Question #686
A network technician is creating a set of scripts to help complete some common tasks. The technician wants to leave notes within the scripts to explain the purpose of each section and allow for…
The correct answer is A. Inline comments. Inline comments are text annotations embedded directly within script code that are ignored during execution. They allow the author (or future maintainers) to explain what a block of code does, why a particular approach was chosen, or flag areas that may need updating. Most…
Question
A network technician is creating a set of scripts to help complete some common tasks. The technician wants to leave notes within the scripts to explain the purpose of each section and allow for changes later. Which of the following should the technician use?
Options
- AInline comments
- BEnd-user documentation
- CChange management
- DEnvironmentally aware variables
How the community answered
(31 responses)- A94% (29)
- B3% (1)
- C3% (1)
Explanation
Inline comments are text annotations embedded directly within script code that are ignored during execution. They allow the author (or future maintainers) to explain what a block of code does, why a particular approach was chosen, or flag areas that may need updating. Most scripting languages use a symbol such as # (Bash, Python, PowerShell) or // (JavaScript) to denote comments. End-user documentation (B) is for end users, not developers. Change management (C) is a formal IT process for managing system changes. Environmentally aware variables (D) relate to environment-specific configuration values, not code annotations.
Topics
Community Discussion
No community discussion yet for this question.