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 :
JavaScript variables are case-sensitive.
(A) True
(B) False
Ques 3 :
Which of the following event fires when the form element loses the focus: <button>, <input>, <select>, <textarea>?
(A) onfocus
(B) onblur
(C) onclick
(D) ondblclick
Ques 4 :
____________ is the tainted property of a window object.
(A) Pathname
(B) Protocol
(C) Defaultstatus
(D) Host
Ques 5 :
.css(â??widthâ??) and .width() are the two ways to change the width of _________.
(A) selector
(B) element
(C) fade effect
(D) radio button
Ques 6 :
Which of the following is the correct syntax to create a cookie using JavaScript?
(A) document.cookie = 'key1 = value1; key2 = value2; expires = date';
(B) browser.cookie = 'key1 = value1; key2 = value2; expires = date';
(C) window.cookie = 'key1 = value1; key2 = value2; expires = date';
(D) navigator.cookie = 'key1 = value1; key2 = value2; expires = date';
Ques 7 :
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 8 :
Which of the following is correct about features of JavaScript?
(A) JavaScript is a lightweight, interpreted programming language.
(B) JavaScript is designed for creating network-centric applications.
(C) JavaScript is complementary to and integrated with Java.
(D) All of the above.
Ques 9 :
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 10 :
JQuery ______is used to set/return arbitrary data to/from an element.
(A) .data()
(B) .item()
(C) .all
(D) All of these
Ques 11 :
Which JQuery method returns the direct parent element of the selected element?
(A) parent()
(B) parents()
(C) ancestor()
(D) ancestors()
Ques 12 :
What is the difference between Hover and Mouseover
(A) Mouseover allows you to specify an optional function to use for the mouseout event
(B) Hover allows you to specify an optional function to use for the mouseout event
(C) No Difference; Mouseover and Hover are the same
Ques 13 :
Which built-in method returns the character at the specified index?
(A) characterAt()
(B) getCharAt()
(C) charAt()
(D) None of the above.
Ques 14 :
What is mean by "this" keyword in javascript?
(A) It refers current object
(B) It referes previous object
(C) It is variable which contains value
(D) None of the above
Ques 15 :
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 16 :
You can test whether the browser supports specific features using...
(A) $.support
(B) $.browser
(C) $.featureTest
(D) $.browserTest
Ques 17 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.shift());
(A) agra
(B) akot
(C) delhi
(D) aligarh
Ques 18 :
Load remote data using HTTP GET
(A) $.get(url,data,callback,type)
(B) $.ajax(options)
(C) $.post(url,data,callback,type)
(D) $.getScript(url,callback)
Ques 19 :
Which of the following is not considered a JavaScript operator?
(A) new
(B) this
(C) delete
(D) typeof
Ques 20 :
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
Submit Answer
Don't Refresh the Page !! ...