
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 4Objective 2
PCPP-32-101 4.2 Work with Sockets in Python PCPP-32-1 Practice Questions (Page 1)
Part of the Network Programming domain, which accounts for 18% of the PCPP-32-1 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~5–8 in this domain), expect 1–2 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)
23questions here
5free pages
7concepts
18%of the exam
Questions 1–5
- 1
Which method sends an HTTP request over a connected TCP socket?
Select an answer first - 2
A script sends an HTTP request and then reads the response. The developer notices that recv() sometimes returns less data than expected, even though the server has sent the full response. What is the most likely reason?
Select an answer first - 3
What does the recv() method return when called on a socket?
Select an answer first - 4
A script sends a request and reads the response. After reading, the script should close the connection. Which code snippet correctly closes the socket?
Select an answer first - 5
A client script sends an HTTP request and then calls recv(1024) in a loop until it receives an empty bytes object. The server, however, keeps the connection open and does not close it after sending the response. What is the most likely outcome?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCPP-32-1” is a trademark of its owner, used for identification only.