BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute PCPP-32-101 Exam - Topic 4 Question 45 Discussion

Posted by Terrilyn on Feb 10, 2025 at 06:22 AM

Select the true statements about the connection-oriented and connectionless types of communication. (Select two answers.)

Suggested Answer: A, D

1. In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server.

This statement is true because TCP/IP networks use a client-server model to establish connection-oriented communications. The client is the device or application that requests a service or resource from another device or application, which is called the server. The server responds to the client's request and provides the service or resource. For example, when you browse a website using a web browser, the browser acts as a client and sends a request to the web server that hosts the website.The web server acts as a server and sends back the requested web page to the browser1.

2. Connectionless communications are usually built on top of TCP.

This statement is false because TCP (Transmission Control Protocol) is a connection-oriented protocol that requires establishing and terminating a connection before and after sending data. Connectionless communications are usually built on top of UDP (User Datagram Protocol), which is a connectionless protocol that does not require any connection setup or teardown.UDP simply sends data packets to the destination without checking if they are received or not2.

3. Using walkie-talkies is an example of a connection-oriented communication.

This statement is false because using walkie-talkies is an example of a connectionless communication. Walkie-talkies do not establish a dedicated channel or connection between the sender and receiver before transmitting data. They simply broadcast data over a shared frequency without ensuring that the receiver is ready or available to receive it.The sender does not know if the receiver has received the data or not3.

4. A phone call is an example of a connection-oriented communication.

This statement is true because a phone call is an example of a connection-oriented communication. A phone call requires setting up a circuit or connection between the caller and callee before exchanging voice data. The caller and callee can hear each other's voice and know if they are connected or not.The phone call also requires terminating the connection when the conversation is over4.


1: https://www.techtarget.com/searchnetworking/definition/client-server2: https://www.javatpoint.com/connection-oriented-vs-connectionless-service3: https://en.wikipedia.org/wiki/Walkie-talkie4: https://en.wikipedia.org/wiki/Telephone_call

A is true because in the context of TCP/IP networks, the communication side that initiates a connection is called the client, and the side that answers the client is called the server. This is the basis for establishing a connection-oriented communication.

D is true because a phone call is an example of a connection-oriented communication. Like TCP/IP, a phone call establishes a connection between two devices (in this case, two phones) before communication can occur.

A is true because in the context of TCP/IP networks, the communication side that initiates a connection is called the client, and the side that answers the client is called the server. This is the basis for establishing a connection-oriented communication.

D is true because a phone call is an example of a connection-oriented communication. Like TCP/IP, a phone call establishes a connection between two devices (in this case, two phones) before communication can occur.

B is false because connectionless communications are usually built on top of UDP, not TCP. UDP is a connectionless protocol that does not establish a connection before sending data.

C is false because using walkie-talkies is an example of a connectionless communication. Walkie-talkies do not establish a connection before communication begins, and messages are simply broadcasted to all devices within range.

Here is a sample code in Python using thesocketmodule to create a TCP server and client to demonstrate the connection-oriented communication:

Server-side code:

import socket

HOST = '127.0.0.1'

PORT = 8080

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:

s.bind((HOST, PORT))

s.listen()

conn, addr = s.accept()

with conn:

print('Connected by', addr)

while True:

data = conn.recv(1024)

if not data:

break

conn.sendall(data)

Client-side code:

import socket

HOST = '127.0.0.1'

PORT = 8080

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:

s.connect((HOST, PORT))

s.sendall(b'Hello, world')

data = s.recv(1024)

print('Received', repr(data))

The server listens for incoming connections on port 8080, and when a connection is established, it prints the address of the client that has connected. The server then continuously receives data from the client and sends it back to the client until the connection is closed.

The client establishes a connection with the server and sends the message 'Hello, world' encoded as bytes. It then waits for a response from the server and prints the data it receives.

Get Premium PCPP-32-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
EV
Eveline 12 months ago
A and D are the only true statements here!
MA
Maxima 1 year ago
I thought walkie-talkies were connectionless? This is confusing!
JA
Jacinta 1 year ago
Wait, B is wrong! Connectionless is usually UDP, not TCP.
EL
Elbert 1 year ago
D is correct too, phone calls are connection-oriented.
TI
Tien 1 year ago
A is definitely true! Client and server roles are spot on.
HY
Hyman 1 year ago
I feel like C is wrong because walkie-talkies don't establish a connection like a phone call does.
KA
Kallie 1 year ago
I practiced a question similar to this, and I think D is definitely true since a phone call establishes a connection.
JU
Judy 1 year ago
I'm not so sure about B; I thought connectionless protocols like UDP don't rely on TCP at all.
AU
Audra 1 year ago
I remember that the client-server model is key in connection-oriented communication, so I think A is true.
LI
Lili 1 year ago
I've got a good handle on this. Connection-oriented is reliable and has overhead, while connectionless is faster but less reliable. I'll select the two that best fit those descriptions.
ED
Eden 1 year ago
A phone call is definitely connection-oriented, and I'm pretty sure walkie-talkies are too. The client-server thing in the first option sounds right, but I'm not sure about the other one.
SH
Sharen 1 year ago
Wait, I'm a bit confused. Isn't TCP/IP connectionless? I'll have to review my networking concepts before answering this.
IV
Ivory 1 year ago
Okay, I think I've got this. Connection-oriented is like a phone call, where there's a dedicated line between the two parties. Connectionless is more like email, where each message is sent independently.
DE
Denny 1 year ago
Hmm, this looks like a tricky one. I'll need to think carefully about the differences between connection-oriented and connectionless communication.
ED
Edgar 2 years ago
I'm a bit confused about A. Isn't the server the one that initiates the connection in TCP/IP networks?
MA
Mari 2 years ago
↳ replying to Edgar
C) Using walkie-talkies is an example of a connection-oriented communication
LO
Loreen 2 years ago
↳ replying to Edgar
A) In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server
CO
Corinne 2 years ago
Haha, I'm with Joesph on this one. D is a no-brainer!
CO
Cora 2 years ago
C seems off. Walkie-talkies are actually a good example of connectionless communication.
CE
Celeste 2 years ago
↳ replying to Cora
C) Using walkie-talkies is an example of a connection-oriented communication
SK
Skye 2 years ago
↳ replying to Cora
A) In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server
RO
Rosalyn 2 years ago
Hmm, I think B is false. Connectionless communications are usually built on top of UDP, not TCP.
GE
Geraldo 2 years ago
↳ replying to Rosalyn
C) Using walkie-talkies is an example of a connection-oriented communication
OC
Octavio 2 years ago
↳ replying to Rosalyn
A) In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server
FA
Fallon 2 years ago
I'm not sure about B and C. Can someone explain why they are not true statements?
TE
Terrilyn 2 years ago
I agree with Avery. A and D make sense because they describe the client-server relationship in connection-oriented communication.
JO
Joesph 2 years ago
D is definitely the right answer. A phone call is a classic example of a connection-oriented communication.
FR
Franklyn 2 years ago
↳ replying to Joesph
D) A phone call is an example of a connection-oriented communication
SH
Shelia 2 years ago
↳ replying to Joesph
A) In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server
AV
Avery 2 years ago
I think A and D are the true statements.
0/2000 characters

Save Cancel