Jquery/Jquery Mcq Set 3 Sample Test,Sample questions

Question:
 Get the value of a style property for the first element in the set of matched elements.

1..style()

2..css()

3.Both a and b

4.none of the above


Question:
 In which year jQuery developed?

1. 2001

2.2004

3.2005

4. 2006


Question:
 Is jQuery a library for client scripting or server scripting?

1.Server scripting

2. Client scripting

3.Both of these

4.none of the above


Question:
 jQuery code to set the background color of all span elements to blue?

1.$(span").style(background-color","blue");

2. $(span").manipulate(background-color","blue");

3.$(span").css(background-color","blue");

4.$(span").layout(background-color","blue");


Question:
 Select all elements that contain the specified text.

1.:contains()

2. :selects()

3.Both

4.none of the above


Question:
 The ______ method is used to make an asynchronous HTTP request?

1. jQuery.ajaxAsync()

2. jQuery.ajax()

3. jQuery.async()

4.none of the above


Question:
 The______ method is used to represent an array or an object in serialize manner.

1.size()

2. length

3.param()

4.None of these


Question:
 Using ____ function, we can hold or release the execution of jQuery's ready event.

1. jQuery.holdReady()

2.jQuery.ready()

3. jQuery.hold()

4.jQuery.holdready()


Question:
 Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?

1.toggleClass()

2.switch()

3.altClass()

4.switchClass()


Question:
$("div#frame1 .bd1") What does it select?

1. The first element with id = “bd1” in any div element with class = “frame1

2.The first element with class = “bd1” in the first element div with id = “frame1”

3.All elements with class = “bd1” in the first element div with id = “frame1”

4.none of the above


Question:
$("span.foo"). What does it select?

1.All span elements with id = “foo”

2. all span elements with class = “foo”

3. The first span element with id = “foo”

4. The first span element with class = “foo”


Question:
$.foo() is equivalent to

1.javascript.foo()

2.document.foo()

3. jQuery.foo()

4.none of the above


Question:
----- takes a selector as its argument and returns true if at least one of the selected elements also matches the specified selector.

1. is()

2.index()

3.each()

4.map()


Question:
By default JavaScript displays the numbers as ______

1. base 16

2. base 10

3. base 6

4.base 2


Question:
JQuery code to set the background color of all “<span>” in blue?

1.$("span").style("background-color", "blue");

2.$("span").css("background-color", "blue");

3.jQuery("span").style("background-color", "blue");

4.none of the above


Question:
jQuery method is used to perform an asynchronous HTTP request?

1. jQuery.ajaxAsync()

2.jQuery.ajaxSetup()

3.jQuery.ajax()

4.none of the above


Question:
Look at the following jQuery selector: $("div#intro .head). What does it select?

1.The first element with id="head" inside any div element with class="intro"

2.All elements with class="head" inside the first div element with id="intro"

3.All div elements with id="intro" or class="head"

4. None


Question:
Math.random() returns _______

1.random number between 0 and 1

2.random number between 1 and 10

3. random number between 1 and 100

4. random number between 0 and 10


Question:
The ¦¦¦. method is like offset(), except that it is a getter only and it returns element positions relative to their offset parent, rather to the document as a whole.

1. width()

2. position()

3.offsetparent()

4.setparent()


Question:
To deal with cookies in jQuery we have to use ______ cookie plugin

1. Dough

2.Session

3.Dazzler

4. None of these


Question:
Typeof “infinity” will return ______

1.string

2.number

3.object

4. undefined


Question:
What are jQuery’s features?

1. Useful collection of methods for manipulating selected items

2.Efficient query method to find all document elements

3.Syntax for referencing document elements

4.All the answers are true


Question:
What are the methods used to provide effects?

1.Show()

2. Hide()

3. Toggle()

4.All of these


Question:
What does the min mean?

1. Minimised version

2.Miniature

3.Minimised parameters

4.Minimum value


Question:
What is the Boolean value of “” in JavaScript?

1.true

2.on

3. off

4. false


Question:
What is the correct jQuery code for making all div elements 100 pixels high?

1.$(div").height="100

2.$(div").height(100)

3.$(div").yPos(100)

4.none of the above


Question:
Which built-in method returns the character at the specified index?

1.characterAt()

2.getCharAt()

3.charAt()

4.none of the above


Question:
Which jQuery method is used to hide selected elements?

1.hidden()

2.hide()

3.visible(false)

4.display(none)


Question:
Which jQuery method to set one or more style properties for selected elements?

1.css()

2. html()

3.Acceptance platform

4.asStub()


Question:
Which of the following is an overloaded function?

1. jQuery()

2.$()

3.script()

4. jQuery() and $()


Question:
Which of the following is/are the sources of Content Distribution Network(CDN) for jQuery.

1. jQuery CDN

2.Microsoft CDN

3.Google CDN

4.All of the above


Question:
Which of the following jQuery method checks the current selection against an expression?

1.getIs( selector )

2. is( selector )

3. checkIs( selector )

4.none of the above


Question:
Which of the following replaces $(document).ready(f)?

1. jQuery(f)

2. $(f)

3.#(f)

4.none of the above


Question:
Which sign does jQuery use as a shortcut for jQuery?

1. $ sign

2. % sign

3.? Sign

4.none of the above


Question:
With jQuery, look at the following selector: $("div.intro). What does it select?

1.The first div element with class="intro"

2.The first div element with id="intro"

3.All div elements with class="intro"

4.All div elements with id="intro"


More MCQS

  1. Jquery Mcq Set 1
  2. Jquery Mcq Set 2
  3. Jquery Mcq Set 3
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!