Sail E0 Webinar

MCQs

Total Questions : 50 | Page 3 of 5 pages
Question 21. What is the correct way of assigning a variable to a class?Without jQuery
  1.    var ex = document.class("example");
  2.    var ex = document.GetElementById("example");
  3.    var ex = document.querySelector(".example");
  4.    var ex = $(".example");
 Discuss Question
Answer: Option C. -> var ex = document.querySelector(".example");
Question 22. JQuery has several methods for CSS manipulation
  1.    True
  2.    False
 Discuss Question
Answer: Option A. -> True
Question 23. Which of the following is the correct syntax of filter() method in JQuery?
  1.    $("p").filter(".intro");
  2.    filter: no-wrap;
  3.    None of the above
 Discuss Question
Answer: Option A. -> $("p").filter(".intro");
Question 24. Which of the following is the correct form to create to hide elements in Jquery and select the element?
  1.    $(document).ready(function(){ $("button").click(function(){ $("p").hide(); });});
  2.    flex-wrap: no-wrap;
  3.    All of above
 Discuss Question
Answer: Option A. -> $(document).ready(function(){ $("button").click(function(){ $("p").hide(); });});
Question 25. Which of the following is the correct syntax to Set CSS in JQuery?
  1.    $("p").css("background-color="yellow");
  2.    $("p").css("backgroundcolor", "yellow");
  3.    $("p").css("background-color", "yellow");
 Discuss Question
Answer: Option C. -> $("p").css("background-color", "yellow");
Question 26. Which of the following ways is correct Syntax to add Class in JQuery CSS ?
  1.    $("div").addClass("important");
  2.    $(selector).fadein(speed,callback);
  3.    None of the above
 Discuss Question
Answer: Option A. -> $("div").addClass("important");
Question 27. The jQuery syntax is tailor-made for selecting HTML elements and performing ______________
  1.    The Text is shown normal.
  2.    some action on the element(s).
 Discuss Question
Answer: Option B. -> some action on the element(s).
Question 28. JQuery is a lightweight, "write less, do more", JavaScript library
  1.    False
  2.    True
 Discuss Question
Answer: Option B. -> True
Question 29. Which of the following ways is correct to add JQuery ?
 Discuss Question
Answer: Option B. -> True
Question 30. How to Write Jquery Comments?
  1.    .
  2.    // this is a comment //
  3.    None of these
 Discuss Question
Answer: Option C. -> // this is a comment //

Latest Videos

Latest Test Papers