nerdexam
GIAC

GPYC · Question #23

If the variable "example" contains a handle to a subprocess object, which of the following would show all of the possible results of running the subprocess?

Sign in or unlock GPYC to reveal the answer and full explanation for question #23. The question stem and answer options stay visible for context.

Advanced Python for Security Automation

Question

If the variable "example" contains a handle to a subprocess object, which of the following would show all of the possible results of running the subprocess?

Options

  • Aexample.stdout.read()
  • Bexample.recv(*)
  • Cexample.read()
  • Dexample.stdout.read()+example.stderr.read()

Unlock GPYC to see the answer

You've previewed enough free GPYC questions. Unlock GPYC 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

#subprocess module#stdout#stderr#process output
Full GPYC Practice