HTML5 Server-Sent Events - MCQs
HTML5 Server-Sent Events - MCQs
1) A server side script should send Content-type header specifying the type text/event-stream as.A) print "Event: server-time\n";
B) print "Content-Type: text/event-stream\n\n";
C) Both A & B
D) None of the above
View Answer / Hide AnswerANSWER: B) print "Content-Type:text/event-stream\n\n";
2) Server-Sent Events does not allow a web page to get updates from a server.A) True
B) False
View Answer / Hide Answer3) Which browser does a server-sent event does not support.A) Chrome
B) Mozilla
C) Internet explorer
D) Opera
View Answer / Hide AnswerANSWER: C) Internet explorer
4) Which event will be used when a connection to the server is opened.A) onopen
B) onmessage
C) onerror
D) None of the above
View Answer / Hide Answer5) Which version of opera browser was fully supported by Server-Sent Events?A) 9.5
B) 10.5
C) 11.5
D) 8.5
View Answer / Hide Answer6) A server-sent event is when a web page automatically gets updates from a server.A) True
B) False
View Answer / Hide Answer7) A server-sent event is when a web page automatically gets updates from a server.From the following give the examples of server-sent events.A) Facebook/Twitter updates
B) stock price
C) news feeds, sports results
D) All the mentioned above
View Answer / Hide AnswerANSWER: D) All the mentioned above
8) The Server-Side Events supports which of these browsers.A) chrome
B) Mozilla
C) opera
D) All the mentioned above
View Answer / Hide AnswerANSWER: D) All the mentioned above