CSS Questions & Answers – CSS Functions

This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Functions”.

1. Which of the following element is used by the filter property to blur the images?
a) opaque()
b) scatter()
c) blur()
d) all of the mentioned
View Answer

Answer: c
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.

2. Which of the following function adjust the brightness of an element’s color, for use by the filter property?
a) contrast()
b) dark()
c) light()
d) brightness()
View Answer

Answer: d
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.

3. 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()
View Answer

Answer: 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.
advertisement
advertisement

4. Which of the following function with filter property to create your own sophisticated effects on DOM elements?
a) create()
b) DOM()
c) custom()
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

5. Which of the following function converts an element’s color to a shade of gray, for use by the filter property?
a) shade()
b) grayscale()
c) black()
d) brightness()
View Answer

Answer: b
Explanation: A decimal value between 0 and 1 or percentage up to 100% controls the extent of the gray effect.

6. Which of the following function flips an element’s colors, for use by the filter property?
a) image()
b) flip()
c) invert()
d) contrast()
View Answer

Answer: c
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.

7. 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?
a) color()
b) saturation()
c) saturate()
d) none of the mentioned
View Answer

Answer: b
Explanation: A decimal value of 1 or percentage of 100% keeps the image as is, while increasing the amount produces more dramatically stratified hues.
advertisement

8. Which of the following function defines a linear gradient as a CSS image?
a) grayscale()
b) gradient()
c) image()
d) linear-gradient()
View Answer

Answer: d
Explanation: None.

9. Which of the following function two dimensional transformation in matrix format?
a) matrix()
b) matrix2d()
c) matrix3d()
d) perspective
View Answer

Answer: a
Explanation: None.
advertisement

10. Which of the following function apply a sepia tinge to an element’s color, typical of old photographs, for use by the filter property?
a) grayscale()
b) sepia()
c) contrast()
d) brightness()
View Answer

Answer: b
Explanation: None.

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.