Time remaining
:
:
Test Status
JSJQUERYTEST4
Ques 1 :
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
(A) Client-side
(B) Server-side
(C) Local
(D) Native
Ques 2 :
If you pass less number of parameters than the expected number of parameters to a function, the missing parameters get assigned the value __.
(A) null
(B) undefined
(C) Syntax Error
(D) None of the above
Ques 3 :
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 4 :
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 5 :
How to determine whether a function exists by using the typeof operator?
var square = function(number1, number2) { return number1 + number2 };
(A) typeof square == 'function'
(B) typeof square == 'object'
Ques 6 :
How does JavaScript store dates in a date object?
(A) The number of milliseconds since January 1st, 1970
(B) The number of days since January 1st, 1900
(C) The number of seconds since Netscape's public stock offering.
(D) None of the above
Ques 7 :
Look at the following selector: $("div p"). What does it select?
(A) All div elements with a p element
(B) All p elements inside a div element
(C) The first p element inside a div element
Ques 8 :
Which of the following attribute can hold the JavaScript version?
(A) language
(B) script
(C) version
(D) none of the above
Ques 9 :
Which of the following are different ways to create a function?
(A) function [name]([param1] [, param2] [..., param3]){ statements }
(B) var [name] = function ([param1] [, param2] [..., param3]){ statements }
(C) new Function (arg1, arg2, ... argN, functionBody)
(D) All of the above
Ques 10 :
Is JQuery a W3C standard?
(A) No
(B) Yes
Ques 11 :
What is the correct JavaScript syntax to write "Hello World"?
(A) System.out.println("Hello World")
(B) println ("Hello World")
(C) document.write("Hello World")
(D) response.write("Hello World")
Ques 12 :
What is an array-like object containing the arguments passed to the currently executing function.
(A) arguments
(B) function
(C) args
(D) None of the above
Ques 13 :
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 14 :
______ 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 15 :
Is it valid to nest functions in JavaScript?
(A) Yes
(B) No
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 :
Which of the following navigator object properties is the same in both Netscape and IE?
(A) navigator.appCodeName
(B) navigator.appName
(C) navigator.appVersion
(D) None of the above
Ques 18 :
What is the use of a return statement in a function?
(A) Returns the value and continues executing rest of the statements
(B) Returns the value and stops the program
(C) Returns the value and stops executing the function
(D) Stops executing the function and returns the value
Ques 19 :
Look at the following selector: $(":disabled"). What does it select?
(A) All elements that does not contain the text "disabled"
(B) All hidden elements
(C) All elements containing the text "disabled"
(D) All disabled input elements
Ques 20 :
Which of the following way can be used to indicate the LANGUAGE attribute?
(A) <SCRIPT LANGUAGE="JavaScriptVersion">
(B) <SCRIPT LANGUAGE="JavaScriptVersion">
(C) <SCRIPT LANGUAGE="JavaScriptVersion">JavaScript statements</SCRIPT>
(D) <SCRIPT LANGUAGE="JavaScriptVersion"!> JavaScript statements</SCRIPT>
Submit Answer
Don't Refresh the Page !! ...