General Knowledge Flashcards

1
Q

Which of the style sheets is also known as Embedded Style Sheet ?

A Inline Style Sheet

B External Style Sheet

C Document Style Sheet

D None of the above

A

C Document Style Sheet

note: this is in the head section of the HTML document inside

style …. style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following properties is used to set the background image of an element ?

A background-repeat

B background-position

C background-image

D background-color

A

C background-image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following property of a table element specifies the width that should appear between table cells ?

A :empty-cells

B :caption-side

C :border-spacing

D :border-collapse

A

C :border-spacing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following properties is used to capitalize text or convert text to uppercase or lowercase letters ?

A text-decoration

B text-align

C text-indent

D text-transform

A

D text-transform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following properties is used to add or subtract space between the letters that make up a word ?

A direction

B color

C word-spacing

D letter-spacing

A

D letter-spacing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is the superior styles of html ?

A frame

B frames

C iframe

D css

A

D css

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The Disadvantages of Cascading Style Sheets is

A Browsers Compatibility

B Low Performance

C High Performance

D All of the above

A

A Browsers Compatibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following property is used to set the width of an image border ?

A width-of-border

B img-width

C border-width-img

D border

A

D border

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following value of cursor shows it as an arrow ?

A crosshair

B pointer

C move

D default

A

D default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following property of a table element specifies whether the border should be shown if a cell is empty ?

A border-spacing

B empty-cells

C border-collapse

D caption-side

A

B empty-cells

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following property is used to capitalize text or convert text to uppercase or lowercase letters ?

A text-decoration

B text-align

C text-indent

D text-transform

A

D text-transform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following properties is used to add or subtract space between the letters that make up a word ?

A direction

B color

C word-spacing

D letter-spacing

A

D letter-spacing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following property is used to set the background image of an element ?

A background-position

B background-repeat

C background-color

D background-image

A

D background-image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following property is used to change the face of a font ?

A font-variant

B font-weight

C font-family

D font-style

A

C font-family

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which of the following properties is used to add or subtract space between the words of a sentence ?

A word-spacing

B color

C direction

D letter-spacing

A

A word-spacing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following properties is used to set the text shadow around a text ?

A white-space

B text-decoration

C text-shadow

D text-transform

A

C text-shadow

17
Q

_____ is used to import an external style sheet in a manner similar to the element.

A #insert

B #import

C @insert

D @import

18
Q

The CSS anchor links properties are

A :link, :visited, :hover, :active, :inactive

B :link, :visited, :hover, :active

C :link, :visit, :hover, :active

D :link, :visited, :over, :active

A

B :link, :visited, :hover, :active
a:link - a normal, unvisited link.

a: visited - a link the user has visited.
a: hover - a link when the user mouses over it.
a: active - a link the moment it is clicked.

19
Q

*Internet Explorer 5-7* uses the _____ property to create transparent images.

A filter= alpha(opacity:x)

B -moz-opacity:x

C filter: alpha(opacity=x)

D none of the above

A

C filter: alpha(opacity=x)

20
Q

The different ways to associate styles with a HTML document is/are

A Inline CSS with style attribute.

B Embedded CSS with element

C External CSS with element.

D all the above

A

D all the above

21
Q

In CSS tables, the possible values for the caption-side property (which side of the table the caption will appear on) can have the following values.

A top, bottom, center, left or right

B left or right

C top or bottom

D top, bottom, left or right

A

D top, bottom, left or right

22
Q

Which of the following is correct about CSS ?

A Style sheets allow content to be optimized for more than one type of device.

B Using CSS, we can view offline websites. The cache also ensures faster loading and better overall performance of the website.

C CSS can store web applications locally with the help of an offline cache.

D All of the above.

A

D All of the above.

23
Q

To use inline styles you use the style attribute in the _____ tag

A link tag

B style tag

C relevant tag

D None of the above

A

C relevant tag

24
Q

Each style rule in a rule list has _____ parts.

A two

B three

C four

D five

A

A two as in selector { style: value }

25
Which of the following is not the selector type of CSS ? A Descendant selector B Type selector C Universal selector D Local selector
D Local selector
26
The correct example of class selector is A h2 #type1 {color: #000000;} B #h2 type1 {color: #000000;} C h2 type1 {color: #000000;} D h2.type1 {color: #000000;}
D h2.type1 {color: #000000;}