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