Search Header Logo

MindSpace - Networking

Authored by Atul Bondre

Computers

University

Used 17+ times

MindSpace - Networking
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of this package contains classes and interfaces for networking?

java.io

java.util

Java.net

java.network

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many bits are in a single IP address?

8

16

4

32 OR 128

64

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these class is used to encapsulate IP Address and Domain Name (Host Name)?

DatagramPacket

URL

InetAddress

URLConnection

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

InetAddress class object represents ________ and _________ .

MAC Address

IP Address

Host (Domain) Name

URL Address

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this program?

class networking

{

public static void main(String[] args)

throws UnknownHostException

{

InetAddress ob1 = InetAddress.getByName("sanfoundary.com");

InetAddress ob2 = InetAddress.getByName("sanfoundary.com");

boolean x = ob1.equals(ob2);

System.out.print(x);

}

}

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this program?

class networking

{

public static void main(String[] args)

throws UnknownHostException

{

InetAddress obj1 = InetAddress.getByName("cisco.com");

System.out.print(obj1.getHostName());

}

}

cisco

cisco.com

www.cisco.com

All of the given

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

InetAddress class has constructors.

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?