GIAC Python Coder (GPYC) — Question 25

Which of the following modules allows a programmer to specify and spawn new processes, connect to their input and output pipes, and retrieve returned data?

Answer options

Correct answer: C

Explanation

The correct answer is C, subprocess, as it is specifically designed for creating and managing additional processes in Python. The other options, A (pip) and B (urllib2), serve different purposes related to package management and URL handling, respectively, while D (prochandle) is not a standard Python module.