HTML and CSS Reference
In-Depth Information
Objective review
Which of the following is a valid WebSocket instantiation?
A. wsConnection = new WebSocket(' http://studygroup.70480.com');
B. wsConnection = new WebSocket('tcp://studygroup.70480.com',['soap','xmpp']);
C. wsConnection = new WebSocket('wss://studygroup.70480.com',['soap','xmpp']);
D. wsConnection = new WebSocket('ftp://studygroup.70480.com',['soap','xmpp']);
1.
Which of the following statements properly handles the reception of data from a
WebSocket?
A. wsConnection.onpost = function(msg){..};
B. wsConneciton.onreceive = function(msg){...};
C. wsConnection.onmessage = function(msg){...};
D. wsConnection.ongetdata = function(msg){...};
2.
3. Which list identifies the properties that need to be set up to make an AJAX call?
A. cache , datatype , success
B. url , cache , datatype , success
C. url , datatype , onsuccess
D. url , datatype , oncomplete
Why is wiring up events with jQuery easier?
A. It allows you to assign the event listener to many elements at once via the selector
syntax.
B. There is no difference wiring up events with jQuery versus addEventListener
method.
C. jQuery works more efficiently in a loop.
4.
jQuery allows both named and anonymous functions to be used as event listeners.
D.
 
Search WWH ::




Custom Search