#include&lt;stdio.h&gt;   #include&lt;netinet/in.h&gt;   #include&lt;sys/types.h&gt;   #include&lt;sys/socket.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int fd_client,fd, len;       struct sockaddr_in add_server;       fd_client = socket&#40;AF_INET,SOCK_STREAM,0&#41;;       if &#40;fd_client == -1&#41;&#123;           perror&#40;&quot;fd_sock&quot;&#41;;           exit&#40;1&#41;;   &#125;   add_server.sin_family = AF_INET;   add_server.sin_port = ntohs&#40;4001&#41;;   add_server.sin_addr.s_addr = inet_addr&#40;&quot;127.0.0.1&quot;&#41;;   len = sizeof&#40;add_server&#41;;   fd  = connect&#40;fd_client,&#40;struct sockaddr*&#41;&amp;add_server,len&#41;;   if&#40;fd == -1&#41;       perror&#40;&quot;connect&quot;&#41;;       write&#40;fd,&quot;Hello\n&quot;,6&#41;;       return 0;   &#125;
A. socket()
B. connect()
C. both (a) and (b)
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;netinet/in.h&gt;   #include&lt;sys/types.h&gt;   #include&lt;sys/socket.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int fd_client,fd, len;       struct sockaddr_in add_server;       fd_client = socket&#40;AF_INET,SOCK_STREAM,0&#41;;       if &#40;fd_client == -1&#41;&#123;           perror&#40;&quot;fd_sock&quot;&#41;;           exit&#40;1&#41;;   &#125;   add_server.sin_family = AF_INET;   add_server.sin_port = ntohs&#40;4001&#41;;   add_server.sin_addr.s_addr = inet_addr&#40;&quot;127.0.0.1&quot;&#41;;   len = sizeof&#40;add_server&#41;;   fd  = connect&#40;fd_client,&#40;struct sockaddr*&#41;&amp;add_server,len&#41;;   if&#40;fd == -1&#41;       perror&#40;&quot;connect&quot;&#41;;       write&#40;fd,&quot;Hello\n&quot;,6&#41;;       return 0;   &#125;
A. socket() B. connect() C. both (a) and (b) D. none of the mentioned
Explanation:None.