CSS Mock Test



This section presents you various set of Mock Tests related to CSS. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

CSS Mock Test III

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

A - text-indent

B - text-align

C - text-decoration

D - text-transform

Answer : D

Explanation

The text-transform property is used to capitalize text or convert text to uppercase or lowercase letters.

Q 2 - Which of the following property is used to control the flow and formatting of text?

A - white-space

B - text-shadow

C - text-decoration

D - text-transform

Answer : A

Explanation

The white-space property is used to control the flow and formatting of text.

Q 3 - Which of the following property is used to set the text shadow around a text?

A - white-space

B - text-shadow

C - text-decoration

D - text-transform

Answer : B

Explanation

The text-shadow property is used to set the text shadow around a text.

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

A - border

B - height

C - width

D - -moz-opacity

Answer : A

Explanation

The border property is used to set the width of an image border.

Q 5 - Which of the following property is used to set the height of an image?

A - border

B - height

C - width

D - -moz-opacity

Answer : B

Explanation

The height property is used to set the height of an image.

Q 6 - Which of the following property is used to set the width of an image?

A - border

B - height

C - width

D - -moz-opacity

Answer : C

Explanation

The width property is used to set the width of an image.

Q 7 - Which of the following property is used to set the opacity of an image?

A - border

B - height

C - width

D - -moz-opacity

Answer : D

Explanation

The -moz-opacity property is used to set the opacity of an image.

Q 8 - Which of the following property of a anchor element signifies unvisited hyperlinks?

A - :link

B - :visited

C - :hover

D - :active

Answer : A

Explanation

The :link signifies unvisited hyperlinks.

Q 9 - Which of the following property of a anchor element signifies visited hyperlinks?

A - :link

B - :visited

C - :hover

D - :active

Answer : B

Explanation

The :visited signifies unvisited hyperlinks.

Q 10 - Which of the following property of a anchor element signifies an element that currently has the user's mouse pointer hovering over it?

A - :link

B - :visited

C - :hover

D - :active

Answer : C

Explanation

The :hover signifies an element that currently has the user's mouse pointer hovering over it.

Q 11 - Which of the following property of a anchor element signifies an element on which the user is currently clicking?

A - :link

B - :visited

C - :hover

D - :active

Answer : D

Explanation

The :active signifies an element on which the user is currently clicking.

Q 12 - Which of the following property of a table element specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style?

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : A

Explanation

The border-collapse specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style.

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

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : B

Explanation

The border-spacing specifies the width that should appear between table cells.

Q 14 - Which of the following property of a table element controls the placement of the table caption?

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : C

Explanation

The caption-side captions are presented in the element. By default, these are rendered above the table in the document. You use the caption-side property to control the placement of the table caption.

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

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : D

Explanation

The empty-cells specifies whether the border should be shown if a cell is empty.

Q 16 - Which of the following property of a table element allows browsers to speed up layout of a table by using the first width properties it comes across for the rest of a column rather than having to load the whole table before rendering it?

A - :table-layout

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : A

Explanation

The table-layout allows browsers to speed up layout of a table by using the first width properties it comes across for the rest of a column rather than having to load the whole table before rendering it.

Q 17 - Which of the following property specifies the color of a border?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : A

Explanation

The border-color specifies the color of a border.

Q 18 - Which of the following property specifies whether a border should be solid, dashed line, double line, or one of the other possible values?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : B

Explanation

The border-style specifies whether a border should be solid, dashed line, double line, or one of the other possible values.

Q 19 - Which of the following property specifies the width of a border?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : C

Explanation

The border-width specifies the width of a border.

Q 20 - Which of the following property changes the color of bottom border?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : D

Explanation

The border-bottom-color changes the color of bottom border.

Q 21 - Which of the following property changes the color of top border?

A - :border-top-color

B - :border-left-color

C - :border-right-color

D - :border-bottom-color

Answer : A

Explanation

The border-top-color changes the color of top border.

Q 22 - Which of the following property changes the color of left border?

A - :border-top-color

B - :border-left-color

C - :border-right-color

D - :border-bottom-color

Answer : B

Explanation

The border-left-color changes the color of left border.

Q 23 - Which of the following property changes the color of right border?

A - :border-top-color

B - :border-left-color

C - :border-right-color

D - :border-bottom-color

Answer : C

Explanation

The border-right-color changes the color of right border.

Q 24 - Which of the following property changes the style of bottom border?

A - :border-bottom-style

B - :border-top-style

C - :border-left-style

D - :border-right-style

Answer : A

Explanation

The border-bottom-style changes the style of bottom border.

Q 25 - Which of the following property changes the style of top border?

A - :border-bottom-style

B - :border-top-style

C - :border-left-style

D - :border-right-style

Answer : B

Explanation

The border-top-style changes the style of top border.

Answer Sheet

Question Number Answer Key
1 D
2 A
3 B
4 A
5 B
6 C
7 D
8 A
9 B
10 C
11 D
12 A
13 B
14 C
15 D
16 A
17 A
18 B
19 C
20 D
21 A
22 B
23 C
24 A
25 B
css_questions_answers.htm
Advertisements