Networking


  1. In CGI, process starts with each request and will initiate OS level process.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    A new process is started with each client request and that corresponds to initiate a heavy OS level process for each client request.


  1. Which class provides system independent server side implementation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ServerSocket is a java.net class which provides system independent implementation of server side socket connection.



  1. What happens if ServerSocket is not able to listen on the specified port?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    public ServerSocket() creates an unbound server socket.It throws IOException if specified port is busy when opening the socket.


  1. What does bind() method of ServerSocket offer?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    bind() binds the server socket to a specific address (IP Address and port). If address is null, the system will pick an ephemeral port and valid local address to bind socket.



  1. Which of the below are common network protocols?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Transmission Control Protocol(TCP) and User Datagram Protocol(UDP) are the two common network protocol. TCP/IP allows reliable communication between two applications. UDP is connection less protocol.