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?

The correct answer is C. example.read(). You've hit your limit · resets 1pm (America/New_York)

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()

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    8% (2)
  • C
    81% (21)
  • D
    4% (1)

Explanation

You've hit your limit · resets 1pm (America/New_York)

Topics

#subprocess module#stdout#stderr#process output

Community Discussion

No community discussion yet for this question.

Full GPYC Practice