試験PT0-002J トピック1 問題316 スレッド
CompTIA PT0-002Jのリアル試験問題集
問題 #: 316
トピック #: 1
問題 #: 316
トピック #: 1
ペネトレーション テスターは、エンゲージメントで使用する次のスクリプトを作成しました。しかし、テスターはスクリプトを実行しようとすると、次のエラーを受け取ります。エラーの理由は次のうちどれですか?
おすすめの解答:C 解答を投票する
The sys module is a built-in module in Python that provides access to system-specific parameters and functions, such as command-line arguments, standard input/output, and exit status. The sys module must be imported before it can be used in a script, otherwise an error will occur. The script uses the sys.argv variable, which is a list that contains the command-line arguments passed to the script. However, the script does not import the sys module at the beginning, which causes the error "NameError: name 'sys' is not defined". To fix this error, the script should include the statement "import sys" at the top. The other options are not valid reasons for the error.
太田** 2024-04-04 08:23:05
コメント
他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。
コメントを通報する
コメント中
今すぐ 新規登録 / ログイン (無料です)。