1. Question: Which of the following returns the children tags of "id1"?

    A
    $('#id1').children();

    B
    $('#id1').getChildren();

    C
    children('#id1');

    D
    getChildren('#id1');

    Note: Not available
    1. Report
  2. Question: Which of the following is the correct way to select an option based on its text in jQuery?

    A
    $("#myselect option").filter(function(){ return $(this).text() == 'text';}).prop('selected', true);

    B
    $("#myselect option").prop('selected', true).text("text")

    C
    $("#myselect").filter("option").prop('selected', true).text("text");

    D
    $("#myselect").filter(function(){ return $(this).val() == 'text';}).prop('selected', true);

    Note: Not available
    1. Report
  3. Question: Consider the following code snippet:
    $('#id1').animate({width:"240px"}, {queue:false, duration:1000 }).animate({height:"320px"}, "fast");
    The order of the animations of this code snippet is _____.

    A
    First the width animation, then the height animation.

    B
    First the height animation, then the width animation.

    C
    Both the width animation and the height animation occur at the same time.

    D
    The order of animations is random.

    Note: Not available
    1. Report
  4. Question: What is the result of NaN == NaN?

    A
    true

    B
    false

    C
    An error occurs.

    D
    None

    Note: Not available
    1. Report
  5. Question: The following statement adds class border to ______. $("div").find("p").andSelf().addClass("border");

    A
    all div tags and p tags in div tags

    B
    all div tags

    C
    all p tags

    D
    all p tags enclosed in div tags

    Note: Not available
    1. Report
  6. Question: Which of the following is true for the code below? $('#a1').one('click', {times: 3}, function1);

    A
    function1 will be executed once regardless of the number of times a1 is clicked.

    B
    function1 will be executed at most 3 times if a1 is clicked more than twice.

    C
    There is at most one instance of function1 to be executed at a time.

    D
    There are at most three instances of function1 to be executed at a time.

    Note: Not available
    1. Report
  7. Question: Consider the following code snippet:
    <font size=2>
    <ul id='id1'>
      <li id='li1'>Items 1</li>
      <li id='li2'>Items 2</li>
      <li id='li3'>Items 3</li>
    </ul>
    </font>
    Which of the following code snippets return(s) a set of all li tags within id1 except for the li tag with id li2?

    A
    $('#id1 li').not($('#li2'));

    B
    $('#id1 li').except($('#li2'));

    C
    $('#id1 li').remove($('#li2'));

    D
    $('#id1 li').delete($('#li2'));

    Note: Not available
    1. Report
  8. Question: Assume that you want that first the tag with "id1" fades out and then the tag with "id2" fades in. Which of the following code snippets allow(s) you to do so?

    A
    $('#id1').fadeOut('fast'); $('#id2').fadeIn('slow');

    B
    $('#id2').fadeIn('slow'); $('#id1').fadeOut('fast');

    C
    $('#id1').fadeOut('fast', function() {$('#id2').fadeIn('slow')});

    D
    $('#id2').fadeIn('slow', function() {$('#id1').fadeOut('fast')});

    Note: Not available
    1. Report
  9. Question: Which of the following methods can be used to copy element?

    A
    clone

    B
    cloneTo

    C
    move

    D
    moveTo

    Note: Not available
    1. Report
  10. Question: The following code snippet will _____. $('#id1').animate({width:"80%"}, "slow")

    A
    animate the tag with id1 from the current width to 80% width.

    B
    animate the tag with id1 from 80% width to current width.

    C
    animate the tag with id1 from the current 80% width to 0px.

    D
    animate the tag with id1 from 80% width to 100% width.

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd