Sail E0 Webinar

MCQs

Total Questions : 27 | Page 3 of 3 pages
Question 21. What will happen in this case?
p strong {background-color: yellow;}
  1.    Strong have yellow background
  2.    Strong element within a p element have a yellow background
  3.    Both p and strong have yellow background
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Strong element within a p element have a yellow background
Question 22. A similar rule called the ____________ is specified using the plus sign (+) and is used to select elements that would be siblings of each other.
  1.    class selectors
  2.    attribute selectors
  3.    adjacent-sibling selector
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> adjacent-sibling selector
Question 23. Which of the following selectors selects any tag with an id attribute set?
  1.    E#id
  2.    .class
  3.    #id
  4.    *
 Discuss Question
Answer: Option C. -> #id
Question 24. Which of the following selectors selects direct descendents?
  1.    E > F
  2.    E F
  3.    E + F
  4.    E ~ F
 Discuss Question
Answer: Option A. -> E > F
Question 25. Which of the following selectors selects siblings?
  1.    E.class
  2.    E ~ F
  3.    *
  4.    E, F, G
 Discuss Question
Answer: Option B. -> E ~ F
Question 26. Which of the following selectors selects the specified elements of type E with a particular class value?
  1.    E.class
  2.    E ~ F
  3.    *
  4.    E, F, G
 Discuss Question
Answer: Option A. -> E.class
Question 27. Which of the following selectors selects adjacent siblings?
  1.    E > F
  2.    E F
  3.    E + F
  4.    E ~ F
 Discuss Question
Answer: Option C. -> E + F

Latest Videos

Latest Test Papers