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
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
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
Explanation: Self-explainatory.
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
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
Explanation: Self-explainatory.
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
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
Explanation: Self-explainatory.
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
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
Explanation: Self-explainatory.
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
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.
- Check CSS Books
- Practice Computer Science MCQs
- Apply for Computer Science Internship
- Practice HTML MCQ
- Check Computer Science Books