Q7 /20 Which TCP port number of the server the Web browser will connect to when specifying...
Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.
/20
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 URL scheme is http://, which uses the default TCP port 80 by default. The query parameter port=123 is application-level data passed to the server's CGI script and does not affect the transport layer connection port. Port 21 is for FTP, port 123 is for NTP, and port 443 is for HTTPS—none of which apply here.
Step-by-step Derivation:
- Parse the URL:
http://ftp.example.jp/index.cgi?port=123 - Identify the scheme:
http(nothttps,ftp, etc.) - HTTP uses the default port: 80
- The query string
?port=123is parameter data sent to the CGI script on the server, not a port directive - The browser connects to port 80 and requests
/index.cgi?port=123from that server