CompTIA PenTest+ (PT0-002) — Question 385
In Python socket programming, SOCK_DGRAM type is:
Answer options
- A. reliable.
- B. matrixed.
- C. connectionless.
- D. slower.
Correct answer: C
Explanation
The SOCK_DGRAM type in Python socket programming is used for connectionless communication, meaning it does not establish a dedicated end-to-end connection before sending data. This differs from reliable connections like TCP (SOCK_STREAM), while the other options do not accurately describe the characteristics of SOCK_DGRAM.