jQuery & JavaScript Trivia Quiz

10 Questions | Total Attempts: 482

SettingsSettingsSettings
JQuery Quizzes & Trivia

Questions and Answers
  • 1. 
    jQuery is a 
    • A. 

      JavaScript Library

    • B. 

      JavaScript Language

    • C. 

      JavaScript Method

    • D. 

      None

  • 2. 
    jQuery uses CSS selectors to select elements?
    • A. 

      False

    • B. 

      True

  • 3. 
    Which sign does jQuery use as a shortcut for jQuery?
    • A. 

      The % sign

    • B. 

      The ? Sign

    • C. 

      The $ Sign

    • D. 

      None

  • 4. 
    With jQuery, look at the following selector: $("div"). What does it select?
    • A. 

      All div elements

    • B. 

      The first div element

  • 5. 
    Is jQuery a library for client scripting or server scripting?
    • A. 

      Server scripting

    • B. 

      Client scripting

    • C. 

      None

  • 6. 
    The jQuery html() method works for both HTML and XML documents
    • A. 

      False

    • B. 

      True

  • 7. 
    What is the correct jQuery code to set the background color of all p elements to red?
    • A. 

      $("p").layout("background-color","red");

    • B. 

      $("p").manipulate("background-color","red");

    • C. 

      $("p").css("background-color","red");

    • D. 

      $("p").style("background-color","red");

  • 8. 
    Which jQuery method is used to hide selected elements?
    • A. 

      Hidden()

    • B. 

      Hide()

    • C. 

      Visible(false)

    • D. 

      Display(none)

  • 9. 
    Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
    • A. 

       toggleClass()

    • B. 

      Switch()

    • C. 

      AltClass()

    • D. 

      SwitchClass()

  • 10. 
     jQuery's main focus is..
    • A. 

      AJAX

    • B. 

      DOM Manipulation

    • C. 

      Animations

    • D. 

      All

Related Topics
Back to Top Back to top