687). Which of the following is a stateless protocol?

[A]HTML
[B]XHTML
[C]HTTP
[D]XML

Show Answer

688). 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

Show Answer

689). How many WebSocket events are available?

[A]2
[B]3
[C]4
[D]5

Show Answer

690). Which method is used to close the WebSocket?

[A]Socket.flush()
[B]Socket.close()
[C]Socket.Close()
[D]Socket.dispose()

Show Answer

691). 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

Show Answer

692). Which of the following is not a socket property?

[A]onopen
[B]readyState
[C]onmessage
[D]ready

Show Answer

693). What does the following JavaScript code snippet do?
var httpserver = new http.Server();

[A]Create an HTTP Server
[B]Create HTTP Connection between Client and Server
[C]HTTP Server & Connection
[D]Create a connection between two servers

Show Answer

694). How can we check the subprotocol being used by the client?
var httpserver = new http.Server();

[A] subprotocol property
[B]protocol property
[C] clientprotocol property
[D] client property

Show Answer

695). How will you transmit data using the connection?
var httpserver = new http.Server();

[A]send(data)
[B] Socket.send(“data”)
[C]Socket.send(data)
[D]Socket(data)

Show Answer

696). Which of the following is not a WebSocket event?
var httpserver = new http.Server();

[A]open
[B]close
[C]error
[D]deny

Show Answer

697). What will be the output of the following JavaScript code?

[A]8
[B]9
[C]3
[D]-1

Show Answer

698). What will be the output of the following JavaScript code?

[A]true
[B]false
[C]error
[D]null

Show Answer

699). What will be the output of the following JavaScript code?

[A]error
[B]false
[C]true
[D]undefined

Show Answer

700). What will be the output of the following JavaScript code?

[A]true
[B]false
[C]error
[D]undefined

Show Answer

701). What will be the output of the following JavaScript code?

[A]false
[B]true
[C]error
[D]undefined

Show Answer