Programming - Sockets
You Are Here :: Home > JAVA > Sockets - General Questions
13. |
Is UDP a connectionless protocol or not?
|
A. |
Yes |
B.
|
No |
C.
|
Cant say
|
D.
|
none
|
|
Answer: Option A
Explanation:
Yes,UDP is a connectionless protocol. |
|
14. |
The Stream communication protocol is known as _________________
|
A. |
UDP |
B.
|
TCP |
C.
|
IP
|
D.
|
Wifi
|
|
Answer: Option B
Explanation:
TCP(Transfer Control Protocol) used for stream communication protocol. |
|
15. |
Is TCP is a connection-oriented protocol?
|
A. |
Yes |
B.
|
No |
C.
|
Cant say
|
D.
|
none
|
|
Answer: Option A
Explanation:
Yes,TCP is a connection-oriented protocol. |
|
16. |
UDP is an ________________________ protocol.
|
A. |
unreliable |
B.
|
reliable |
C.
|
both
|
D.
|
none
|
|
Answer: Option A
Explanation:
User Datagram Protocol is an unreliable protocol. |
|
17. |
The class ___________________ allows you to read lines of text and java primitive datatypes in a portable way.
|
A. |
Input Stream |
B.
|
Output Stream |
C.
|
DataInputStream
|
D.
|
both a and b
|
|
Answer: Option C
Explanation:
The class DataInputStream allows you to read lines of text and java primitive datatypes in a portable way. |
|
18. |
On the server side,you can use ________________ to receive input from the client.
|
A. |
Input Stream |
B.
|
Output Stream |
C.
|
DataInputStream
|
D.
|
both a and b
|
|
Answer: Option C
Explanation:
On the server side,you can use DataInputStream to receive input from the client. |
|
« prev
next »