41. List the advantages of CGI scripting?
1. CGI programs are relatively safe to run.
2. A CGI program can crash without damaging the server, since it
only has limited
access to the server.
3. Reduces the burden of server
a. Sends prepared messages / mails e customer reply
b. Capability to process forms and prepares output based on form
input.
c. Hit counts / Page counters.
42. Explain about Session tracking.
A session is basically a conversation between a browser and a
server. All the above
technologies can save information for the current session for a
particular user visiting a site.
The session is important, as H1TP is a stateless protocol. This
means that the connection
between web server and a web browser is not automatically
maintained, and that the state of a
web session is not saved.
State is a general term that includes "everything about your
situation" and the specifics
vary based on the application. In a word processor, the state of
the application would include
which windows are open, where they are on the screen, and what
files you most recently used.
In a web application, the state would include any data that you
had entered, the results of any
queries that you had run, and your security access information
(e.g. whether you have logged
in to the site).
43. Define packet switched networks.
Packet switched network means that data traveling on the network
is broken into chunks
called packets and each packet is handled separately.
44. Define socket.
The socket is a software abstraction used to represent the
terminals of a connection
between two machines or processes.
45. What are the basic operations of client sockets?
Connect to a remote machine
Send data
Receive data
Close a connection
46. What are the basic operations of Server socket?
Bind to a port
Listen for incoming data
Accept connections from remote machines on the bound port
47. List all the socket classes in java.
Socket
ServerSocket
Datagram Socket
Multicast Socket
Secure sockets
48.What the Socket Object does?
Socket object is the java representation of a TCP connection when
a socket is created; a
connection is opened to the specified destination.
49. What is meant by Server Socket?
ServerSocket represents a listening TCP connection. Once an
incoming connection is
requested, the ServerSocket object will return a Socket object
representing the connection.
50. What do you mean by DatagramSocket and DatagramPacket?
DatagramSocket represents a connectionless datagram socket. This
class works with the
DatagramPacket class to provide for communication using the UDP
protocol.
No comments:
Post a Comment