___ extends event with all of the methods contained in Event.Methods.
Event.extend 0%
Event.include 0%
Event.inherit 0%
There is no method to do so. 0%
__________ allows more than one effects to occur at the same time.
Effect.Parallel 0%
Effect.Asynchronous 0%
Effect.run 0%
There is no such method. 0%
$("id1").wrap("div", {"class" : "container"});
This code snippet will wrap id1 in a div tag. 0%
This code snippet will wrap div tags that have "container" class in id1 element. 0%
This code snippet is invalid. 0%
Consider the following code snippet: 1 $('id1').observe("click", function() { 2 new Effect.Highlight("id1", {startcolor: '#ff9999', endcolor: '#ffffff'}); 3 return false; 4 }); If you click it on...
Change the second line to: new Effect.Highlight("id1", {startcolor: '#ff9999', endcolor: '#ffffff', queue: 'end'}); 0%
Change return false; to return true; 0%
Change the first line to $('id1').observe("doubleclick", function() { 0%
Consider the following code snippet: Element.addMethods({ : show: function(element) { : alert("This is prototype."); } }); What does this code snippet do?
It adds show method to all elements. 0%
It adds show method to "element" element. 0%
This code snippet is invaid. 0%
Consider the following code snippet: new Ajax.InPlaceEditor("id1", "save.jsp"); What is the request parameter name of id1 element on server When its value changes?
id1 0%
InPlaceEditor 0%
value 0%
This code snippet is incorrect. 0%
Consider the following code snippet: new Effect.Scale("id1", arg2); Which attribute(s) is id1 element scaled to?
width 0%
height 0%
font 0%
border 0%
Consider the following code snippet: new Effect.Scale(agr1, arg2); What is arg2 parameter?
Percentage to scale 0%
Number of times to scale 0%
Width 0%
Height 0%
Consider the following code snippet: Sortable.create("id1"); Assume that nodes which id: id11, id12 are children of id1 and nodes which id: id111, id112 are children of id11. Which of the followi...
id11 and id12 0%
id111 and id112 0%
all 0%
none 0%
Consider the following code snippet: var a = {framework: "Prototype", version: "1.6.1"}; var b = a.toObject(); alert(b.version); What does the alert box display?
1.6.1 0%
null 0%
undefined 0%
This code snippet causes an error. 0%
var aWolf = new Wolf("Yellow"); 0%
var aWolf = new Wolf("Wild", false, "Yellow"); 0%
var aWolf = new Wolf($super, "Yellow"); 0%
var aWolf = new Wolf(Animal, "Yellow"); 0%
Consider the following code snippet: var template = new Template("This is #{framework} version #{version}"); var a = {framework: "Prototype", version: "1.6.1"} var b = template.evaluate(a); What ...
This is Prototype version 1.6.1 0%
This is #{framework} version #{version} 0%
This is 1.6.1 version Prototype 0%
This code snippet is invalid. 0%
Elements and ids can be interchangeable in function calls, if a function expects a document id.
Function.bind(object); will replace ___ variable in function by "object".
this 0%
document 0%
window 0%
function 0%
How can you add class to id1 element?
id1.addClass("className"); 0%
id1.addClassName("className"); 0%
$("id1").add("className"); 0%
$("id1").setClassName("className"); 0%
How can you stop an event from propagating?
Event.stop 0%
Event.preventDefault 0%
Event.stopPropagation 0%
Event.preventPropagation 0%
If the server response time is slow, you may consider increasing the ___ option parameter to reduce the response time.
frequency 0%
wait 0%
interval 0%
If you want to make an Ajax request using xml instead of the regular URL-encoded format, which option parameter do you have to change?
contentType 0%
method 0%
encoding 0%
It is not possible to send request using xml. 0%
PeriodicalUpdater updates an element ___.
at the given frequency. 0%
with the specified number of times. 0%
at the given hours. 0%
This function does not exist. 0%
The callback function in options of Ajax.Autocomplete() is called ___ the request is actually made.
The difference between Effect.SlideUp and Effect.BlindUp is that ___.
Effect.BlindUp hides element from the bottom first, whereas Effect.SlideUp hides element from the top first. 0%
Effect.SlideUp moves the element up, whereas Effect.BlindUp hides the element. 0%
Effect.BlindUp removes the element, whereas Effect.SlideUp hides the element. 0%
There is no difference. 0%
The number of arguments of Try.these() are ___.
2 0%
4 0%
6 0%
infinite 0%
The time to complete an effect generally depends on the speed of the computer.
What does $F(element).getValue() return?
It returns the current value of a form control. 0%
It returns the value of function $F. 0%
It returns the value of any given element. 0%
This function is invalid. 0%
What does cleanWhiteSpace method of element do?
It removes all of element's child text nodes that contain only whitespace. 0%
It removes whitespace from element. 0%
It removes whitespace from the content of all child nodes. 0%
This method does not exist. 0%
What does identify method of element do?
It returns element's ID. If element does not have an ID, one is generated, assigned to element, and returned.. 0%
It returns the id of that element. 0%
It generates an id for that element. 0%
This method does not exist. 0%
What does match method of element do?
It checks whether this element matches the given css selector. 0%
It checks whether this element matches the given id selector. 0%
It checks whether this element matches the given css or id selector. 0%
This method does not exist. 0%
What does the following statement do? new Ajax.Updater("el1", "/index");
It updates element that has "el1" id with the content response from /index page. 0%
It updates elements that have "el1" class with the content response from /index page. 0%
It updates "el1" element content with "/index" . 0%
This statement is invalid. 0%
What does the following statement return? fom1.findFirstElement();
The first non-hidden, non-disabled control of form1 form. 0%
The first control of form1 form. 0%
The first hidden control of form1 form. 0%
This statement is invalid. 0%
What does the statement $('item1', 'item2', 'item3'); return?
A collection of elements with item1, item2, item3 ids. 0%
A collection of elements that have one of the item1, item2, item3 classes. 0%
This statement is invalid. 0%
What is the difference between the names of native browser events and prototype custom events?
Custom events have a colon (:) in their name. 0%
Native browser events have a colon (:) in their name. 0%
Native browser event names are case-sensitive. 0%
There are no differences. 0%
What is the result of "this is".include("prototype"); statement?
this is prototype 0%
prototype this is 0%
true 0%
false 0%
What is the result of "thisisprototype".camelize(); statement?
What is the result of 10.toColorPart(); statement?
0a 0%
10 0%
1010 0%
This statement causes an error. 0%
What is the result of b in the following code snippet? var a = {name: "Prototype", version: "1.6.1"} var b = Object.values(a);
["Prototype", "1.6.1"] 0%
{name: "Prototype", version: "1.6.1"} 0%
[[name, "Prototype"], [version, "1.6.1"]] 0%
[{name: "Prototype"}, {version: "1.6.1"}] 0%
What is the result of the following code snippet? el.insert("«span»Prototype«/span»");
«span«Prototype«/span« will be the last child of el. 0%
«span«Prototype«/span« will be the first child of el. 0%
«span«Prototype«/span« will replace innerHTML of el. 0%
This code snippet is invalid. 0%
What is the result of the following code snippet? [1, 2, 3, 4, 5].detect(function(n) {return n % 3});
What is the result of the following code snippet? [1, 2, 3, 4, 5].map( function(num) { return num * num; } );
[1, 4, 9, 16, 25] 0%
55 0%
25 0%
This code snippet causes an error. 0%
What is the result of the following code snippet? [1, null, 2, false, 3].partition();
[[1, 2, 3], [null, false]] 0%
[1, 2, 3, null, false] 0%
[1, 2, 3] 0%
[null, false, 1, 2, 3] 0%
What is the result of the following function? function a() { var x = 10; return x.toPaddedString(4); }
0010 0%
000a 0%
10.00 0%
This function is invalid. 0%
What is the valid range of $R(1, 10, true);?
1 to 9 0%
1 to 10 0%
2 to 9 0%
2 to 10 0%
What is the value of $A($R('ab', 'ah'));?
["ab", "ac", "ad", "ae", "af", "ag", "ah"] 0%
["ac", "ad", "ae", "af", "ag"] 0%
["ab", "ac", "ad", "ae", "af", "ag"] 0%
This statement is invalid. 0%
What is the value of b in the following code snippet? var a = ["this", "is", "prototype"]; var b = a.inject(0, function(c, d) { return c + d.length; });
15 0%
9 0%
150 0%
This code snippet is invalid. 0%
What will be returned if Event.findElement("click", "div"); cannot find any elements that match the specified tag?
document 0%
null 0%
undefined 0%
The element that has registered click event handler. 0%
When is the Ddom:loaded event fired?
Before the DOM tree is loaded. 0%
After the DOM tree is loaded, before window's load event. 0%
After load event. 0%
After an Ajax request finishes. 0%
Which of the following code snippets changes properties of element's css?
$('id1').morph("height: 200; width: 200;"); 0%
$('id1').morph("height: 200", "width: 200"); 0%
$('id1').morph("height: 200").morph( "width: 200"); 0%
$('id1').morph({"height" =» "200", "width" =» "200"); 0%
Which of the following code snippets is the proper way to define a class in prototype?
var Point = Class.create({initialize: function(x, y) {this.x = x; this.y = y;}}); 0%
var Point = function(x, y) {this.x = x; this.y = y;} 0%
var Point = Class({Point: function(x, y) {this.x = x; this.y = y;}}); 0%
class Point {function Point(x, y) {this.x = x; this.y = y;}}; 0%
Which of the following code snippets is the proper way to define a class that inherits another class?
var Dog = Class.create(Animal, {}); 0%
var Dog = Class.inherit(Animal, {}); 0%
var Dog = Class.extend(Animal, {}); 0%
var Dog = Animal.extend({}); 0%
Which of the following code snippets moves id1 element?
new Effect.Move("id1", {0, 0, 'relative'}); 0%
"id1".Move("x: 0; y: 0"); 0%
"id1".Move(x: 0, y: 0, "left"); 0%
new Effect.Move("id1", {x: 0, y: 0}); 0%
Which of the following effects are core effects?
Effect.Appear 0%
Effect.Opacity 0%
Effect.Tween 0%
Effect.Move 0%
Which of the following element methods finds siblings of that element?
sibling 0%
adjacent 0%
children 0%
There is no such method. 0%
Which of the following form's functions allows you to submit a form using Ajax?
request 0%
call 0%
get 0%
post 0%
Which of the following functions allows/allow you to register an event to an element?
Event.observe 0%
Element.observe 0%
Event.register 0%
Element.register 0%
Which of the following functions converts html special characters to their entity equivalents?
escapeHTML 0%
escape 0%
removeHTML 0%
convertHTML 0%
Which of the following functions fires a custom event?
Event.fire 0%
Event.execute 0%
Event.run 0%
There is no such method. 0%
Which of the following functions is used to call the initialize method of the parent class?
$super 0%
initialize 0%
Method has the same name as parent class name. 0%
It is not possible to call the initialize method of the parent class. 0%
Which of the following functions returns the element that occurred?
Event.element 0%
Event.target 0%
Element.target 0%
Element.eventTarget 0%
Which of the following functions updates an existing hash?
update 0%
merge 0%
delete 0%
remove 0%
Which of the following is the result of "this_is_prototype".dasherize(); statement?
this-is-prototype 0%
thisisprototype 0%
this is prototype 0%
Which of the following is/are a valid callback of core effects?
beforeStart 0%
afterSetup 0%
beforeUpdate 0%
afterFinish 0%
Which of the following methods allows you to add a new instance of method to a class after that class has been defined?
initialize 0%
constructor 0%
Method has the same name as class name. 0%
There is no constructor of prototype class. 0%
Which of the following methods allows you to add class to a class after that class is defined?
Class.addMethods 0%
Class.includeMethods 0%
Class.add 0%
Class.include 0%
Which of the following methods allows you to set element attributes?
setAttribute 0%
setAttributes 0%
writeAttribute 0%
writeAttributes 0%
Which of the following methods allows you to set many style attributes in one call?
setStyle 0%
setStyles 0%
setAttribute 0%
setAttributes 0%
Which of the following methods can you use to fade in an element?
Effect.FadeIn(); 0%
Effect.Fade(); 0%
Effect.Show(); 0%
Effect.Appear(); 0%
Which of the following objects allows you to monitor Ajax activities?
Ajax.Responders 0%
Ajax.Monitor 0%
Ajax.Response 0%
There are no such objects. 0%
Which of the following options is/are valid element(s) of the function- Form.Element.present(element);
input 0%
textarea 0%
button 0%
This function is invalid. 0%
Which of the following parameters is/are valid parameter(s) of Effect.Highlight() method?
startColor 0%
end-color 0%
restorecolor 0%
border-color 0%
Which of the following properties holds the number of active requests?
Ajax.activeRequestCount 0%
Ajax.numberActiveRequests 0%
Ajax.activeRequests 0%
There are no such properties. 0%
Which of the following statements displays prototype version of Prototype?
Prototype.Version 0%
$.Version 0%
VersionOf("Prototype") 0%
VersionOf($); 0%
Which of the following statements is valid?
Object.isUndefined(a); 0%
a.isUndefined(); 0%
isUndefined(a); 0%
isDefined(a); 0%
Which of the following tags can make element draggable?
p 0%
span 0%
div 0%
li 0%
Which of the following ways can you use to check whether prototype is loaded or not?
typeof(Prototype) === "object" 0%
typeof(Prototype) == "String" 0%
typeof(Prototype) == "function" 0%
There is no way to do that. 0%
Which of the given options is the result of the following code snippet? new Builder.node("div", {className: "error"}, "Error");
Change innerHTML of div tags that have "error" class to Error. 0%
Change class of div tags that contain "Error" to "error". 0%
Create a div tag that has "error" as class name and contains "Error" text. 0%
This code snippet is invalid. 0%
Which of the given values can be the value of arg in the following code snippet? $("id1").insert(arg);
"<span>Prototype</span>" 0%
$("id2"); 0%
new Element("span", "Prototype"); 0%
You ___ create instances of Ajax.Response yourself.
do not need to 0%
have to 0%
can not 0%
are not allowed to 0%
You have a local autocomplete like the following: new Autocompleter.Local(arg1, arg2, arg3, arg4); Assume that you want to create a local autocomplete text field. You want to display all possible...
arg1 0%
arg2 0%
arg3 0%
arg4 0%