Match List I with List II : \(\begin{array}{ll} \text{List I} & \text{List II}…

2022

Match List I with List II :

\(\begin{array}{ll} \text{List I} & \text{List II} \\ \\ \text{(A) BIND} & \text {(I) Block the caller until a connection attempt arrives} \\ \text{(B) LISTEN} & \text{ (II) Give a local address to a socket} \\ \text{(C) ACCEPT} & \text {(III) Show willingness to accept connections} \\ \text {(D) SOCKET} & \text {(IV) Create a new point} \end{array}\)

Choose the correct answer from the options given below :

  1. A.

    (A)-(I), (B)-(III), (C)-(II), (D)-(IV)

  2. B.

    (A)-(II), (B)-(III). (C)-(I), (D)-(IV)

  3. C.

    (A)-(III), (B)-(II), (C)-(I), (D)-(IV)

  4. D.

    (A)-(I), (B)-(II), (C)-(III), (D)-(IV)

Attempted by 72 students.

Show answer & explanation

Correct answer: B

Correct matching and brief explanations:

  • BIND → Give a local address to a socket.

  • LISTEN → Show willingness to accept connections.

  • ACCEPT → Block the caller until a connection attempt arrives (then return a new socket for the connection).

  • SOCKET → Create a new endpoint (a new socket) for network communication.

Rationale:

  • BIND assigns the local IP and port so the socket has an address to use.

  • LISTEN tells the operating system the socket should queue incoming connection requests.

  • ACCEPT waits for an incoming connection and, when one arrives, returns a new connected socket.

  • SOCKET creates the underlying socket resource used for subsequent bind/listen/accept or connect operations.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Tpsc Assistant Technical Officer