Answer these 90+ PrototypeJS Javascript Framework MCQs and assess your grip on the subject of PrototypeJS Javascript Framework.
Scroll below and get started!
A. An HTML framework.
B. A JavaScript framework for developing dynamic web applications.
C. A network framework.
D. A programming framework.
A. Correct
B. Correct. In addition to the given statement it has one class method.
C. The second statement is incorrect
D. The first statement is incorrect
A. Apple Safari
B. Mozilla Firefox
C. Microsoft Internet Explorer
D. Netscape Navigator
A. 1
B. 5
C. 43560
D. 250
A. All DOM elements have Prototype extensions built-in.
B. It is now possible to add Prototype extensions.
C. It is now possible to add Dom elements.
D. It is now possible to add Prototype elements.
A. $$('#items li').each( function(item) {
B. $("messages").observe("click", function(event) {
C. $("messages").stopObserving("click", this.clickHandler);
D. $("messages").on("click", "a.comment_link", function(event, element) {
A. $(id), where id is a string.
B. $(id) or $(element), where id is a string and element is an Element itself.
C. $$(id) where id is a string.
D. $(element) where element is an Element itself.
A. &limit=12
B. example&limit=12company=
C. company=example&limit=12
D. company=limit=12
A. Document Oriented Model
B. Document Order Maintenance
C. Direct Object Management
D. Document Object Model
A. Nothing
B. An DOM element that matches the id passed extended with Prototype methods
C. A list of DOM elements that match the CSS selector passed
D. Boolean true
E. An document element that matches the id passed
A. JavaScript Order Notion, and JSON is a lightweight data-interchange format.
B. JavaScript Oblique Nation, and JSON is a lightweight data-interchange function.
C. JavaJava Orbit Notation, and JSON is a lightweight data-conversion format.
D. JavaScript Object Notation, and JSON is a lightweight data-interchange format.
A. Hash
B. Class
C. Number
D. All of these are namespaces in PrototypeJS
E. Abstract
A. The version of Prototype has changed so they are incompatible.
B. IE properties struggle with “offset” vs. “client” dimensions, and CSS units need to be converted to be compatible.
C. They are both outdated.
D. There is no problem in using them since they are powerful and accurate parameters.
A. $Q()
B. $Z()
C. $F()
D. $H()
A. Extracts the content of any <script> blocks present in the html page and returns them as a string.
B. It evaluates the scripts
C. Returns boolean
D. Extracts the content of any <script> blocks present in the html page and returns them as an array of strings.
A. Rake library
B. Code editor
C. Gnu Linux distributive installed on the machine you are working on
D. A recent version of Ruby
A. NodeList
B. Numerable
C. Enumerable
D. Numerical
A. $.fn.foo = foo;
B. Element.addMethods({'foo' : foo});
C. $('emelent').foo() = foo
A. application/x-ecmascript
B. text/javascript
C. application/ecmascript
D. application/ext-javascript
A. Not currently, but in the next version of Prototype.
B. Yes.
C. Only in the previous version of Prototype.
D. No.
A. Does not exist, it is a class method
B. Evaluates the string as JSON and returns the resulting object
C. Evaluates the string as JSON and returns a string
D. Evaluates the string as JSON and returns an integer
A. Responders.Ajax
B. Ajax.Element
C. Ajax.Responders
D. Element.Ajax
A. Element.extend(my_div)
B. (my_div)Element.extend
C. Element.extend
D. Element.(my_div)
A. 1
B. 101
C. 100
D. true
E. None of these
A. String
B. Enumerable
C. Template
D. Array
E. Number
A. Better support for event deletion and extended element handler removal.
B. Neglibable support for object delegation and sanctified element handler removal.
C. Better support for event delegation and simplified event handler removal.
D. Better support for element delegation and simplified event removal.
A. var Descendant = new Class(Storage, { newmethod: function() { } });
B. There is no class-inheritance in the Prototype javascript framework.
C. After defining a Descendant using Class.create() method, inherit from class Storage by calling Descendant.inherits() method.
D. After defining a descendant using Class.create() method, inherit from class Storage by using Object.extend() method.
A. onComplete
B. onSuccess
C. onInteractive
D. onException
A. var layout = $('troz').getLayout();
B. var layout.getLayout();
C. $('#troz').getLayout();
D. Get.Layout();var layout = $('troz')
A. $(document).ready(function(){ //code here });
B. document.ready(function(){ //code here });
C. document.observe('dom:loaded',function(){ //code here });
A. Element.Limit
B. Event.Layout
C. Element.Laundry
D. Element.Layout
A. On a single browser.
B. Inter-browser.
C. Cross-browser
D. On no browser at all.
A. Using "for" statement or Array#iter iterator.
B. Using "for" statement or Array#each iterator.
C. Using Array#prototype iterator or "for" statement.
D. Using "for" statement only, Array#each is not an iterator.
A. value(not only in pixels) of the screen dimension specified by property
B. pixel value of an element's dimension specified by property
C. nothing because it does not exist
D. pixel value of the screen dimension specified by property
A. Concisely written code and event delegation from outside a container.
B. Concisely written code and event delegation from within a container.
C. Obtusely written code and event delegation from within an object.
D. Negligible written code and object delegation from within a container.
A. Blocking users from entering any input.
B. Removing malicious data from user input.
C. Removing all user input.
D. Increasing malicious data in user input.
A. At the beginning.
B. At the end.
C. In the middle.
D. Nowhere in the string.
A. The dollar function $()
B. addClassName()
C. createElement()
D. appendChild()
A. function($parent){ $parent() }
B. function($super){ $super() }
C. function(){ parent() }
D. function(parent){ parent() }
A. Ajax.Response object
B. XmlHttpRequest object
C. Ajax.Request object
D. Ajax.apicall object
A. More than one statements are incorrect.
B. Hash is a set of key/value pairs, has Element.Layout subclass but there is no aliases defined for Hash in Prototype.
C. One statement is incorrect.
D. Correct
A. 0042
B. 042
C. 4200
D. 42
A. eval#StringJSON
B. String#eval
C. String#evalJSON
D. String#evalJava
A. There is not a method to remove class names
B. $('element').removeClassName('removeclass');
C. $('#element').className.replace('removeclass','');
D. $('#element').removeClass('removeclass');
A. $P $w $H $Q
B. $S $P $Q $R
C. $A $w $H $R
D. $B $w $Z $R
A. var Storage = new Object();
B. var Storage = Class.create();
C. className = function() {}; Storage = new className();
D. var Storage = Class.extend({ init: function(item){ this.item = item; }, doSomething: function() { } });
A. by using $('div1').width; or by using $('div1').getStyle('width');
B. by using $('div1').offsetWidth; or by using $('div1').getStyle('width');
C. by using $('div1').clientWidth; or by using $('div1').getStyle('width');
D. by using #('div1').offsetWidth; or by using #('div1').getStyle('width');
A. Correct
B. The first statement is incorrect, right version of introduction is 1.7. Second statement is correct for 1.7
C. Both statements are incorrect
D. The second statement is incorrect
A. dataMyElementInfoT
B. A javascript error
C. MyElementInfoT
D. DataMyElementInfoT
E. myelementinfot
A. Incorrect
B. Correct
C. Correct for Prototype 1.7.2, incorrect for Prototype 1.6.0
D. It is an extension of build-in Function object but has at least one class method of its own