Skip to content

Networks and Sockets :Using Python to Access Web Data (Python for Everybody Specialization) Answers 2025

Question 1

What do we call it when a browser uses HTTP to load a file or page from a server and display it?
The Request/Response Cycle
❌ SMTP
❌ IMAP
❌ DECNET
❌ Internet Protocol (IP)

🧠 Explanation:
When you open a webpage, your browser requests data from the server and the server responds — this is known as the HTTP request/response cycle.


Question 2

Which of the following is most similar to a TCP port number?
A telephone extension
❌ GPS coordinates
❌ Distance
❌ Telephone number
❌ Street number

🧠 Explanation:
An IP address is like a company’s phone number (the building), and a port number is like a telephone extension that directs your call to a specific department (application).


Question 3

What must you do in Python before opening a socket?
import socket
❌ open socket
❌ import tcp
❌ _socket = true
❌ import tcp-socket

🧠 Explanation:
Python’s socket module provides access to the socket interface — you must import socket before using it.


Question 4

In a client-server application using sockets, which must come up first?
server
❌ client
❌ it does not matter

🧠 Explanation:
The server must start first and listen on a port before a client can connect.


Question 5

Which of the following is most like an open socket?
An “in-progress” phone conversation
❌ Fiber optic cables
❌ Bicycle chain
❌ Wheels on an automobile
❌ Telephone ringer

🧠 Explanation:
A socket connection is an active communication channel — like a phone call that’s currently connected and transmitting information.


Question 6

What does the “H” in HTTP stand for?
HyperText
❌ Manual
❌ Hyperspeed
❌ wHolsitic
❌ Simple

🧠 Explanation:
HTTP stands for HyperText Transfer Protocol — the foundation of web communication.


Question 7

What is an important aspect of an Application Layer protocol like HTTP?
Which application talks first? The client or server?
❌ Memory requirement
❌ Retransmission timing
❌ IP address lookup

🧠 Explanation:
The application layer protocol defines who speaks first, how messages are structured, and how communication proceeds.


Question 8

What are the three parts of this URL?

http://www.dr-chuck.com/page1.htm

Protocol, host, and document
❌ Host, offset, and page
❌ Page, offset, and count
❌ Protocol, document, and offset
❌ Document, page, and protocol

🧠 Explanation:

  • http → protocol

  • www.dr-chuck.com → host

  • /page1.htm → document or path


Question 9

When you click this HTML link:

<a href="page1.htm">here</a>

What HTTP request is sent to the server?
GET
❌ POST
❌ PUT
❌ DELETE
❌ INFO

🧠 Explanation:
A normal link click triggers a GET request — retrieving (not modifying) a resource.


Question 10

Which organization publishes Internet Protocol (IP) standards?
IETF (Internet Engineering Task Force)
❌ SIFA
❌ SCORM
❌ IMS
❌ LDAP

🧠 Explanation:
The IETF develops and maintains internet standards like TCP/IP, HTTP, and DNS.


🧾 Summary Table

Q# ✅ Correct Answer Key Concept
1 The Request/Response Cycle Browser–server communication
2 Telephone extension Analogy for TCP port
3 import socket Python sockets setup
4 server Must start before client
5 In-progress phone conversation Active connection analogy
6 HyperText Meaning of HTTP
7 Which app talks first Application layer protocol logic
8 Protocol, host, document URL structure
9 GET Default HTTP request
10 IETF Publishes IP standards