Test Series - css

Test Number 53/59

Q: @page is not supported in ________
A. Firefox
B. Opera
C. Chrome
D. Internet Explorer
Solution: @page is not supported in Firefox, but is supported in Chrome 2.0+, IE 8.0+, Opera 6.0+ and safari 5.0+. @page:first is supported only in IE8+ and Opera 9.2+.
Q: Which of the following does not break long URLs into a shorter one?
A. Internet Explorer
B. Chrome
C. Firefox
D. Opera
Solution: word-wrap breaks long URLs when they reach a certain limit. This property is basically supported in a wide range of browsers even in IE 6, it works in chrome when printing. Firefox automatically breaks long URLs, Internet Explorer has no capability for breaking long URLs into the shorter one.
Q: Orphans and widows properties are supported by _________
A. Safari
B. Chrome
C. Firefox
D. Opera 9.2+
Solution: Orphan property sets the number of lines for the bottom of the page. The orphans and widows properties are supported in IE 8+ and Opera 9.2+, but not in Firefox, Chrome or Safari.
Q: Which of the following will take care of breaks behind an element?
A. page-break-before
B. page-break-inside
C. page-break-after
D. page-break-into
Solution: There are three CSS attributes page-break before, page-break-after and page-break-inside that allow us to decide exactly where a print page will be broken. Among other things, this will prevent images from being broken into two pieces.
Q: What prohibits the break?
A. always
B. avoid
C. left
D. right
Solution: Auto is print element’s standard, always places a break every time, avoid prohibits the break, left and right are for continuation pages that are formatted left or right accordingly.
Q: Which of the following media type is used for computer screens?
A. speech
B. screen
C. all
D. print
Solution: The screen media type is used for computer screens, smart-phones, tablets etc. The print media type is used for printers, speech is used for screenreaders that “reads” the page loud, all is used for all media type devices.
Q: Which value specifies the number of colors the device can display?
A. color-index
B. color-gamut
C. color
D. max-color
Solution: The number of colors the device can display is specified by color-index, color-gamut specifies the approximate range of colors that are supported by a user agent and output device. The number of bits per color component for the output device is specified by color value.
Q: Which value will define the viewport width?
A. width
B. resolution
C. pointer
D. update
Solution: Width specifies the width of the viewport, update specify how quickly can output device modify the appearance of the content, the scan is set for scanning process of the output device, the resolution of output device using dpi or dpcm is by resolution.
Q: Which of the following will specify minimum width of display area?
A. min-resolution
B. min-width
C. monochrome
D. overflow-block
Solution: The minimum width of a display area such as browser window is specified by min-width, min-resolution specify the minimum resolution of the device, using dpi or dpcm, monochrome specify the number of bits per “color” on a monochrome device.
Q: Which of the following specify the approximate range of colors?
A. max-color-index
B. max-color
C. color-index
D. color-gamut
Solution: The approximate range of colors that are supported by user agent and output device is specified by color-gamut, the number of colors the device can display is specified by color-index, the maximum number of bits per color component for the output device is specified by max-color.

You Have Score    /10