Site MapHelpFeedbackQuizzes
Quizzes
(See related pages)

1
In a client-server paradigm, a _______ program provides services to a (another) _______ program.
A)client; client
B)client; server
C)server; client
D)server; server
2
In a client-server paradigm ____________________.
A)both the server and the client must be running all the time
B)both the server and the client need to be running only when they are needed
C)the server must be running all the time but the client needs to be running only when it is needed
D)the client must be running all the time but the server needs to be running only when it is needed
3
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
4
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
5
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
6
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
7
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
8
A server in a client-server paradigm can be designed either as _______server or as _________ server.
A)an asynchronous; a concurrent
B)an iterative; a concurrent
C)a simultaneous; an intermittent
D)None of the choices are correct
9
A concurrent server can serve ___________.
A)one client at a time
B)only two clients simultaneously
C)several clients simultaneously
D)None of the choices are correct
10
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
11
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
12
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 the UDP server
D)None of the choices are correct
13
The ________________ class is used to create datagram packets.
A)DatagramPacket
B)DagramSocket
C)DagramSocket or DatagramPacket
D)None of the choices are correct
14
Java implementation of TCP uses _______________ of socket objects.
A)only one type
B)only two types
C)many types
D)None of the choices are correct
15
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
16
ServerSocket is sometimes called the ________ socket or the _______ socket.
A)passive; listen
B)active; listen
C)waiting; listen
D)None of the choices are correct
17
_______________ is responsible for establishing a connection.
A)Socket
B)ServerSocket
C)ClientSocket
D)None of the choices are correct
18
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.







Data Comm. and NetworkingOnline Learning Center

Home > Chapter 25 > Quizzes