Programming in Java - Unit 13 - Week 10
Programming in Java - Unit 13 - Week 10
Assessment submitted.
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
X
jamadarjuveriya8@gmail.com
Week 0 : ()
Week 1 : ()
Week 2 : ()
Week 3 : ()
Week 4 : ()
Week 9 : ()
Week 10 : ()
Lecture 46 :
Demonstration
-XVII (unit? a. nptel
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=90&assessment=442 1/3
9/29/24, 5:49 PM Programming in Java - - Unit 13 - Week 10 :
unit=90&lesso b. nptel.ac.in
Assessment
n=91)submitted.
X c. www.nptel.ac.in
Lecture 47 :
d. none of the mentioned
Demonstration
-XVIII (unit? 3) Which class provides methods to work with URLs? 1 point
unit=90&lesso
n=92) a. URLConnection
Lecture 48 : b. HttpURL
Networking c. NetURL
with Java
d. URL
(unit?
unit=90&lesso
n=93)
4) Which exception is thrown when a connection cannot be established with a remote 1 point
server?
Lecture 49 :
Demonstration a. IOException
-XIX (unit?
b. UnknownHostException
unit=90&lesso
n=94) c. ConnectionException
d. NetworkException
Lecture 50 :
JDBC - I (unit?
unit=90&lesso 5) Which class provides methods to create a client-side socket in Java? 1 point
n=95)
a. ServerSocket
Feedback
b. NetSocket
Form (unit?
unit=90&lesso c. Socket
n=96) d. ClientSocket
Week 10 :
Programming 6) Which of the following statement is TRUE? 1 point
Assignment 1
(/noc24_cs105
a. With stream sockets there is no need to establish any connection and data flows
/progassignme between the processes are as continuous streams.
nt?name=418) b. Stream sockets are said to provide a connection-less service and UDP protocol is used
Week 10 : c. Datagram sockets are said to provide a connection-oriented service and TCP protocol
Programming is used
Assignment 2 d. With datagram sockets there is no need to establish any connection and data flows
(/noc24_cs105
between the processes are as packets.
/progassignme
nt?name=419)
7) The server listens for a connection request from a client using which of the following 1 point
Week 10 : statement?
Programming
Assignment 3 a. Socket s = new Socket(ServerName, port);
(/noc24_cs105
b. Socket s = serverSocket.accept()
/progassignme
nt?name=420) c. Socket s = serverSocket.getSocket()
d. Socket s = new Socket(ServerName);
Week 10 :
Programming
Assignment 4 8) Which of the following is/are application layer protocol(s)? 1 point
(/noc24_cs105
/progassignme a. TCP
nt?name=421) b. UDP
c. ARP
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=90&assessment=442 2/3
9/29/24, 5:49 PM Programming in Java - - Unit 13 - Week 10 :
Week 10 : d. SMTP
Assessment submitted.
Programming
X Assignment 5 9) In the following URL, identify the Resource name? 1 point
(/noc24_cs105
/progassignme https://nptel.ac.in
nt?name=422)
a. https
Quiz: Week
b. nptel.ac.in
10:
Assignment c. ac.in
10 d. nptel
(assessment?
name=442)
10) What does this Java code snippet do? 1 point
Books ()
Text
Transcripts ()
You may submit any number of times before the due date. The final submission will be
considered for grading.
Submit Answers
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=90&assessment=442 3/3