1. Prototype is considered what kind of framework?
2. Date class is an extension to the built-in Date object and has two instance methods:
3. Which of the following is not a targeted platform for development?
4. Prototype.K(43560) returns what?
5. What is the result of having the prototype of the native browser objects extended?
6. Which code segment has been written using Element#on?
7. How can you get access to the DOM element using Prototype?
8. What is the correct syntax for a string of key-value pairs?
9. DOM is an acronym for?
10. The dollar sign method $() returns what?
11. What is JSON's meaning and purpose?
12. Which of these is NOT a namespace in PrototypeJS? Event Abstract Number Ajax Enumerable Class Hash
13. The IE properties, offsetWidth and clientHeight along with computed CSS are able to measure elements. Why not use them?
14. If you want to create a hash, which utility would you use?
15. Instance method String#extractScripts():
16. To make a contribution of patches or tests to prototypejs.org, you may NOT need:
17. Internet Explorer doesn't allow the extension of what onto NodeList.prototype?
18. If you wanted to extend all elements with an additional method to do 'foo' and you have already created the method foo() how would you add it?
19. Select the wrong JavaScript-related MIME-types that handled by Prototype
20. Do Element.Layout#get and Element#measure work together?
21. Instance method String#evalJSON():
22. What object is informed about every AJAX request?
23. After editing your browser script to work with Prototype extensions, what coding can you add to the end to make it function more solidly?
24. What is the value of t at the end of this code snippet? var t = 1; $R(0,100,true).each(function(){ t++; }); console.log(t);
25. Which namespace is not typically used directly but mixed in to other namespaces?
26. Element#on has what distinct and beneficial features in Prototype 1.7?
27. How can you inherit from a Storage class?
28. Which of the following is not an example of an AJAX callback?
29. What code will return an instance of Element.Layout?
30. How would you wait for the DOM to be loaded so that you can start manipulating the page with Javascript?
31. What solution has Prototype 1.7 introduced to provide a more concise API?
32. In the context of Prototype, “safe” means that AJAX will function how?
33. Lets say you have an array with name myArray. How would you organize a loop?
34. Element#measure(property) gives:
35. By using the Element#on object in Prototype event API, what benefit is being gained?
36. When using data from an untrusted source, it should be sanitized. What does this entail?
37. If your data is not an instance of an object and you invoke the toJSON method, where should the syntax: toJSON() be located in the string?
38. What is the alternative of Element.extend() function in Prototype?
39. You have a class that inherits from a parent class. How do you call a parent version of a class method from within a child class method of the same name?
40. The actual Ajax requests are made by creating instances of
41. Evaluate the following statement: Hash is a set of key/value pairs with Element.Layout subclass. For convenience a developer can use #H() alias.
42. (42).toPaddedString(4) returns what?
43. What object is used to parse JSON?
44. How would you remove a class named 'removeclass' from an element?
45. Which four utilities does Prototype use?
46. How to create (define) a class with the name Storage in Prototype Javascript framework?
47. How to receive width of an element with id='div1' in pixels?
48. Prototype 1.6 introduced Element.Layout, which can be used for retrieving element measurements
49. "data-my-element-info-t".camelize() returns what?
50. Evaluate the following statement: Function class is an extension of a built-in Function object and has no class methods of its own.
51. If you wanted to make Prototype extensions functional in Internet Explorer, what would you use?
52. How can you create an instance of class Storage which has one parameter in constructor?
53. What is the right syntax of using Element#observe for the click event?
54. Method "on()" of Event class can be used to set up event handlers, with or without event delegation. What is not true about Event.on?
55. Which callback takes precedence: on<HTTP RESPONSE CODE>, onFailure, or onSuccess?
56. What property stores the active Ajax requests?
57. To use JSON with AJAX, what must be invoked on the transport's responseText property?
58. DOM methods are mostly encapsulated by what object?
59. $w is responsible for?
60. Despite DOM elements having Prototype extensions built-in, will they function in Internet Explorer?
61. What is the subclass of Ajax.Request, if any?
62. Why would it be beneficial to use an array in Prototype?
63. How would you create a new div element and insert it as the last child of the body?
64. Utilities $A and $R create an array and ObjectRange object. What will be their results given the following string; $A($R('a', 'e')) ?
65. Prototype JS framework with version 1.6.0 defines two additional class properties:
66. Why is event delegation important in Prototype?
67. When writing custom DOM methods, what must be placed as the first argument?
68. Using Element.Layout you can measure elements that are hidden:
69. Which method that is not available to convert to JSON in Prototype
70. How would you create an AJAX call to get the url '/echomyid'?
71. What object would you use in Prototype, and what are the benefits of using said object?
72. How can you get a copy of the array without any null or undefined values?
73. The code: var json = transport.responseText.evalJSON(true); will check for what?
74. There is an object in Prototype that is informed about every Ajax request: Ajax.Responders. Is it possible to register callbacks that will fire on a state of ANY Ajax.Request?
75. What do you use to add your own custom DOM methods?
76. Which PrototypeJS method of functions have become a native method of functions?
77. Class method String#gsub:
78. Which class serves a purpose of creation an observer on an element that listens for a particular event, that element's descendants?
79. The 'onSuccess' callback for any of the Ajax method will auto-convert responses to JSON if what takes place?
80. When using Element#on as opposed to Element#observe, what is different about its return value?
81. -background-color'.camelize(); returns:
82. How would you loop over an array of elements (myArray) and set the value of each element to '1'?
83. Is there any utility to split a string into Array?
84. Here is a snapcode: ' bmw, bugatti & luxury'.scan(/\w+/, alert); How many alert dialongs will you see after executing given snapcode?
85. Which class serves the purpose of sophisticated string interpolation?
86. If you want to create a distribution tarball in the pkg/ directory, what package would you run?
87. Is it required to use Element#on exclusively?
88. After being encapsulated by Element.Methods, what object is it copied over to?
89. Lets assume we are calling str.dasherize();. What should be a value of "str" to recieve "one-two-three" string as a result?
90. What is the shortcut to get a Form element value?
91. Is it possible to add a method to class "on-the-fly" in Prototype 1.7, and if so how?
92. What is printed in the console from the below statement console.log("PrototypeJS".blank());
93. How would you select all of the child elements of a specific element that match a CSS selector (.myclass) ?
94. Select the wrong callback function of Prototype's AJAX object
95. To make a contribution, a developer might need to make a clone of Prototype project from:
96. Evaluate the 4 following premises: 1. RegExp is an extension to the built-in RegExp object 2. Ir has one class method and one instance method 3. instance method is an alias of some native RegExp method 4. instance method returns string value as a result.
97. Which of the given examples returns "false"?