Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which one of the following function returns the port number of a specified service?

a) getportname()
b) getservername()
c) getserverbyname()
d) getservbyname()

Answer: d
Explanation: The function fgetservbyname() returns the port number for a given Internet service and protocol. Example-getservbyname(“http”,”tcp”) will return 80.

Join The Discussion