Networking Client and Servers  Self Test With Answers



1) Which of the following is not related to the early events that led to the development
of the Internet.

a) Sputnik
b) Kennedy
c) DARPA
d) Ballistic Missiles                 ( b )

// Comment: This was the Eisenhower era

2) Which of the following were not known for publications about packets?

a) Kleinrock
b) Donald Davis
c) Paul Baran
d) Vince Cerf                      ( d )
 

3) UDP works at which of the following layers of the TCP/IP model

a) Physical
b) Data Link
c) Network
d) Transport
e) Application                    ( d )

4) Which of the following is not a function of the IP layer?

a) error checking
b) acknowledgement
c) addressing
d) routing                           ( b )

// Our note has been 'magically modified to mention that the
// IP Header includes some error checking to confirm the
// integrity of the packet, so now b is the only correct answer

5) Which of the following is not a part of a typical client written in java?

1) creation of a ServerSocket object
2) opening streams
3) calling methods on stream instances
4) closing( ) streams           ( a )

6) Which of the following lines of code would least likely be needed
in a java server?

a)  imports of the io and net package
b)  a ServerSocket constructor taking an IP address and port number
c)  a call on accept( ) 
d)  a call on the close( ) method          ( b )

// Comment: The server's socket constructor only takes a port number
// and doesn't open on a destination. It sits around and waits to be opened on.