Time remaining
:
:
Test Status
JSJQUERYTEST3
Ques 1 :
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 2 :
What does isNaN function do?
(A) Returns false if the argument is not a number.
(B) Returns true if the argument is not a number.
(C) Returns true if the argument is a number.
(D) None of the above
Ques 3 :
Which JQuery method is used to perform an asynchronous HTTP request?
(A) jQuery.ajaxSetup()
(B) jQuery.ajax()
(C) jQuery.ajaxAsync()
Ques 4 :
______ JavaScript is also called client-side JavaScript.
(A) Microsoft
(B) Navigator
(C) LiveWire
(D) Native
Ques 5 :
What are the looping structures are available in JavaScript?
(A) for, foreach
(B) foreach, while
(C) do-while, foreach
(D) for, while, do-while
Ques 6 :
What is the correct JQuery code for making all div elements 100 pixels high?
(A) $("div").height="100"
(B) $("div").height(100)
(C) $("div").yPos(100)
Ques 7 :
____ JavaScript is also called server-side JavaScript.
(A) Microsoft
(B) Navigator
(C) LiveWire
(D) Native
Ques 8 :
__ statement is used to test for a specific condition.
(A) Select
(B) If
(C) Switch
(D) For
Ques 9 :
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 10 :
Which statement is true?
(A) To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser
(B) To use jQuery, you can refer to a hosted jQuery library at Google
(C) To use jQuery, you must buy the jQuery library at www.jquery.com
Ques 11 :
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 12 :
When does the function name become optional in JavaScript?
(A) Function is defined within a function
(B) Function is defined using Function constructor
(C) Function is defined as an expression
(D) Function is predefined
Ques 13 :
What scripting language is JQuery written in?
(A) C#
(B) C++
(C) JavaScript
(D) VBScript
Ques 14 :
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 15 :
Which of the following JavaScript functions are used to convert non numeric values into numbers?
(A) Number()
(B) parseInt()
(C) parseFloat()
(D) All of the above
Ques 16 :
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 17 :
Which of the following are capabilities of functions in JavaScript?
(A) Return a value
(B) Accept parameters and Return a value
(C) Accept parameters
(D) None of the above
Ques 18 :
How to create a function with the JavaScript Function constructor ?
(A) var func = Function("x","y","return x+y");
(B) var func = Function(x,y){ return x+y;}
(C) var func = new Function("x", "y", "return x + y");
(D) None of the above
Ques 19 :
Which JQuery method should be used to deal with name conflicts?
(A) conflict()
(B) noConflict()
(C) noNameConflict()
(D) nameConflict()
Ques 20 :
Which of the following is not a valid JavaScript variable name?
(A) 2names
(B) _first_and_last_names
(C) FirstAndLast
(D) None of the above
Submit Answer
Don't Refresh the Page !! ...