QuizzesPorts & Sockets — Concept Check
beginner
computer-networks

Ports & Sockets — Concept Check

Questions on Ports & Sockets. A port identifies a specific process on a host; a socket is the combination of IP address + port + protocol that uniquely identifies one end of a network connection.

7 minutes 7 questions Pass at 70%
Time Limit
7 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

7 questions on Ports & Sockets — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A server application is running on port 80, but clients are unable to connect. What could be the issue?

    • AThe client is using an ephemeral port.
    • BThe server is not running or crashed.
    • CThe server is using a registered port instead.
    • DThe server is using a dynamic port.
  2. 2.You notice that your web server on port 443 is handling thousands of connections simultaneously. How is this possible?

    • AThe server dynamically changes ports for each connection.
    • BEach connection is identified by a unique socket 5-tuple.
    • CThe server uses multiple IP addresses for load balancing.
    • DThe server uses a single socket for all connections.
  3. 3.A developer claims that binding a server to port 8080 requires root privileges on Unix systems. Is this true?

    • ANo, because 8080 is a registered port.
    • BYes, because all ports require root privileges.
    • CNo, because 8080 is above 1024.
    • DYes, because 8080 is a well-known port.
  4. 4.Your application is experiencing slow network performance. You suspect it might be due to port exhaustion. What should you check?

    • ACheck if well-known ports are being used.
    • BCheck if registered ports are blocked.
    • CCheck if ephemeral ports are exhausted.
    • DCheck if the server port is misconfigured.
  5. 5.A server is configured to listen on port 53, but clients are unable to resolve DNS queries. What might be wrong?

    • AThe server is not listening on the correct IP address.
    • BThe client is using a registered port.
    • CPort 53 is not reserved for DNS.
    • DThe server is using an ephemeral port.
  6. 6.Which of the following statements is true about ephemeral ports?

    • AThey require root privileges to bind.
    • BThey are assigned by the OS for client-side connections.
    • CThey are used for server-side applications.
    • DThey are reserved for well-known services.
  7. 7.A network administrator blocks all ports except 80 and 443 on a firewall. What impact does this have?

    • AOnly traffic from well-known ports will be allowed.
    • BOnly HTTP and HTTPS traffic will be allowed.
    • CAll traffic will be blocked, including HTTP and HTTPS.
    • DEphemeral ports will still allow client connections.