CSS Functions

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function flips an element’s colors, for use by the filter property?
image()
flip()
invert()
contrast()
Explanation:
A decimal value between 0 and 1 or percentage up to 100% controls the extent of the color-negative effect, with 0.5 or 50% producing gray.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function applies a saturation effect to an element’s color, making it appear more or less vivid, for use by the filter property?
color()
saturation()
saturate()
none of the mentioned
Explanation:
A decimal value of 1 or percentage of 100% keeps the image as is, while increasing the amount produces more dramatically stratified hues.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function two dimensional transformation in matrix format?
matrix()
matrix2d()
matrix3d()
perspective
Explanation:
None.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
Which of the following element is used by the filter property to blur the images?
opaque()
scatter()
blur()
all of the mentioned
Explanation:
Blurs an element, for use by the filter property. Accepts a distance measurement within which pixels are randomly scattered. A value of 0 leaves the image as is.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function defines a linear gradient as a CSS image?
grayscale()
gradient()
image()
linear-gradient()
Explanation:
None.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function with filter property to create your own sophisticated effects on DOM elements?
create()
DOM()
custom()
none of the mentioned
Explanation:
None.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function converts an element’s color to a shade of gray, for use by the filter property?
shade()
grayscale()
black()
brightness()
Explanation:
A decimal value between 0 and 1 or percentage up to 100% controls the extent of the gray effect.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function adjusts the difference between light and dark values, for use by the filter property?
contrast()
dark()
light()
brightness()
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.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function adjust the brightness of an element’s color, for use by the filter property?
contrast()
dark()
light()
brightness()
Explanation:
A value of 100% or decimal value of 1 leaves the image as is, while 0 produces black. Increasing the value from 1 or 100% brightens pixels from their original values.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Which of the following function apply a sepia tinge to an element’s color, typical of old photographs, for use by the filter property?
grayscale()
sepia()
contrast()
brightness()
Explanation:
None.