Site MapHelpFeedbackQuizzes
Quizzes
(See related pages)

1
Network programming in any language definitely needs to deal with ____________ and _______________.
A)user names; port numbers
B)IP addresses; link-layer address
C)IP addresses; port numbers
D)None of the choices are correct.
2
In Java, an IP address is defined as an object, the instance of _______ class.
A)InetAddress
B)SocketAddress
C)IPAddress
D)None of the choices are correct.
3
In Java, which of the following statement is true?
A)To create IPv4 address we must use Inet4Address class.
B)To create IPv6 address we must use Inet6Address class.
C)We can use InetAddress class to create both IPv4 and IPv6 addresses.
D)None of the choices are correct.
4
A port number in Java is defined as ________________ integer.
A)a 16-bit integer
B)a 24-bit integer
C)a 48-bit integer
D)None of the choices are correct.
5
The class used in Java network programming for socket address is the ______________ class.
A)InetAddress
B)SocketAddress
C)InetSocketAddress
D)None of the choices are correct.
6
A server in a client-server paradigm can be designed either as an _______ server or a _________ server.
A)asynchronous; concurrent
B)iterative; concurrent
C)simultaneous; intermittent
D)None of the choices are correct.
7
A concurrent server can server ___________.
A)one client at a time
B)only two clients simultaneously
C)several clients simultaneously
D)None of the choices are correct.
8
An iterative server handles _________________.
A)one client at a time
B)two clients simultaneously
C)several clients simultaneously
D)None of the choices are correct.
9
Java implementation of UDP uses ____________________.
A)only one type of socket objects
B)two types of socket objects
C)many types of socket objects
D)None of the choices are correct.
10
The DagramSocket class is used to create sockets ________________.
A)in the UDP client
B)in the UDP server
C)in both the UDP client and UDP server
D)None of the choices are correct.
11
The ________________ class is used to create datagram packets.
A)DatagramPacket
B)DagramSocket
C)DagramSocket or DatagramPacket
D)None of the choices are correct.
12
Java implementation of TCP uses _______________ types of socket objects.
A)only one
B)only two
C)Many types
D)None of the choices are correct.
13
In Java implementation of TCP, a client uses _________; a server uses __________.
A)ClientSocket object; ServerSocket object
B)Socket object; ServerSocket object
C)Socket object; ServerSocket object and Socket object
D)None of the choices are correct.
14
ServerSocket is sometimes called the ________ and or the ______ socket.
A)passive socket; listen socket
B)active socket; listen socket
C)waiting socket; listen socket
D)None of the choices are correct.
15
_______________ is responsible for establishing a connection.
A)Socket
B)ServerSocket
C)ClientSocket
D)None of the choices are correct.
16
In Java two methods, getOutputStream and getInputStream, are provided in the ________ class.
A)ServerSocket
B)Socket
C)Stream
D)None of the choices are correct.







Computer NetworksOnline Learning Center

Home > Chapter 11 > Quizzes