Our experts have gathered these Prototype Programming MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Prototype Programming by answering these 60+ multiple-choice questions.
Get started now by scrolling down!
A. p
B. span
C. div
D. li
A. «span«Prototype«/span« will be the last child of el.
B. «span«Prototype«/span« will be the first child of el.
C. «span«Prototype«/span« will replace innerHTML of el.
D. This code snippet is invalid.
A. $super
B. initialize
C. Method has the same name as parent class name.
D. It is not possible to call the initialize method of the parent class.
A. 1.6.1
B. null
C. undefined
D. This code snippet causes an error.
A. arg1
B. arg2
C. arg3
D. arg4
A. This code snippet will wrap id1 in a div tag.
B. This code snippet will wrap div tags that have "container" class in id1 element.
C. This code snippet is invalid.
A. A collection of elements with item1, item2, item3 ids.
B. A collection of elements that have one of the item1, item2, item3 classes.
C. This statement is invalid.
A. id1
B. InPlaceEditor
C. value
D. This code snippet is incorrect.
A. update
B. merge
C. delete
D. remove
A. at the given frequency.
B. with the specified number of times.
C. at the given hours.
D. This function does not exist.
A. [[1, 2, 3], [null, false]]
B. [1, 2, 3, null, false]
C. [1, 2, 3]
D. [null, false, 1, 2, 3]
A. It removes all of element's child text nodes that contain only whitespace.
B. It removes whitespace from element.
C. It removes whitespace from the content of all child nodes.
D. This method does not exist.
A. Class.addMethods
B. Class.includeMethods
C. Class.add
D. Class.include
A. startColor
B. end-color
C. restorecolor
D. border-color
A. Ajax.activeRequestCount
B. Ajax.numberActiveRequests
C. Ajax.activeRequests
D.
There are no such properties.
A. frequency
B. wait
C. interval
A. sibling
B. adjacent
C. children
D. There is no such method
A. 01234
B. 55555
C. 10
D. Nothing
A. True
B. False
A. Prototype.Version
B. $.Version
C. VersionOf("Prototype")
D.
VersionOf($);
A. width
B. height
C. font
D. border
A. input
B. textarea
C. button
D. This function is invalid.
A. beforeStart
B. afterSetup
C. beforeUpdate
D. afterFinish
A. [1, 4, 9, 16, 25]
B. 55
C. 25
D. This code snippet causes an error.
A. initialize
B. constructor
C. Method has the same name as class name.
D. There is no constructor of prototype class.
A. Custom events have a colon (:) in their name.
B. Native browser events have a colon (:) in their name.
C. Native browser event names are case-sensitive.
D. There are no differences
A. id11 and id12
B. id111 and id112
C. all
D. none
A. 1 to 9
B. 1 to 10
C. 2 to 9
D. 2 to 10
A. Effect.Parallel
B. Effect.Asynchronous
C. Effect.run
D. There is no such method.
A. It adds show method to all elements.
B. It adds show method to
C. This code snippet is invaid.
A. True
B. False
A. Change innerHTML of div tags that have "error" class to Error.
B. Change class of div tags that contain "Error" to "error".
C. Create a div tag that has "error" as class name and contains "Error" text.
D. This code snippet is invalid.
A. Effect.Appear
B. Effect.Opacity
C. Effect.Tween
D. Effect.Move
A. 1
B. 2
C. 3
D. 5
A. Before the DOM tree is loaded.
B. After the DOM tree is loaded, before window's load event.
C. After load event.
D. After an Ajax request finishes.
A. Ajax.Responders
B. Ajax.Monitor
C. Ajax.Response
D. There are no such objects.
A. Event.element
B. Event.target
C. Element.target
D. Element.eventTarget
A. 0010
B. 000a
C. 10.00
D. This function is invalid.
A. contentType
B. method
C. encoding
D. It is not possible to send request using xml.
Consider the following code snippet:
new Effect.Scale(agr1, arg2);
What is arg2 parameter?
A. Percentage to scale
B. Number of times to scale
C. Width
D. Height
A. before
B. after
A. Event.extend
B. Event.include
C. Event.inherit
D. There is no method to do so.
A. Event.stop
B. Event.preventDefault
C. Event.stopPropagation
D. Event.preventPropagation
A. Object.isUndefined(a);
B. a.isUndefined();
C. isUndefined(a);
D. isDefined(a);
A. It returns the current value of a form control.
B. It returns the value of function $F.
C. It returns the value of any given element.
D. This function is invalid.
A. This is Prototype version 1.6.1
B. This is #{framework} version #{version}
C. This is 1.6.1 version Prototype
D. This code snippet is invalid
A. var Dog = Class.create(Animal, {});
B. var Dog = Class.inherit(Animal, {});
C. var Dog = Class.extend(Animal, {});
D. var Dog = Animal.extend({});
A. setStyle
B. setStyles
C. setAttribute
D. setAttributes
A. new Effect.Move("id1", {0, 0, 'relative'});
B. "id1".Move("x: 0; y: 0");
C. "id1".Move(x: 0, y: 0, "left");
D. new Effect.Move(
A. escapeHTML
B. escape
C. removeHTML
D. convertHTML