1.

The client in socket programming must know which information?(a) IP address of Server(b) Port number(c) Both IP address of Server & Port number(d) Only its own IP addressI got this question by my school principal while I was bunking the class.My question is from Socket Programming topic in section Networking of Computer Network

Answer»

Correct ANSWER is (c) Both IP ADDRESS of SERVER & Port number

The explanation is: The client in socket PROGRAMMING must know IP address of Server as it has to use that IP address in order to initialize the socket class constructor. That is how the client requests a connection to the server.



Discussion

No Comment Found

Related InterviewSolutions