Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
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 2 :
What does pop() method of the array do?
(A) removes the first element
(B) removes the last element
(C) adds the element to the array at the first position
(D) adds the element to the array at the last position
Ques 3 :
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 4 :
var array1 = ["value"]; var array2 = ["value"]; array1 == array2
(A) True
(B) False
Ques 5 :
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 6 :
Which popup box you use when want some information comes from user?
(A) alert("Write some text here")
(B) confirm("Write some text here")
(C) prompt("Write here some text","Write default value here")
Ques 7 :
What does the <noscript> tag do?
(A) Enclose text to be displayed by non-JavaScript browsers.
(B) Prevents scripts on the page from executing.
(C) Describes certain low-budget moves.
(D) None of the above
Ques 8 :
What is the output of the following code snippet?
var str = "Apple, Banana, Kiwi";
var res = str.substring(7,13);
(A) Banana
(B) Apple
(C) Kiwi
(D) Banana, Kiwi
Ques 9 :
Which of the following are the ways to create a Javascript Object?
(A) var obj = {};
(B) var obj = new Object();
(C) var obj = Object.create()
(D) All of the above
Ques 10 :
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 11 :
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 12 :
Which of the following jQuery method removes elements matching the specified selector from the set of matched elements?
(A) getNotEquals( selector )
(B) isNotEquals( selector )
(C) not(selector)
(D) None of the above.
Ques 13 :
Which function do you reference in HTML form data?
(A) value()
(B) formData()
(C) val()
(D) None of the above
Ques 14 :
The .animate() method comes in ______ forms.
(A) One
(B) Two
(C) Three
(D) Four
Ques 15 :
Which of the following is the structure of an if statement?
(A) if (conditional expression is true) then execute this code end if
(B) if (conditional expression is true)execute this code end if
(C) if (conditional expression is true) {then execute this code>->}
(D) if (conditional expression is true) then {execute this code}
Ques 16 :
The __ statement breaks the loop and continues executing the code after the loop.
(A) break
(B) continue
(C) return
(D) None of the above
Ques 17 :
The syntax of Eval is ________________
(A) [objectName.]eval(numeriC.
(B) [objectName.]eval(string)
(C) [EvalName.]eval(string)
(D) [EvalName.]eval(numeriC.
Ques 18 :
____________ is the tainted property of a window object.
(A) Pathname
(B) Protocol
(C) Defaultstatus
(D) Host
Ques 19 :
What is the correct JQuery code to set the background color of all p elements to red?
(A) $("p").manipulate("background-color","red");
(B) $("p").layout("background-color","red");
(C) $("p").style("background-color","red");
(D) $("p").css("background-color","red");
Ques 20 :
The __ method of an Array object adds and/or removes elements from an array.
(A) reverse
(B) shift
(C) slice
(D) splice
Submit Answer
Don't Refresh the Page !! ...