Advertisement

IT430 Midterm 2009 exam

1) What does CSS stand for?
a) Creative Style Sheets
b) Computer Style Sheets
c) Cascading Style Sheets - correct answer
d) Cascade Style Sheets
e) Colorful Style Sheets


2) Where in an HTML document is the correct place to refer to an external style sheet?
a) In the section
b) At the end of the document
c) At the top of the document
d) In the section - correct answer
e) Between head and body


3) Which HTML tag is used to define an internal style sheet?
a) css
b) text/style
c) style - correct answer
d) script


4) Which HTML attribute is used to define inline styles?
a) font
b) styles
c) css
d) text
e) style - correct answer


5) Which is the correct CSS syntax?
a) body {color: black} - correct answer
b) body:color=black
c) {body:color=black(body}
d) {body;color:black}


6) How do you insert a comment in a CSS file?
a) /* this is a comment */ - correct answer
b) ' this is a comment
c) // this is a comment //
d) // this is a comment


7) Which property is used to change the background color?
a) bgcolor:
b) background-color: - correct answer
c) color:


8) How do you add a background color for all "

" elements?

a) all.h1 {background-color:#FFFFFF}
b) h1.all {background-color:#FFFFFF}
c) h1 {background-color:#FFFFFF} - correct answer


9) How do you change the text color of an element?
a) text-color:
b) color: - correct answer
c) text-color=
d) font-color:


10) Which CSS property controls the text size?
a) font-style
b) text-style
c) font-size - correct answer
d) text-size


11) What is the correct CSS syntax for making all the

elements bold?

a) p {text-size:bold}
b) p {font-weight:bold} - correct answer
c) style:bold
d) p{font:bold}


12) How do you display hyperlinks without an underline?
a) a {decoration:no underline}
b) a {text-decoration:no underline}
c) a {underline:none}
d) a {text-decoration:none} - correct answer


13) How do you make each word in a text start with a capital letter?
a) text-transform:uppercase
b) text-transform:capitalize - correct answer
c) You can't do that with CSS


14) How do you change the font of an element?
a) fon-face:
b) font-family: - correct answer
c) f:
d) font-style:


15) How do you make the text bold?
a) font:b
b) style:bold
c) font-weight:bold - correct answer


16) How do you display a border like this: The top border = 10 pixels, The bottom border = 5 pixels, The left border = 20 pixels, The right border = 1pixel?
a) border-width:10px 20px 5px 1px
b) border-width:10px 1px 5px 20px - correct answer
c) border-width:10px 5px 20px 1px
d) border-width:5px 20px 10px 1px


17) How do you change the left margin of an element?
a) padding:
b) indent:
c) margin:
d) text-indent:
e) margin-left: - correct answer


18) To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?
a) Yes
b) No - correct answer


19) How do you make a list that lists its items with squares?
a) type: square
b) list-style-type: square - correct answer
c) list-type: square
d) style-list: square


20) What is the correct HTML for referring to an external style sheet?
a) - correct answer
b)