Skip to content
Related Articles
Open in App
Not now

Related Articles

GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 23

Improve Article
Save Article
  • Last Updated : 23 Jan, 2020
Improve Article
Save Article

Which of the following statements is false?
(A) socket() creates a new socket of a certain socket type, identified by an integer number, and allocates system resources to it.
(B) bind() is typically used on the client side, and associates a socket with a socket address structure, i.e. a specified local port number and IP address.
(C) listen() is used on the server side, and causes a bound TCP socket to enter listening state.
(D) connect() is used on the client side, and assigns a free local port number to a socket.


Answer: (B)

Explanation: bind() is typically used on the server side, and associates a socket with a socket address structure, i.e. a specified local port number and IP address.
So, option (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!