Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
var a = 5;
function first() {
a = 6;
}
function second() {
alert(a);
}
Assuming I call these functions in order, what value gets alerted?
(A) 5
(B) 6
(C) null
(D) undefined
Ques 2 :
CDN stands for_______
(A) Content Distribution Network
(B) Common Distribution Network
(C) Collective Distribution Network
(D) None of these
Ques 3 :
The __ operator determines the type of a given object.
(A) typeof
(B) void
(C) instanceof
(D) delete
Ques 4 :
Which JQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
(A) switchClass()
(B) switch()
(C) toggleClass()
(D) altClass()
Ques 5 :
Which tag(s) can handle mouse events in Netscape?
(A) <img>
(B) <a>
(C) <br>
(D) none of the above
Ques 6 :
______ tag is an extension to HTML that can enclose any number of JavaScript statements.
(A) SCRIPT tag
(B) BODY tag
(C) HEAD tag
(D) TITLE tag
Ques 7 :
var array1 = ["value"]; var array2 = ["value"]; array1 == array2
(A) True
(B) False
Ques 8 :
What is the difference between .width() and .outerWidth()?
(A) The methods are basically the same. The only difference is that .width() returns a number, whereas outerWidth() a string.
(B) width() returns the computed width of the element, while outerWidth() returns the width plus all the margins and paddings.
(C) No difference. width() is a shorthand alias for outerWidth()
Ques 9 :
JQuery ______is used to set/return arbitrary data to/from an element.
(A) .data()
(B) .item()
(C) .all
(D) All of these
Ques 10 :
Which built-in method returns the calling string value converted to upper case?
(A) toUpperCase()
(B) toUpper()
(C) changeCase(case)
(D) None of the above.
Ques 11 :
Which of these is NOT a valid comment in JavaScript?
(A) // This is a comment
(B) /* This is a comment. */
(C) /* This is a comment
(D) <!-- This is a comment. -->
Ques 12 :
Is it possible to use JQuery together with AJAX?
(A) Yes
(B) No
Ques 13 :
function() {
if(true) {
var a = 5;
}
alert(a);
}
Ok, so what would be the value alerted by this function?
(A) 0
(B) 5
(C) null
(D) undefined
Ques 14 :
$('#pcds').attr('disabled', true); these code is used for the ______ form element.
(A) enable
(B) disable
Ques 15 :
Is JQuery a library for client scripting or server scripting?
(A) Client scripting
(B) Server scripting
Ques 16 :
Is it valid to nest functions in JavaScript?
(A) Yes
(B) No
Ques 17 :
Which is the correct way to write a JavaScript array?
(A) var txt = new Array(1:"tim",2:"kim",3:"jim")
(B) var txt = new Array:1=("tim")2=("kim")3=("jim")
(C) var txt = new Array("tim","kim","jim")
(D) var txt = new Array="tim","kim","jim"
Ques 18 :
Which types of image maps can be used with JavaScript?
(A) Server-side image maps
(B) Client-side image maps
(C) Server-side image maps and Client-side image maps
(D) None of the above
Ques 19 :
How to add properties to object?
var car = {};
(A) car.make = "Ford";
(B) car["make"] = "Ford";
(C) var car = {make: Ford};
(D) All of the above
Ques 20 :
Which of the following function of Array object returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found?
(A) indexOf()
(B) lastIndexOf()
(C) join()
(D) map()
Submit Answer
Don't Refresh the Page !! ...