CSS Language | 10 Minute‐Test 3


Instruction

  • Total number of questions : 10.
  • Time alloted : 10 minutes.
  • Each question carry 1 mark.
  • No Negative marks
  • DO NOT refresh the page.
  • All the best :-).

1.

In css what does “color:red” can be called as

A.
Selector
B.
Rule
C.
Declaration
D.
None of the above

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

None.

2.

Which of the following function adjusts the difference between light and dark values, for use by the filter property?

A.
contrast()
B.
dark()
C.
light()
D.
brightness()

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

A value of 100% or a decimal value of 1 leaves the image as is, while 0 results in black. Increasing the value past 1 or 100% produces more dramatically stratified areas of light and dark.

3.

Which of the following is not a value for font-style property?

A.
normal
B.
italic
C.
oblique
D.
none of the above

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

None.

4.

What is the CSS Property Equivalent for the align attribute?

A.
float
B.
text-align
C.
centre
D.
both (a) and (b)

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

In the case of some elements such as <img>, the CSS float property is more appropriate than text-align.

5.

h1
{
color: red;
text-decoration:underline;
font-style: italic;
}
What will happen in this case?

A.
color: red, text-decoration: underline and font-style: italic all works.
B.
text-decoration: underline and font-style: italic works.
C.
color: red, text-decoration: underline works.
D.
only font-style: italic works.

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

In this case, we should see the browser continue to parse the value of color as “red textdecoration: underline” before it sees a closing semicolon. The font-style property that follows would then be used. Because the color property has an illegal value, it should be ignored.

6.

The ________________ directive allows style sheets to be grouped and joined together, though some might wonder what the value of this function is given what linked styles provide.

A.
<head>
B.
<style>
C.
<script>
D.
@import

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

Within embedded <style> blocks, properties can be imported from an external file and expanded in place, similar to a macro. Importing can be used to include multiple style sheets. An imported style is defined within a <style> tag using @import followed optionally by a type value and a URL for the style sheet.

7.

Which of the following Color Format is a CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML?

A.
6-Hex Color
B.
3-Hex Color
C.
RGBS
D.
RGBa

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

The format specifies color as #rrggbb, where rr is the amount of red, gg the amount of green, and bb the amount of blue, all specified in a hexadecimal value ranging from 00 to FF.

8.

Which of the following property sets in a shorthand form any or all background properties?

A.
color
B.
wrap
C.
background
D.
all of the above

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

background: background-color

9.

Select the CSS property that sets the width of an element’s bottom border?

A.
border-width
B.
border-bottom
C.
border-width-down
D.
border-bottom-width

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

The border-bottom-width CSS property sets the width of the bottom border of a box.

10.

Which of the following sets what kind of line decorations are added to an element, such as underlines, overlines, etc?

A.
text-style
B.
text-decoration
C.
text-line
D.
text-decoration-line
Submit your test now to view the Results and Statistics with answer explanation.