Q6 (20 points) Which TCP port number of the server the Web browser will connect to when...
Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.
(20 points)
Which TCP port number of the server the Web browser will connect to when specifying URL (Universal Resource Locator) as http://ftp.example.jp/index.cgi?port=123 in the Web browser?
Show answer & explanation
Answer: B. 80
The port used by a web browser is determined by the protocol scheme in the URL, not by query parameters. Since the URL uses the http:// scheme, the browser connects to the default HTTP port 80. The query parameter port=123 is data passed to the server application, not a network-level port specification. Port 21 is FTP, port 443 is HTTPS—these are irrelevant here.
Step-by-step Derivation:
- Parse the URL:
http://ftp.example.jp/index.cgi?port=123 - Identify the scheme:
http://(HTTP protocol) - HTTP default port: 80 (standardized by RFC 7230)
- Query parameters (
?port=123) are application-level data, not network ports - Browser connects to: port 80
- Answer: B) 80