1. 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
  2. Question: What is the result of NaN == NaN?

    A
    true

    B
    false

    C
    An error occurs.

    D
    None

    Note: Not available
    1. Report
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Question: Consider the following code snippet:
    <ul id='id1'>
      <li id='li1'>Items 1</li>
      <li id='li2'>Items 2</li>
      <li id='li3'>Items 3</li>
    </ul>
    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
  10. Question: Which of the following methods can be used to utilize the animate function with the backgroundColor style property?

    A
    Use the jQuery UI library.

    B
    There is no need to do anything as jQuery core already supports that style property.

    C
    There is no way to use animate with that style property.

    D
    None

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