Networking


  1. Which of these is a bundle of information passed between machines?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The Datagrams are the bundle of information passed between machines.


  1. Which of these class is necessary to implement datagrams?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    A and B both: DatagramSocket, DatagramPacket.



  1. Which of these method of DatagramPacket is used to find the port number?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    getPort()


  1. Which of these method of DatagramPacket is used to obtain the byte array of data contained in a datagram?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    getData()



  1. Which of these methods of DatagramPacket is used to find the length of byte array?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    getLength returns the length of the valid data contained in the byte array that would be returned from the getData () method. This typically is not equal to length of whole byte array.