View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 25 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 12 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Sample Code.
Sorry!For this module there is no Assignments.
Question No: 1 of 11
Which of these is a protocol for breaking and sending packets to an address across a network? 
Options:
  1. TCIP/IP
  2. DNS
  3. Socket
  4. Proxy Server
View Answer/Explanation:
a
Explanation:
TCP/IP – Transfer control protocol/Internet Protocol is used to break data into small packets an send them to an address across a network.

Question No: 2 of 11
Which of these class is used to encapsulate IP address and DNS? 
Options:
  1. DatagramPacket
  2. InetAddress
  3. URL
  4. ContentHandler
View Answer/Explanation:
b
Explanation:
InetAddress class encapsulate both IP address and DNS, we can interact with this class by using name of an IP host.

Question No: 3 of 11
What is the output of this program?
import java.net.*;
    class Networking {
       public static void main(String[] args) throws UnknownHostException {
           InetAddress obj1 = InetAddress.getByName("bestdotnettraning.com");
            InetAddress obj2 = InetAddress.getByName("deccansoft.com");
            boolean x = obj1.equals(obj2); 
            System.out.print(x);
        }
    } 
Options:
  1. 0
  2. 1
  3. true
  4. false
View Answer/Explanation:
d
Explanation:
InetAddress obj1 = InetAddress.getByName(“bestdotnettraining.com”); creates object obj1 having DNS and IP address of bestdotnettraining.com, InetAddress obj2 = InetAddress.getByName(“deccansoft.com”); creates obj2 having DNS and IP address of deccansoft.com , since both these address point to two different locations false is returned by obj1.equals(obj2);.

Question No: 4 of 11
Which of these method of DatagramPacket is used to find the port number? 
Options:
  1. port()
  2. getPort()
  3. findPort()
  4. recievePort()
View Answer/Explanation:
a
Explanation:

Question No: 5 of 11
How many bits are in a single IP address? 
Options:
  1. 8
  2. 16
  3. 32
  4. 64
View Answer/Explanation:
c
Explanation:

Question No: 6 of 11
How many bits are in a single IP address? 
Options:
  1. 8
  2. 16
  3. 32
  4. 64
View Answer/Explanation:
c
Explanation:

Question No: 7 of 11
What is the purpose of code attribute of applet tags? 
Options:
  1. A URL that points to the class of the applet
  2. A URL to the applet when it is stored in a Java Archive or ZIP file
  3. Indicates the base URL of the applet if the code attribute is relative
  4. Defines the horizontal spacing around the applet
View Answer/Explanation:
a
Explanation:
-HTML tags are used to check whether the browser is running the desired services to run the application on the browser. So the applet function and tags are useful instead of deploying toolkit function to make things work for the end users.
Question No: 8 of 11
What is the output of this program? 
import java.net.*;
class networking {
public static void main(String[] args) throws UnknownHostException {
InetAddress obj1 = InetAddress.getByName("bestdotnetraining.com");
System.out.print(obj1.getHostName());
}
} 
Options:
  1. bestdotnetraining
  2. bestdotnetraining.com
  3. www.bestdotnetraining.com
  4. None of the mentioned
View Answer/Explanation:
b
Explanation:

Question No: 9 of 11
Which of these is a protocol for breaking and sending packets to an address across a network? 
Options:
  1. DNS
  2. Socket
  3. TCIP/IP
  4. Proxy Server
View Answer/Explanation:
c
Explanation:
Transfer control protocol/Internet Protocol is used to break data into small packets an send them to an address across a network

Question No: 10 of 11
What is default gateway? 
Options:
  1. Default gateway connects the machine to outside world.
  2. Default gateway connects computer to the internet.
  3. both of the above 'a' and 'b'
  4. none of the above
View Answer/Explanation:
c
Explanation:

  1