CSS Questions & Answers – Media Types

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

1. What does all media type is used for?
a) For use with all devices
b) For use with speech synthesizers
c) For use with handheld devices
d) For use with tactile Braille devices
View Answer

Answer: a
Explanation: None.

2. What does projection media type is used for?
a) For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.
b) For use with color computer screens
c) For use with handheld devices
d) For use with television-type devices
View Answer

Answer: a
Explanation: None.

3. What does tty media type is used for ?
a) For use with low-resolution teletypes, terminals, or other devices with limited display capabilities.
b) For use with Braille printers.
c) For use with speech synthesizers.
d) For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.
View Answer

Answer: a
Explanation: None.
advertisement
advertisement

4. What does aural media type is used for ?
a) For use with low-resolution teletypes, terminals, or other devices with limited display capabilities
b) For use with Braille printers
c) For use with speech synthesizers
d) For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection
View Answer

Answer: c
Explanation: None.

5. What does braille media type is used for?
a) For use with all devices
b) For use with speech synthesizers
c) For use with handheld devices
d) For use with tactile Braille devices
View Answer

Answer: b
Explanation: None.

6. The __________ rule makes it possible to define different style rules for different media types in the same stylesheet.
a) audio/video
b) sink
c) @media
d) @canvas
View Answer

Answer: c
Explanation:
Example:

@media screen {
    p {
        font-family: verdana, sans-serif;
        font-size: 17px;
    }
}

7. What is the way to specify media dependencies for style sheets ?
a) Specify the target medium from a style sheet with the @media or @import at-rules
b) Specify the target medium within the document language
c) both Specify the target medium from a style sheet with the @media or @import at-rules and Specify the target medium within the document language
d) none of the mentioned
View Answer

Answer: c
Explanation: Self-explainatory.
advertisement

8. ____________ types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document.
a) tv
b) tty
c) media
d) audio
View Answer

Answer: c
Explanation: Media types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document. However, user agents may use different media types on different canvases. For example, a document may (simultaneously) be shown in ‘screen’ mode on one canvas and ‘print’ mode on another canvas.
advertisement

9. If an @media/@import rule contains a malformed media type (not an identifier) then the statement is valid. State true or false.
a) True
b) False
View Answer

Answer: b
Explanation: @media and @import rules with unknown media types (that are nonetheless valid identifiers) are treated as if the unknown media types are not present. If an @media/@import rule contains a malformed media type (not an identifier) then the statement is invalid.

10. Media type names are case-insensitive. State true or false.
a) True
b) False
View Answer

Answer: a
Explanation: self explanatory.

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.