Practice PCPP2 Interprocess Communication questions with full explanations on every answer.
Start practicing
Interprocess Communication — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
When using a multiprocessing.Queue to share data between processes, what happens if the queue is full and you use the put() method without a timeout?
2You are using the multiprocessing.Process class and notice that child processes are not terminating cleanly. Which method should you call to ensure the main process waits for the child process to complete?
3You are using the subprocess.run() function to execute an external command. Which argument ensures that the command's stdout is captured as a string rather than printed to the console?
4Two threads are modifying a shared global integer. You want to ensure that only one thread modifies the integer at a time. Which synchronization primitive is most appropriate?
5You are using a multiprocessing.Pool. Which method should you use to apply a function to a sequence of items and get the results back in order as they complete?
6What is the primary reason to use the multiprocessing module instead of the threading module for CPU-bound tasks in Python?
7You are writing a Python script that needs to perform heavy I/O-bound tasks concurrently. Which module should you prioritize to minimize the overhead of global interpreter lock (GIL) contention?
8When using subprocess.Popen, why is it dangerous to use shell=True with user-supplied input?
9In the context of the threading module, what does the daemon flag do when set to True?
10When spawning processes on Windows, what is the default start method used by the multiprocessing module?
11Why should you use a 'with' statement when using a Lock?
12You are managing subprocesses using subprocess.Popen. Which attribute of the Popen object should you check to verify the exit code after the process terminates?
13You are using a multiprocessing.Semaphore(3). What happens when the 4th process attempts to acquire the semaphore?
14You have a thread waiting on a threading.Event. Which method should another thread call to wake up the waiting thread?
15Which object would you use to share a simple integer between processes that is safe for concurrent access?
16Which module allows you to run external programs and interact with their input/output streams?
17Which of the following is true regarding daemon threads in Python?
18You are using Pool.apply_async(). How do you retrieve the result of the function call?
19If you want to run a function in a background thread, which class should you instantiate?
20What is the result of using a Pipe to communicate between two processes if both processes attempt to write to the same end simultaneously?
21What is the primary purpose of the subprocess.PIPE constant?
22Which TWO of the following are valid ways to synchronize threads?
23When using the multiprocessing module, why is it recommended to use a Manager object instead of a standard dictionary to share data between processes?
24Which TWO of the following are key benefits of using the multiprocessing.Pool class?
25Which of the following describes the difference between Process.terminate() and Process.kill()?
26Which TWO of the following are true about the multiprocessing.Queue object?
27Which TWO of the following scenarios are best suited for the subprocess module?
28Which THREE of the following are valid ways to instantiate a process in the multiprocessing module?
29Which TWO of the following are potential issues when using the 'fork' start method in multiprocessing?
30Which THREE of the following represent types of IPC provided by the multiprocessing module?
31Which THREE of the following represent ways to synchronize access to shared data in a multi-threaded application?
32Which THREE of the following are true about the 'subprocess' module's interaction with the operating system?
33Which THREE of the following features are common to both the threading and multiprocessing modules?
The Interprocess Communication domain covers the key concepts tested in this area of the PCPP2 exam blueprint published by Python Institute. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all PCPP2 domains — no account required.
The Courseiva PCPP2 question bank contains 33 questions in the Interprocess Communication domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Interprocess Communication domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included