JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
HADAPSAR, PUNE-28
COMPUTER ENGINEERING DEPARTMENT
Academic Year 2022-23
WORK BOOK -IV
Subject: Advanced Java Programming Subject code: 22517
Course & Code :CO5I Semester : Fifth
Subject Teacher: Ms. Chavan S. S. Class: TYCO
Unit No 4: Networking Basics
Date: / / 20
Name of the Student: - _______________________________________ Roll No.: -_______
CO4: Develop a java programs using networking concepts.
Answer the following questions:
1 Which is the connectionless protocol?
1. TCP
2. UDP
3. IP
4. HTTP
2 What is the port number of HTTP?
1. 80
2. 23
3. 47
4. 92
3 Which protocol that web browsers and servers use to transfer hypertext pages and
images?
1. TCP/IP
2. UDP
3. HTTP
4. SMTP
4 Originally, all Internet addresses consisted of ____ bit values.
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
HADAPSAR, PUNE-28
COMPUTER ENGINEERING DEPARTMENT
Academic Year 2022-23
WORK BOOK -IV
1. 32
2. 16
3. 24
4. 8
5 What is the full form of DNS?
1. Domain Naming System
2. Domain Naming Service
3. Domain Naming Software
4. Domain Naming Security
6 What is URL?
1. Unicast Resource Location
2. Uniform Research Launcher
3. Universal Research Locator
4. Uniform Resource Locator
7. What is the full form of DNS?
e) Domain Naming System
f) Domain Naming Service
g) Domain Naming Software
h) Domain Naming Security
8. Which class is used to encapsulate both the numerical IP address and the domain name
for that address?
a) InetAddress
b) SocketAddress
c) IPAdress
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
HADAPSAR, PUNE-28
COMPUTER ENGINEERING DEPARTMENT
Academic Year 2022-23
WORK BOOK -IV
d) DNSSockets
9 Which of the following constructor of InetAddress is generally used?
a) InetAddress()
b) InetAddress(int port)
c) InetAddress(URL url)
d) There is no any visible constructor for InetAddress
10. Factory method of InetAddress class throws which of the following exception?
e) MalFormedURLException
f) UnknownHostException
g) URLException
h) MalFormedURLIOException
Subject Teacher HOD
(Ms. Chavan S.S) Mr. Kalbande M. S.