Time remaining
:
:
Test Status
JSJQUERYTEST5
Ques 1 :
Inside which HTML element do we put the JavaScript?
(A) <js>
(B) <scripting>
(C) <script>
(D) <javascript>
Ques 2 :
Which operator creates a new object from the specified object type?
(A) obj
(B) new
(C) create
(D) None of the above
Ques 3 :
Which JQuery method returns the direct parent element of the selected element?
(A) parent()
(B) parents()
(C) ancestor()
(D) ancestors()
Ques 4 :
What is the correct syntax for referring to an external script called " abc.js"?
(A) <script href=" abc.js">
(B) <script name=" abc.js">
(C) <script src=" abc.js">
(D) None of the above
Ques 5 :
Javascript is an object oriented language?
(A) False
(B) True
Ques 6 :
The JQuery animate() method can be used to animate ANY CSS property?
(A) Yes
(B) Only properties containing numeric values
(C) No
(D) All properties except the shorthand properties
Ques 7 :
Which types of image maps can be used with JavaScript?
(A) Server-side image maps
(B) Client-side image maps
(C) Server-side image maps and Client-side image maps
(D) None of the above
Ques 8 :
How to delete a property of an object?
var obj = {a:5};
(A) delete obj.a;
(B) delete obj;
Ques 9 :
_______is use for alternately expand and collapse a page element
(A) .hover()
(B) stopPropagation()
(C) .toggle()
(D) .trigger()
Ques 10 :
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 11 :
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 12 :
Highlight page element under mouse cursor by using ________
(A) .hover()
(B) stopPropagation()
(C) .toggle()
(D) .trigger()
Ques 13 :
Which is the correct way to write a JavaScript array?
(A) var txt = new Array(1:"tim",2:"kim",3:"jim")
(B) var txt = new Array:1=("tim")2=("kim")3=("jim")
(C) var txt = new Array("tim","kim","jim")
(D) var txt = new Array="tim","kim","jim"
Ques 14 :
How to add properties to object?
var car = {};
(A) car.make = "Ford";
(B) car["make"] = "Ford";
(C) var car = {make: Ford};
(D) All of the above
Ques 15 :
Which method is provided by the jquery to create our own custom animation with fine-grained control.
(A) .animation()
(B) stopPropagation()
(C) .toggle()
(D) .animate()
Ques 16 :
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 17 :
What is the use of "this" keyword in javascript?
(A) It refers to current object
(B) It refers to previous object
(C) It is a variable which contains value
(D) None of the above
Ques 18 :
The .animate() method comes in ______ forms.
(A) One
(B) Two
(C) Three
(D) Four
Ques 19 :
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
(A) "New Text"?
(B) para1.value="New Text";
(C) para1.firstChild.nodeValue= "New Text";
(D) para1.nodeValue="New Text";
Ques 20 :
Which of the following is a server-side JavaScript object?
(A) FileUpLoad
(B) Function
(C) File
(D) Date
Submit Answer
Don't Refresh the Page !! ...