Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views

Programming in Java - Unit 13 - Week 10

Nptel

Uploaded by

Anjali Tibe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Programming in Java - Unit 13 - Week 10

Nptel

Uploaded by

Anjali Tibe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

9/29/24, 5:49 PM Programming in Java - - Unit 13 - Week 10 :

Assessment submitted.
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
X

jamadarjuveriya8@gmail.com 

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Programming in Java (course)

Thank you for taking the Week


Course
outline
10: Assignment 10.
About
NPTEL () Week 10: Assignment 10
How does an Your last recorded submission was on 2024-09-29, 17:49 Due date: 2024-10-02, 23:59 IST.
NPTEL IST
online
1) What will be the output of the following Java program? 1 point
course
work? ()

Week 0 : ()

Week 1 : ()

Week 2 : ()

Week 3 : ()

Week 4 : ()

Week 5 : () a. Protocol: https


b. Host Name: nptel.ac.in
Week 6 : () c. Port Number: -1
d. All of the mentioned
Week 7 : ()

2) What will be the output of the following Java program? 1 point


Week 8 : ()

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 ()

a. Just prints the IP address of the local machine


b. Prints the IP address and host name of the local machine
c. Prints the IP address and host name of "nptel.ac.in"
d. Just prints the IP address of "nptel.ac.in"

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

You might also like