Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
When referencing an HTML element preceded by a # (pound or hash), what javascript function is this equivalent to?
(A) getElementById
(B) getElementByClassName
(C) getElementByTagName
(D) None of the above
Ques 2 :
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 3 :
Which of the following jQuery method remove all or the specified class(es) from the set of matched elements?
(A) removeClass( class )
(B) removeStyleClass( class )
(C) removeCSSClass( class )
(D) None of the above.
Ques 4 :
JQuery donā??t have DOM traversing capability.
(A) True
(B) False
Ques 5 :
The .each method is the more convenient form of _______ loop.
(A) do while
(B) for
(C) for each
(D) None of these
Ques 6 :
The __ operator determines the type of a given object.
(A) typeof
(B) void
(C) instanceof
(D) delete
Ques 7 :
$('p').click(function(){
// Code here
});
Inside the commented section, the value of the variable this is a..
(A) Array
(B) String
(C) Reference to the DOM node
(D) jQuery object
Ques 8 :
Which of the following function of Boolean object returns a string of either 'true' or 'false' depending upon the value of the object?
(A) toSource()
(B) toString()
(C) valueOf()
(D) None of the above.
Ques 9 :
What should appear at the very end of your JavaScript?
The
(A) The <script>
(B) The </script>
(C) The END statement
(D) None of the above
Ques 10 :
Why so JavaScript and Java have similar name?
(A) JavaScript is a stripped-down version of Java
(B) JavaScript's syntax is loosely based on Java's
(C) They both originated on the island of Java
(D) None of the above
Ques 11 :
Which of the following is a server-side JavaScript object?
(A) FileUpLoad
(B) Function
(C) File
(D) Date
Ques 12 :
What are variables used for in JavaScript Programs?
(A) Storing numbers, dates, or other values
(B) Varying randomly
(C) Causing high-school algebra flashbacks
(D) None of the above
Ques 13 :
What is the output of the following code snippet?
parseFloat("9.9Hello")?
(A) 9
(B) 9.9
(C) 99
(D) 9.9Hello
Ques 14 :
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 15 :
Which tag(s) can handle mouse events in Netscape?
(A) <img>
(B) <a>
(C) <br>
(D) none of the above
Ques 16 :
Which JQuery method is used to remove selected elements?
(A) detach()
(B) remove()
(C) Both methods can be used
(D) None of the above
Ques 17 :
To select all the elements in the page which symbol do we have to used?
(A) #
(B) !
(C) $
(D) *
Ques 18 :
<script language="javascript">
function x()
{
document.write(2+5+"8");
}
</script>
(A) 258
(B) Error
(C) 7
(D) 78
Ques 19 :
Look at the following selector: $("p#intro"). What does it select?
(A) All p elements with class="intro"
(B) The p element with id="intro"
Ques 20 :
Is JQuery a library for client scripting or server scripting?
(A) Client scripting
(B) Server scripting
Submit Answer
Don't Refresh the Page !! ...