Programming - Networking
You Are Here :: Home > JAVA > Networking - General Questions
7.
The ____________________________ instantiates a ServerSocket object, denoting which port number communication is to occur on.
A.
server
B.
client
C.
both a and b
D.
none
Answer: Option A
Explanation:
Server instantiates a ServerSocket object, denoting which port number communication is to occur on.
8.
The server invokes the____________________ method of the ServerSocket class. This method waits until a client connects to the server on the given port.
A.
accept()
B.
stop()
C.
init()
D.
destroy()
Answer: Option A
Explanation:
The server invokes the accept () method of the ServerSocket class. This method waits until a client connects to the server on the given port.
9.
________________________ is a two way communication protocol, so data can be sent across both streams at the same time.
A.
TCP
B.
UDP
C.
FTP
D.
Http
Answer: Option A
Explanation:
TCP is a two way communication protocol, so data can be sent across both streams at the same time.
10.
The __________________________ class is used by server applications to obtain a port and listen for client requests
A.
java.net.ServerSocket
B.
java.lang
C.
java.net
D.
java.awt
Answer: Option A
Explanation:
The java.net.ServerSocket class is used by server applications to obtain a port and listen for client requests
11.
The ______________ class represents the socket that both the client and server use to communicate with each other.
A.
java.net.ServerSocket
B.
java.net.Socket
C.
java.net
D.
java.awt
Answer: Option B
Explanation:
The java.net.Socket class represents the socket that both the client and server use to communicate with each other.
12.
Inter connections of computers is called __________________________
A.
networks
B.
protocols
C.
cloning
D.
Domain
Answer: Option A
Explanation:
Inter connections of computers is called Network.
« prev
next »