Webprog - Pre-finals Exam

20 Questions | Total Attempts: 32

SettingsSettingsSettings
Please wait...
Webprog - Pre-finals Exam

Section: DMA401Instructor: Fer Kevin Catapang


Questions and Answers
  • 1. 
    Which CSS property is used to change the text color of an element?
    • A. 

      Text-color

    • B. 

      Color

    • C. 

      Fgcolor

  • 2. 
    How do you add a background color for all <h1> elements?
    • A. 

      H1.all {background-color:#FFFFFF;}

    • B. 

      All.h1 {background-color:#FFFFFF;}

    • C. 

      H1 {background-color:#FFFFFF;}

  • 3. 
    Which CSS property controls the text size?
    • A. 

      Font-size

    • B. 

      Font-style

    • C. 

      Text-style

    • D. 

      Text-size

  • 4. 
    Which property is used to change the background color?
    • A. 

      Bgcolor

    • B. 

      Background-color

    • C. 

      Color

  • 5. 
    Which property is used to change the left margin of an element?
    • A. 

      Indent

    • B. 

      Margin-left

    • C. 

      Padding-left

  • 6. 
    Used to set the width of the border.
    • A. 

      Border-weigth

    • B. 

      Border-width

    • C. 

      Witdh

  • 7. 
    Which HTML attribute is used to define inline styles?
    • A. 

      Style

    • B. 

      Styles

    • C. 

      Class

    • D. 

      Font

  • 8. 
    What does CSS stand for?
    • A. 

      Customized Style Sheet

    • B. 

      Commercialized Style Sheet

    • C. 

      Cascading Style Sheet

    • D. 

      Controlled Style Sheet

  • 9. 
    It encloses declaration block.
    • A. 

      ()

    • B. 

      {}

    • C. 

      []

    • D. 

  • 10. 
    Which part of you’re your Web page is the embedded styles placed?
    • A. 

      Head

    • B. 

      Body

    • C. 

      Tag

    • D. 

      Outside

  • 11. 
    What is the correct HTML for referring to an external style sheet?
    • A. 

      <link rel="stylesheet" type="text/css" href="mystyle.css">

    • B. 

      <style src="mystyle.css">

    • C. 

      <stylesheet>mystyle.css</stylesheet>

  • 12. 
    Which HTML tag is used to define an internal style sheet?
    • A. 

      <script>

    • B. 

      <style>

    • C. 

      <css>

  • 13. 
    Which HTML container is used to contain all HTML elements?
    • A. 

      Div

    • B. 

      Span

    • C. 

      P

    • D. 

      Head

  • 14. 
    Which is the correct CSS syntax?
    • A. 

      {body;color:black;}

    • B. 

      Body {color: black;}

    • C. 

      {body:color=black;}

    • D. 

      Body:color=black;

  • 15. 
    How do you make the text bold?
    • A. 

      Font-weight:bold;

    • B. 

      Font:bold;

    • C. 

      Style:bold;

  • 16. 
    What is the correct CSS syntax for making all the <p> elements bold?
    • A. 

      P {font-weight:bold;}

    • B. 

      <p style="text-size:bold;">

    • C. 

      <p style="font-size:bold;">

    • D. 

      P {text-size:bold;}

  • 17. 
    When using the padding property; are you allowed to use negative values?
    • A. 

      Yes

    • B. 

      No

  • 18. 
    How do you display a border with an inset style and width 5px?
    • A. 

      Border-style: inset; border-width: 5px;

    • B. 

      Border-styles: inset; width: 5px;

    • C. 

      Style: inset; width: 5px;

  • 19. 
    What property we use if we want to change the color of a border
    • A. 

      Border-color

    • B. 

      Color

    • C. 

      Border

    • D. 

      Border-colors

  • 20. 
    What HTML elements are we using when creating a Navigation Bar?
    • A. 

      Ul and li

    • B. 

      P

    • C. 

      Img

    • D. 

      None of the above

Back to Top Back to top