CSS Questions & Answers – Measurements in CSS

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. cm
Explanation 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. em
Explanation 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. pt
Explanation 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. in
Explanation 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. px

Q 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. ex
Explanation 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. vmax

Q 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. vw

Q 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. vh

Q 10. Which of the following measurement is relative to font-size of the root element?
A. hx
B. kd
C. rr
D. rem

Show Answer Answer:-D. rem


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page