CompTIA
PT0-002 · Question #293
A penetration tester created the following script to use in an engagement: However, the tester is receiving the following error when trying to run the script: Which of the following is the reason for
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #293. The question stem and answer options stay visible for context.
Tools and Code Analysis
Question
A penetration tester created the following script to use in an engagement:
However, the tester is receiving the following error when trying to run the script:
Which of the following is the reason for the error?
Exhibits
Options
- AThe sys variable was not defined.
- BThe argv variable was not defined.
- CThe sys module was not imported.
- DThe argv module was not imported.
Unlock PT0-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Python scripting#Python modules#NameError#Command-line arguments

