Question 1:
Which of the following is true for a class selector?
- It uses a hash as the separator symbol
- It applies the style to only the first element defined with that style
- It applies the style to only the last element defined with that style
- It applies the style to all the elements defined with that style
Question 2:
Which of the following does not apply to external styles?
- Clean separation of design & content
- Minimal code duplication
- Highest priority
- Reduces page download time
Question 3:
Read the following Code:
BODY {
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
}
What will be the output of this code?
- Image bar.gif will be tiled vertically in the background in the center of the page.
- Image bar.gif will be tiled horizontally in the background in the center of the page
- Image bar.gif will be displayed in the center of the page
- Image bar.gif will be stretched in the center of the page
Question 4:
Which of the following is not a valid text-decoration option?
- Text-decoration :line-through
- Text-decoration :in-line
- Text-decoration :overline
- Text-decoration :underline
- Text-decoration :none
Question 5:
You defined some links as follows:
A:link{color:green}
A:visited{color:blue}
A:hover{color:red)
A:active{color:black}
What will be the color, when the mouse goes over a link?
- Green
- Blue
- Red
- Black
Question 6:
The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
- A. by using the class attribute in a td cell
- B. by using the id Attribute in a td cell
- C. by using the class attribute in any html element which supports the class attribute
- D. by using the id attribute in any html element which support the id attribute
Question 7:
Which of the following is not a valid property of an aural style sheet?
- Cue
- Voice-family
- Load
- Speak
Question 8:
Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:
- Code{margin:1cm}
- Code{margin-top:1cm; margin-bottom:1cm}
- P{margin:1cm}
- P{margin-top:1cm; margin-bottom:1cm}
Question 9:
Text text text text
A Text text
Sentence text text
Inside text text
A text ext
Text text text
Text text
Text text text text
You have and article of 100 lines. If for instance, you want to describe the theme with a few lines inside the text highlighted separately as show in the image which of the following property will you use?
- Outline
- Display
- Float
- Merge
Question 10:
You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
- Text-mode
- Text-transform
- Text-decoration
- Text-shadow
- Text-case
Question: 11;
Here is one of the styles defined in your webpage:
.redborder
{
border-color:#ff0000;
border-width:thin thick
}
What type of border will be displayed if one of the paragraphs defined in the webpage uses this style?
- This will display a red border with thin top and bottom
- This will display a red border with thick top and bottom
- This will display a red border with thick left and right
- This will not display any border
Question 12:
Which of the following are correct values of the overflow property?
- Visible
- Hidden
- Scroll
- Auto
Question 13:
Which of the following is correct?
- Blockquote{text-padding:2em 4em 5em}
- Blockquote{padding-x:2em 4em 5em}
- Blockquote{padding-y:2em 4em 5em}
- Blockquote{padding:2em 4em 5em}
Question 14:
Which element property is required to define internal styles?
- Class
- Style
- span
- link
Question 15
Which style property can be used to display only some part of an image?
- Snap
- Clip
- Scroll
- Visible
Question 16
Which of the following is not true for a style sheet?
- A style sheet defines how an html element will be displayed
- Internal and external style sheets can not be used together
- Multiple style definitions will cascade into one
- The same style sheet can be used by many html pages
Question 17
Which of the following font properties deals with aspect value?
a. Font-weight
b. Font-variant
c. Font-size-adjust
d. Font-size
Question 18:
Consider this style definition:
P i{color:red}
What do you understand about the contextual selector used above?
- All the text within a paragraph will be italicized
- All the italic text in the page will have red color
- All the page text under
tag and tag will be red - All the italic text with in a paragraph will be red
Question 19
Background-position sets the position of the background image what happens if its value is 0% 0%?
- Image will have zero width and height so it will be hidden.
- Image will be positioned at the upper left corner.
- Image will be positioned at the lower right corner
- None of the above
Question 20
You want to increase the space between the lines in all you paragraphs. What will you use?
- P{width:1cm}
- P{height: 1cm}
- P{line-height:1cm}
- P{line-width:1cm}
Sem comentários:
Enviar um comentário