Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
To enable data tainting, the end user sets the _________ environment variable.
(A) ENABLE_TAINT
(B) MS_ENABLE_TAINT
(C) NS_ENABLE_TAINT
(D) ENABLE_TAINT_NS
Ques 2 :
Which of the following attribute can hold the JavaScript version?
(A) language
(B) script
(C) version
(D) none of the above
Ques 3 :
What is the correct syntax for referring to an external script called " abc.js"?
(A) <script href=" abc.js">
(B) <script name=" abc.js">
(C) <script src=" abc.js">
(D) None of the above
Ques 4 :
_______is use for alternately expand and collapse a page element
(A) .hover()
(B) stopPropagation()
(C) .toggle()
(D) .trigger()
Ques 5 :
What will be output of the following code snippet?
var result = (function(x) {return x*x;}(10));
(A) 10
(B) 100
(C) 20
(D) None of the above
Ques 6 :
______ JavaScript is also called client-side JavaScript.
(A) Microsoft
(B) Navigator
(C) LiveWire
(D) Native
Ques 7 :
Which JQuery method returns the direct parent element of the selected element?
(A) parent()
(B) parents()
(C) ancestor()
(D) ancestors()
Ques 8 :
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 9 :
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>
Ques 10 :
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 11 :
Which JQuery function is used to prevent code from running, before the document is finished loading?
(A) $(document).load()
(B) $(body).onload()
(C) $(document).ready()
Ques 12 :
The .each method is the more convenient form of _______ loop.
(A) do while
(B) for
(C) for each
(D) None of these
Ques 13 :
Which of the following can't be done with client-side JavaScript?
(A) Validating a form
(B) Sending a form's contents by email
(C) Storing the form's contents to a database file on the server
(D) None of the above
Ques 14 :
AJAX stand for____________
(A) Alternate java script and XML
(B) Asynchronous java script and XML
(C) Asynchronous java and XML
(D) None of these
Ques 15 :
The .animate() method comes in ______ forms.
(A) One
(B) Two
(C) Three
(D) Four
Ques 16 :
When a user views a page containing a JavaScript program, which machine actually executes the script?
(A) The User's machine running a Web browser
(B) The Web server
(C) A central machine deep within Netscape's corporate offices
(D) None of the above
Ques 17 :
var city = ["delhi", "agra", "akot", "aligarh"];
console.log(city.sort());
(A) ["agra", "akot", "aligarh", "delhi"]
(B) ["delhi", "agra", "akot", "aligarh"]
(C) ["aligarh", "agra", "akot", "delhi"]
(D) ["akot", "agra", "delhi", "aligarh"]
Ques 18 :
Which of the following jQuery method returns the outer height (including the border) of an element?
(A) getCSSHeight( )
(B) getHeight( )
(C) outerHeight( [margin] )
(D) None of the above.
Ques 19 :
What is the output of the following code snippet?
eval(20*4)=?
(A) NaN
(B) 204
(C) 24
(D) 80
Ques 20 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.shift());
(A) agra
(B) akot
(C) delhi
(D) aligarh
Submit Answer
Don't Refresh the Page !! ...