CSS Multiple Choice Questions & Answers on Measurements in CSS for Freshers

1. Which of the following measurement defines a measurement in centimeters?

a) c
b) cm
c) centi
d) centimeter
Answer: b

Explanation:
Example: div {margin-bottom: 1cm;}
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
Answer: c

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.
3. Which of the following measurement defines a measurement in points?

a) px
b) in
c) em
d) pt
Answer: d

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.
4. Which of the following measurement defines a measurement in inches?

a) px
b) in
c) em
d) pt
Answer: b

Explanation:
Example: p {word-spacing: .25in;}
5. Which of the following measurement defines a measurement in pixels?

a) px
b) in
c) em
d) pt
Answer: a
6. Which of the following measurement defines a measurement relative to a font’s x-height?

a) e
b) xh
c) ex
d) rxh
Answer: c

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.
7. Which of the following measurement is relative to 1percentage of viewport’s larger dimension?

a) vw
b) vmax
c) vmin
d) ch
Answer: b
8. Which of the following measurement is relative to 1percentage of the width of the viewport?

a) vw
b) vmax
c) vmin
d) ch
Answer: a
9. Which of the following measurement is relative to 1% of the height of the viewport?

a) ch
b) rem
c) %
d) vh
Answer: d
10. Which of the following measurement is relative to font-size of the root element?

a) rem
b) kd
c) rr
d) hx
Answer: a

Related

Linux Questions & Answers on vi Editor for Freshers

1. Which one of the following statement is not true? a) vim editor is the improved version of vi editorb) vi editor commands are not case sensitivec) vi editor has two modes of operation: command m...

C# Question & Answers on Maths Class for Freshers

1. Which of these classes contains only floating point functions? a) Mathb) Processc) Systemd) Object Answer: a Explanation: Math class contains all the floating point functions that are used for...

Linux Bash Shell Questions & Answers on Built-in Commands for Freshers

1. Which command sets up shorthand for command or command line? a) set b) alias c) new d) echo Answer: b 2. What is the function of bind command in bash shell? a) defining new macros b) defini...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item