The subprocess Module: Wrapping Programs With Python Quiz

Interactive Quiz ⋅ 13 Questions
By Joseph Peart

In this quiz, you’ll test your understanding of The subprocess Module: Wrapping Programs With Python.

By working through this quiz, you’ll revisit how to launch external programs from Python, read the exit code that a process leaves behind, and raise an exception when a command fails.

You’ll also check whether you can guard against a process that hangs, capture what a program writes to its standard streams, and tell the blocking behavior of run() apart from the non-blocking behavior of Popen().

The quiz contains 13 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

The subprocess Module: Wrapping Program With Python

Course

Using the Python subprocess Module

In this video course, you'll learn how to use Python’s subprocess module to run and control external programs from your scripts. You'll start with launching basic processes and progress to interacting with them as they execute.

intermediate stdlib

The subprocess Module: Wrapping Program With Python

Tutorial

The subprocess Module: Wrapping Programs With Python

In this tutorial, you'll learn how to leverage other apps and programs that aren't Python, wrapping them or launching them from your Python scripts using the subprocess module. You'll learn about processes all the way up to interacting with a process as it executes.

intermediate devops stdlib