Time remaining
:
:
Test Status
JSJQUERYTEST1
Ques 1 :
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 2 :
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 3 :
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 4 :
Which built-in method returns the character at the specified index?
(A) characterAt()
(B) getCharAt()
(C) charAt()
(D) None of the above.
Ques 5 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.pop());
(A) delhi
(B) palampur
(C) agra
(D) akot
Ques 6 :
Which of the following function of Number object formats a number with a specific number of digits to the right of the decimal?
(A) toExponential()
(B) toFixed()
(C) toPrecision()
(D) toLocaleString()
Ques 7 :
Which of the following is correct?
(A) jQuery is a JSON Library
(B) jQuery is a JavaScript Library
Ques 8 :
Which of the following function of Boolean object returns a string of either 'true' or 'false' depending upon the value of the object?
(A) toSource()
(B) toString()
(C) valueOf()
(D) None of the above.
Ques 9 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.shift());
(A) agra
(B) akot
(C) delhi
(D) aligarh
Ques 10 :
Which of the following function of String object extracts a section of a string and returns a new string?
(A) slice()
(B) split()
(C) replace()
(D) search()
Ques 11 :
jQuery uses CSS selectors to select elements?
(A) True
(B) False
Ques 12 :
Which of the following function of String object returns the calling string value converted to upper case?
(A) toLocaleUpperCase()
(B) toUpperCase()
(C) toString()
(D) substring()
Ques 13 :
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.slice(2));
(A) ["delhi","agra","akot"]
(B) ["akot","aligarh","palampur"]
(C) ["delhi","agra","akot","aligarh","palampur"]
(D) None
Ques 14 :
Which sign does jQuery use as a shortcut for jQuery?
(A) the $ sign
(B) the ? Sign
(C) the % sign
Ques 15 :
Which of the following function of String object creates an HTML hypertext link that requests another URL?
(A) link()
(B) sub()
(C) sup()
(D) small()
Ques 16 :
What is the output of the following code.
var city = new Array("delhi", "agra", "akot", "aligarh");
city.push('palampur');
console.log(city);
(A) ["palampur", "delhi", "agra", "akot", "aligarh"]
(B) ["delhi", "agra", "akot", "palampur", "aligarh"]
(C) ["delhi", "agra", "akot", "aligarh", "palampur"]
(D) None of them
Ques 17 :
Look at the following selector: $("div"). What does it select?
(A) The first div element
(B) All div elements
Ques 18 :
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 19 :
__ method returns the number of milliseconds in a date string.
(A) getTime()
(B) Date.UTC()
(C) Date.parse()
(D) None of the above
Ques 20 :
Is JQuery a library for client scripting or server scripting?
(A) Client scripting
(B) Server scripting
Submit Answer
Don't Refresh the Page !! ...