Multiple Choice
Which code creates a server socket on port PORT_NUMBER and listens for a connection?
A) ServerSocket ss = new ServerSocket(PORT_NUMBER) ;
Socket sock = ss.accept() ;
B) Socket ss = new Server(PORT_NUMBER) ;
ServerSocket sock = ss.accept() ;
C) ServerSocket ss = new ServerSocket() ;
Socket sock = ss.accept() ;
D) ServerSocket ss = new ServerSocket(PORT_NUMBER) ;
Socket sock = new Socket(ss.accept() ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q7: IP breaks up large chunks of data
Q14: The HTTP command HEAD _.<br>A)stores the header
Q19: The HTTP command TRACE _.<br>A)traces the requested
Q23: A _ is an object that encapsulates
Q55: A(n) _ is a set of instructions
Q55: The HTTP command PUT _.<br>A)returns the requested
Q58: _ _ was developed to enable different
Q61: A successful response has status _.<br>A) 200
Q65: a(n. _ is a pointer to an
Q71: The _ class makes it easy to