CSS Multiple Choice Questions & Answers (MCQs) focuses on “Measurements in CSS”.
Q 1. Which of the following measurement defines a measurement in centimeters?
A. c
B. cm
C. centi
D. centimeter
Show Answer
Answer:-B. cmExplanation
Example: div {margin-bottom: 1cm;}Q 2. Which of the following measurement defines a measurement relative to the height of a font in em spaces?
A. px
B. in
C. em
D. pt
Show Answer
Answer:-C. emExplanation
Defines a measurement relative to the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each em unit would be 12pt, thus 2em would be 24pt.Q 3. Which of the following measurement defines a measurement in points?
A. px
B. in
C. em
D. pt
Show Answer
Answer:-D. ptExplanation
Defines a measurement in points. A point is defined as 1/72nd of an inch. A point does not equate to a pixel unless there are 72 pixels per inch onscreen.Q 4. Which of the following measurement defines a measurement in inches?
A. px
B. in
C. em
D. pt
Show Answer
Answer:-B. inExplanation
Example: p {word-spacing: .25in;Q 5. Which of the following measurement defines a measurement in pixels?
A. in
B. px
C. em
D. pt
Show Answer
Answer:-B. pxQ 6. Which of the following measurement defines a measurement relative to a font’s x-height?
A. e
B. xh
C. ex
D. rxh
Show Answer
Answer:-C. exExplanation
Defines a measurement relative to a font’s x-height. The x-height is determined by the height of the font’s lowercase letter x.Q 7. Which of the following measurement is relative to 1percentage of viewport’s larger dimension?
A. vw
B. vmin
C. vmax
D. ch
Show Answer
Answer:-C. vmaxQ 8. Which of the following measurement is relative to 1percentage of the width of the viewport?
A. vw
B. vmax
C. vmin
D. ch
Show Answer
Answer:-A. vwQ 9. Which of the following measurement is relative to 1% of the height of the viewport?
A. vh
B. rem
C. %
D. ch
Show Answer
Answer:-A. vhQ 10. Which of the following measurement is relative to font-size of the root element?
A. hx
B. kd
C. rr
D. rem
Leave a Reply