Contents

Which of the following is a stateless protocol?
a) HTML                              
b) XHTML
c) HTTP                                               
d) XML

c

What does the value 2 of the WebSocket attribute Socket.readyState indicate?
a) Closed connection
b) Handshake connection
c) Unestablished connection
d) Established connection and communication is possible

b

How many WebSocket events are available?
a) 2                                                        
b) 3
c) 4                                                        
d) 5

c

Which method is used to close the WebSocket?
a) Socket.flush() 
b) Socket.close()
c) Socket.Close() 
d) Socket.dispose()

b

How does the client and the server communicate following the rules defined by the WebSocket protocol?
a) Long-lived TCP Socket
b) Short-lived TCP Socket
c) UDP Socket     
d) HTTP Socket

a

Which of the following is not a socket property?
a) onopen                             
b) readyState
c) onmessage                       
d) ready

d