Courseiva

PCPP2 · domain

Network Programming

Practise RAM questions covering identification, installation, speeds, dual-channel, and troubleshooting for the PCPP2 exam.

32 questions11 easy11 medium10 hard

Focused practice

Practice Network Programming questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Network Programming

RAM tests your ability to identify, install, and troubleshoot memory types, speeds, and configurations for PCs.

Identifying DDR3 vs DDR4 vs DDR5 physical and electrical differences

Matching RAM speed (MHz) to motherboard and CPU support

Calculating total memory capacity from module size and slots

Troubleshooting common RAM errors like beep codes and blue screens

Why learners struggle

Why Network Programming questions are commonly missed

RAM questions are commonly missed because learners confuse physical form factors (DIMM vs SO-DIMM) and fail to distinguish between memory speed (MHz) and latency (CL).

  • ·DIMM vs SO-DIMM — desktop vs laptop form factor confusion
  • ·DDR3 vs DDR4 vs DDR5 — notch position and voltage differences
  • ·MHz vs CL — speed vs latency trade-offs in performance
  • ·Single-channel vs dual-channel — bandwidth impact misconception
  • ·ECC vs non-ECC — error correction support in servers vs desktops
  • ·32-bit vs 64-bit — maximum addressable RAM limit

Watch out for

Common Network Programming exam traps

  • Confusing DDR3 and DDR4 notch positions and voltage requirements
  • Assuming dual-channel requires identical size modules only
  • Mixing ECC and non-ECC RAM in a single system
  • Forgetting that 32-bit OS limits usable RAM to 4 GB

Question index

All Network Programming questions (32)

Click any question to see the full explanation, or start a practice session above.

1

You are configuring a server to handle high-concurrency requests. Why is it preferable to use the select.select() module over a simple blocking recv() loop?

Medium
2

In a multi-threaded Python server, why is it discouraged to share a single socket object across multiple threads without synchronization?

Hard
3

Which TWO of the following are true regarding the socket.shutdown() method?

Medium
4

Which of the following is the correct way to close a socket object in Python?

Easy
5

Which method should a developer use to retrieve the IP address and port of the remote peer connected to a TCP socket?

Easy
6

Which TWO of the following are necessary to connect a TCP client to a server?

Easy
7

Which THREE of the following options can be used with socket.setsockopt()?

Hard
8

What is the effect of setting a socket to non-blocking mode using socket.setblocking(False)?

Easy
9

Which THREE of the following are true regarding the use of the socket module in Python?

Hard
10

Which TWO of the following are differences between TCP and UDP?

Easy
11

Why is the socket.socket() constructor typically called with socket.AF_INET and socket.SOCK_STREAM for a standard web server?

Medium
12

You need to detect if a client has disconnected from your TCP server. What is the standard behavior of recv() when the peer performs a clean shutdown?

Medium
13

Which of the following describes the behavior of TCP_NODELAY?

Hard
14

Which function in the socket module is used to convert a 32-bit integer from host byte order to network byte order?

Easy
15

Which THREE of the following are valid ways to send or receive data?

Easy
16

Which TWO of the following are common issues when using select.select()?

Hard
17

What is the purpose of the socket.recvfrom() method?

Easy
18

You are using socket.socket(socket.AF_INET, socket.SOCK_DGRAM). You attempt to send 10,000 bytes via sendto(). Why might the operation raise an OSError?

Hard
19

Which TWO of the following methods are typically used on a TCP server socket?

Medium
20

When handling TCP streams, why might recv(1024) return fewer than 1024 bytes even if the sender sent more?

Hard
21

When using select.select(inputs, outputs, exceptions), what does the 'outputs' list signify?

Hard
22

You are building an application using SSL/TLS. Which module must be used to wrap a standard socket to provide encrypted communication?

Medium
23

When using socket.setsockopt(), which option is required to immediately reuse a port that is currently in a TIME_WAIT state after a server restart?

Hard
24

Which THREE of the following are valid address families or socket types used with the Python socket module?

Easy
25

You are configuring a socket timeout. What happens if you call socket.settimeout(5.0) and the operation exceeds 5 seconds?

Medium
26

What is the significance of the SO_BROADCAST option in a UDP socket?

Medium
27

In a Python TCP server, what is the primary purpose of the backlog parameter in the listen(backlog) method?

Easy
28

When implementing a custom application protocol over TCP, how should you handle message framing?

Hard
29

You are writing a UDP server. What is the main disadvantage of using UDP for high-volume data transmission compared to TCP?

Medium
30

You are designing a cross-platform network application. Why is it recommended to use socket.getaddrinfo() instead of socket.gethostbyname()?

Medium
31

Which THREE of the following socket attributes or methods are relevant to managing socket timeouts?

Medium
32

Which socket method is used to bind a socket to a specific address and port?

Easy

Frequently asked questions

What does the Network Programming domain cover on the PCPP2 exam?
RAM tests your ability to identify, install, and troubleshoot memory types, speeds, and configurations for PCs.
How many questions are in this domain?
This page lists all 32 Network Programming questions in the PCPP2 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Network Programming questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
python-pcpp2 PYTHON-PCPP2 network programming Practice Questions