Q. The C in CSS stands for

  • (A) Continuous
  • (B) Cascaded
  • (C) Contentional
  • (D) Cascading
πŸ’¬ Discuss
βœ… Correct Answer: (D) Cascading
Explanation: The C in CSS stands for “cascading”. This term indicates that the style rules that apply to any given element in a document can come from a “cascade” of different sources.

Q. The latest version of CSS is

  • (A) CSS1
  • (B) CSS2
  • (C) CSS3
  • (D) CSS4
πŸ’¬ Discuss
βœ… Correct Answer: (C) CSS3
Explanation: The latest version of CSS is CSS3.

Q. Which of the following is an example of a Shortcut Property?

  • (A) border
  • (B) font
  • (C) text
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned
Explanation: All of the above mentioned properties are shortcut properties. For example, the font-family, font-size, font-style, and font-weight properties can all be set at once using a single font property with a compound value:

Q. Which of the following is the default positioning elements with CSS?

  • (A) relative
  • (B) static
  • (C) absolute
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) static
Explanation: static is the default value and specifies that the element is positioned according to the normal flow of document content (for most Western languages, this is left to right and top to bottom).

Q. Which property lays the element according to the normal flow?

  • (A) relative
  • (B) absolute
  • (C) fixed
  • (D) static
πŸ’¬ Discuss
βœ… Correct Answer: (A) relative
Explanation: When the position property is set to relative, an element is laid out according to the normal flow, and its position is then adjusted relative to its position in the normal flow.

Q. Which of the following property allows you to specify an element’s position with respect to the browser window?

  • (A) relative
  • (B) fixed
  • (C) static
  • (D) absolute
πŸ’¬ Discuss
βœ… Correct Answer: (B) fixed
Explanation: The fixed value allows you to specify an element’s position with respect to the browser window. Elements with fixed positioning are always visible and do not scroll with the rest of the document. Like absolutely positioned elements, fixed-position elements are independent of all others and are not part of the document flow.

Q. The central object in a larger API is known as

  • (A) Document Object Material
  • (B) Document Object Model
  • (C) Binary Object Model
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) Document Object Model
Explanation: The Document object does not stand alone, however. It is the central object in a larger API, known as the Document Object Model, or DOM, for representing and manipulating document content.

Q. The paragraph “p” is a part of

  • (A) h1
  • (B) body
  • (C) html
  • (D) Both body and html
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both body and html
Explanation: The paragraph tag belongs to both html and body tags.

Q. The node directly above a node is called

  • (A) sibling
  • (B) child
  • (C) parent
  • (D) ancestors
πŸ’¬ Discuss
βœ… Correct Answer: (C) parent
Explanation: The node directly above a node is the parent of that node.

Q. The Text and Comment is part of

  • (A) CharacterData
  • (B) Document
  • (C) Attr
  • (D) Element
πŸ’¬ Discuss
βœ… Correct Answer: (A) CharacterData
Explanation: The Text and Comment is part of the CharacterData Element.