OA. free
Free
Accenture Core Computer Science Core Computer Science Medium

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?

Choose one option.
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:

  1. Parse the URL: http://ftp.example.jp/index.cgi?port=123
  2. Identify the scheme: http:// (HTTP protocol)
  3. HTTP default port: 80 (standardized by RFC 7230)
  4. Query parameters (?port=123) are application-level data, not network ports
  5. Browser connects to: port 80
  6. Answer: B) 80