exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 196 discussion

Actual exam question from CompTIA's PT0-002
Question #: 196
Topic #: 1
[All PT0-002 Questions]

In Python socket programming, SOCK_DGRAM type is:

  • A. reliable.
  • B. matrixed.
  • C. connectionless.
  • D. slower.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nickwen007
9 months, 4 weeks ago
C. Connectionless is the correct answer. SOCK_DGRAM type is a type of socket that is used for connectionless communication. This means that it does not require confirmation from the other end of the connection. A SOCK_DGRAM socket is generally faster than other types of sockets, but since it is connectionless, it may suffer from packet loss or data corruption which can lead to errors.
upvoted 3 times
...
cy_analyst
10 months ago
Selected Answer: C
In Python socket programming, the SOCK_DGRAM type specifies a connectionless socket, which means that the communication between two endpoints does not establish a long-lived connection before exchanging data. Instead, each message is sent individually and may take a different route to reach its destination, which makes it suitable for protocols that do not require reliability, such as DNS or UDP-based applications.
upvoted 3 times
...
2Fish
11 months ago
Selected Answer: C
Provides datagrams, which are connectionless messages of a fixed maximum length. This type of socket is generally used for short messages, such as a name server or time server, because the order and reliability of message delivery is not guaranteed. In the UNIX domain, the SOCK_DGRAM socket type is similar to a message queue. In the Internet domain, the SOCK_DGRAM socket type is implemented on the User Datagram Protocol/Internet Protocol (UDP/IP) protocol.
upvoted 4 times
...
Treebeard88
1 year ago
Selected Answer: C
Connectionless due to the Datagram portion mentioned so that would mean its using UDP.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...