Professional Documents
Culture Documents
NETWORKING
EVALUACIÓN DEL APRENDIZAJE
Nombre: ____________________________________________________
Fecha: __________e-mail: ______________________________________
Tiempo para resolverlo: 15 minutos.
1. What it is a socket?
Select any one option.
a) Socket miCliente;
miCliente = Socket( "Diana", 5432 );
b) Socket miServicio;
try {
miServicio = new ServerSocket( 5432 );
} catch( ArrayIndexOutOfBoundsException e ) {
System.out.println( e );
}
c) Socket miServicio;
try {
miServicio = new ServerSocket( 5432 );
} catch(IOException e ) {
System.out.println( e );
}
d) None of the above.
a) open()
b) close()
c) accept()
d) closed()
4. Which of the following piece of code is an example of the
Server listen for a connection?
5. The following are the simpler steps of the Java Networking Model
___ The Server uses a port and wait (timeout seconds) to the cliente to establish a
conection.
___ The client and the Server comunicate with InputStream and OutputStream.
___ The client establish a conecction with the host machine throw the port number
that we choose.
___ When the client request a conection, the Server will open the socket connection
with the method accept().