CSS Questions and Answers Part-10

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

Answer: a
Explanation: For use with all devices

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

Answer: a
Explanation: For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.

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.

Answer: a
Explanation: For use with low-resolution teletypes, terminals, or other devices with limited display capabilities

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

Answer: c
Explanation: For use with speech synthesizers

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

Answer: b
Explanation: For use with speech synthesizers

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

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

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

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

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.

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

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.
a) True
b) False

Answer: a
Explanation: True