Practice Quiz: Python Subprocesses Post author:Devendra Kumar Post published: Post comments:0 Comments 6. What type of object does a run function return? Answers returncodecapture_outputstdoutCompletedProcess 7. How can you change the current working directory where a command will be executed? Answers Use the capture_output parameter.Use the cwd parameter.Use the shell parameter.Use the env parameter. 8. When a child process is run using the subprocess module, which of the following are true? (check all that apply) Answers The child process is run in a secondary environment.The parent process is blocked while the child process finishes.The parent process and child process both run simultaneously.Control is returned to the parent process when the child process ends. 9. When using the run command of the subprocess module, what parameter, when set to True, allows us to store the output of a system command? Answers cwdcapture_outputtimeoutshell 10. What does the copy method of os.environ do? Answers Creates a new dictionary of environment variablesRuns a second instance of an environmentJoins two stringsRemoves a file from a directory Previous Next Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Devendra Kumar Project Management Apprentice at Google You Might Also Like Module 10: Project Management Software and Tools Agile Planning and Estimation Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.