CSS Questions & Answers – Targeting Styles with Media Queries

This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “Targeting Styles with Media Queries”.

1. Which of the following media feature describes the number of entries in the color lookup table of the output device
a) color
b) color-index
c) color-value
d) color-@media
View Answer

Answer: b
Explanation: The ‘color-index’ media feature describes the number of entries in the color lookup table of the output device. If the device does not use a color lookup table, the value is zero

2. Which of the following Viewport Property sets the initial scaling factor?
a) scale
b) initial-scale
c) minimum-scale
d) user-scale
View Answer

Answer: b
Explanation: Self-explainatory.

3. Which of the following Viewport Property determines whether the display can be zoomed in
and out?
a) scale
b) set-scale
c) adjust-scale
d) user-scalable
View Answer

Answer: d
Explanation: Self-explainatory.
advertisement
advertisement

4. Which of the following @viewport Property sets the viewport height in the same way as width?
a) height
b) width
c) viewpor-width
d) none of the mentioned
View Answer

Answer: a
Explanation: Self-explainatory.

5. Which of the following @viewport Property locks the document in the specified orientation, portrait or landscape?
a) orientation
b) resolution
c) landscape
d) portrait
View Answer

Answer: a
Explanation: Self-explainatory.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Which of the following Media Query describe the ratio of the device width to the device height of the media?
a) device-aspect
b) device-aspect-ratio
c) device-aspect-query
d) none of the mentioned
View Answer

Answer: c
Explanation: Self-explainatory.

7. Which of the following Media Query determines if output is grid, like a simple terminal or phone, or bitmap, like a standard monitor or printer?
a) monochrome
b) grid
c) resolution
d) device-height
View Answer

Answer: b
Explanation: Self-explainatory.
advertisement

8. Which of the following Media Query describes the scanning method of a TV?
a) orientation
b) scan
c) resolution
d) none of the mentioned
View Answer

Answer: b
Explanation: Self-explainatory.

9. Which of the following Media Query determines if output is monochrome and how many bits are used for gray display?
a) gray
b) chrome
c) monochrome
d) none of the mentioned
View Answer

Answer: c
Explanation: Self-explainatory.
advertisement

10. A media query consists of a media type and zero or more expressions that check for the conditions of particular media features. State true or false.
a) True
b) False
View Answer

Answer: a
Explanation: Self-explainatory.

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.