CompTIA
XK0-004 · Question #133
XK0-004 Question #133: Real Exam Question with Answer & Explanation
The correct answer is D: The -ne flag should be changed to -eq in the if statement.. if the script finds company A, the result should be equal to 0.
Question
An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly. Which of the following explains what is wrong with the script?
Exhibit
Options
- Ashould be changed to in the statement.
- BThe for should be changed to while in the loop.
- CThe > should be changed to 2> in the do statement.
- DThe -ne flag should be changed to -eq in the if statement.
Explanation
if the script finds company A, the result should be equal to 0.
Community Discussion
No community discussion yet for this question.
