Information Technology Tools and Network Basics Theory Question

CSS ( Cascading Style Sheet ) - Set 3

  1. Which is not true about CSS ?
    1. CSS is Cascading Style sheet
    2. Seperate content from presentation
    3. Establish visual layout of a web page
    4. Markup the content of the web page
    Answer : D
    Explain: We can separate the content of the web page from the design (formatting) of the web page by using a . CSS file which will be linked to the HTML document. CSS not markup (The markup tells web browsers how to display a web page's words and images.) the content of web page.
  2. CSS's position property default value is __________.
    1. Relative
    2. Absolute
    3. Fixed
    4. Static
    Answer : D
    Explain: By default the position property value is static.
  3. Which CSS property should one use to encircle an image with text?
    1. Float
    2. Push
    3. Align
    4. wrap
    Answer : A
    Explain: Use float property to encircle an image with text.
  4. In the given img tag, what "img.png" inside the double quote implies ?
    1. element
    2. attribute
    3. value
    4. operator
    Answer : C
    Explain: img.png defines the value.
  5. What is not correct about the styles class ?
    1. Apply only to specific element types defined in the style sheet
    2. Define styles that can be applied to any element
    3. Style class declarations are preceded by an underscore
    4. Style class declarations are prceded by a period
    Answer : C
    Explain: period means (.) symbol
  6. Which selector selects elments based on a certain state ?
    1. Combinator selector
    2. Pseudo Class selector
    3. Pseudo Element selector
    4. Attribute selector
    Answer : C
    Explain: A CSS pseudo-element is used to style specified parts of an element. Example - ::after, ::before, ::first-line etx.
  7. Which is not a valid Background property of CSS ?
    1. background-image
    2. background-color
    3. background-position
    4. background-iterate
    Answer : D
    Explain: background-iterate is not a property in CSS.
  8. Identify the incorrect statement about a Pseudo Class in CSS.
    1. It is a style class defined in CSS
    2. It gives the author access to content not specifically declared in the document
    3. Pseudocode is seperated bt an underscore from the name of the element.
    4. Pseudocode are seperated by a colon from the name of the element.
    Answer : C
    Explain: A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected elements. Pseudo element use double colon (:). Eg. :hover etx.
  9. How many columns are supported in the responsive grid ?
    1. 10
    2. 11
    3. 12
    4. 13
    Answer : C
    Explain: A responsive grid-view often has 12 columns, and has a total width of 100%, and will shrink and expand as you resize the browser window.
  10. What is true about the box model of CSS ?
    1. It defines a virtual box drawn around elements
    2. Content of each element is surrounded by padding only
    3. Content of each element is surrounded by margin only
    4. Content of each element is surrounded by border only
    Answer : A
    Explain: The CSS box model is a container that contains multiple properties including borders, margins, padding,width, height and the content itself. It is like a virtual box.
  11. What is not correct about Embedded Style Sheets ?
    1. Embedded style sheets enable to embed an entire css document in an XHTML document's head section.
    2. Class selectors are used in Embedded Style sheets
    3. The style elements's type attribute specifies the Multipurpose Internet Mail Extension ( MIME ) type that describe a file's content.
    4. All statement are correct.
    Answer : C
    Explain: MIME is a supplementary protocol that allows non-ASCII data to be sent through SMTP.

Next Set

1 2

Make sure you make notes of these question. We hope it helps you.