Sail E0 Webinar

MCQs

Total Questions : 27 | Page 2 of 3 pages
Question 11. Which of the following selector selects an element that has no children?
  1.    :empty
  2.    :nochild
  3.    :inheritance
  4.    :no-child
 Discuss Question
Answer: Option A. -> :empty
Question 12. Which of the following selector selects the element that is the first child of its parent that is of its type?
  1.    :first-of-type
  2.    :last-child
  3.    ::first-line
  4.    ::first-letter
 Discuss Question
Answer: Option A. -> :first-of-type
Question 13. Which of the following selector selects the elements that are currently enabled?
  1.    :element
  2.    :empty
  3.    :enabled
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> :enabled
Question 14. Which of the following selector selects elements that do not match the selector s?
  1.    :!(s)
  2.    :nth-child(s)
  3.    :not(s)
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> :not(s)
Question 15. Which of the following selector selects an element if it’s the only child of its parent?
  1.    :root
  2.    :nth-oftype(n)
  3.    :only-child
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> :only-child
Question 16. Which of the following selector selects the element that is the target of a referring URI?
  1.    :target
  2.    :selection
  3.    ::selection
  4.    :URI
 Discuss Question
Answer: Option A. -> :target
Question 17. Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?
  1.    :valid
  2.    :required
  3.    :optional
  4.    :invalid
 Discuss Question
Answer: Option A. -> :valid
Question 18. P {line-height: 150%;}.What type of selector is used in this case?
  1.    class Selectors
  2.    element Selectors
  3.    id Selectors
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> element Selectors
Question 19. By applying an ___________ a style can be applied to just a single tag.
  1.    class rule
  2.    element rule
  3.    id rule
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> id rule
Question 20. The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.
  1.    class
  2.    element
  3.    id
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> class

Latest Videos

Latest Test Papers