Time remaining
:
:
Test Status
JSJQUERYRANDOMTEST
Ques 1 :
The __ method of an Array object adds and/or removes elements from an array.
(A) reverse
(B) shift
(C) slice
(D) splice
Ques 2 :
Which of the following type of variable is visible everywhere in your JavaScript code?
(A) global variable
(B) local variable
(C) Both of the above.
(D) None of the above.
Ques 3 :
__ statement is used to test for a specific condition.
(A) Select
(B) If
(C) Switch
(D) For
Ques 4 :
Using _______ statement is how you test for a specific condition.
(A) Select
(B) If
(C) Switch
(D) For
Ques 5 :
__ returns true if a variable is an array, if not false.
(A) Array.isArray()
(B) Array.of()
(C) Array.from()
(D) Array.observe()
Ques 6 :
Javascript is an object oriented language?
(A) False
(B) True
Ques 7 :
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 8 :
var a = 5;
function first() {
a = 6;
}
function second() {
alert(a);
}
Assuming I call these functions in order, what value gets alerted?
(A) 5
(B) 6
(C) null
(D) undefined
Ques 9 :
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 10 :
Which of the following function of Array object returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found?
(A) indexOf()
(B) lastIndexOf()
(C) join()
(D) map()
Ques 11 :
What does .size() method of jquery returns?
(A) No. of element in object
(B) No. of variable in object
(C) Both a and b
(D) None of these
Ques 12 :
Which JQuery method should be used to deal with name conflicts?
(A) conflict()
(B) noConflict()
(C) noNameConflict()
(D) nameConflict()
Ques 13 :
Which are the different ways to enumerate all properties of an object?
(A) for...in loops
(B) Object.keys()
(C) Object.getOwnPropertyNames()
(D) All of the above
Ques 14 :
Which function do you reference in HTML form data?
(A) value()
(B) formData()
(C) val()
(D) None of the above
Ques 15 :
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 16 :
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 17 :
JQuery is the programming language
(A) Yes
(B) No
Ques 18 :
What is the output of this code typeof null
(A) Number
(B) String
(C) Object
(D) NaN
Ques 19 :
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 20 :
Which JQuery method is used to set one or more style properties for selected elements?
(A) style()
(B) html()
(C) css()
Submit Answer
Don't Refresh the Page !! ...