1.Consideram urmatorul cod Html/CSS.
Ce culoare se va aplica textului?
Răspunsuri
1. Rosu
2. Albastru
3. Verde
4. Negru
5. Galben
2.
This CSS Online Test simulates a real online certification exams. You will be
presented Multiple Choice Questions (MCQs) based on CSS Concepts, where
you will be given four options. You will select the best suitable answer for the
question and then proceed to the next question without wasting given time.
You will get your online test score after finishing the complete test.
Q 1 - Which of the following property serves as shorthand for the marker
properties?
A - list-style-type
B - list-style-position
C - list-style-image
D - list-style
Corect D
Explanation
The list-style serves as shorthand for the marker properties.
Q 2 - Care dintre următoarele proprietăți specifică umplutura potrivită a unui
element?
A - fundul de umplutură
B - umplutura
C - umplutură-stânga
D - umplutură-dreapta
Answer : D
Explanation
The padding-right specifies the right padding of an element.
Q 2 - Which of the following property specifies the right padding of an
element?
a - padding-bottom
B - padding-top
C - padding-left
D - padding-right
Answer : D
Explanation
The padding-right specifies the right padding of an element.
Q 3 - Which of the following property serves as shorthand for the padding
properties?
A - padding
B - padding-top
C - padding-left
D - padding-right
Answer : A
Explanation
The padding serves as shorthand for the preceding properties.
Q 4 - Which of the following defines 1% of viewport width?
A - px
B - vh
C - vw
D - vmin
Answer : C
Explanation
vw − 1% of viewport width.
Q 5 - Which of the following defines a measurement in screen pixels?
A - px
B - vh
C - vw
D - vmin
Answer : A
Explanation
px − Defines a measurement in screen pixels.
Q 6 - Which of the following selector matches a element based on its class
attribute?
A - The Type Selector
B - The Universal Selector
C - The Descendant Selector
D - The Class Selector
Answer : D
Explanation
The Class Selector matches a element based on its class attribute.
Q 7 - Which of the following defines 1% of viewport height?
A - px
B - vh
C - vw
D - vmin
Answer : B
Explanation
vh − 1% of viewport height.
Q 8 - Which of the following selector selects all paragraph elements whose
lang attribute has a value of exactly "fr"?
A - p[lang]
B - p[lang="fr"]
C - p[lang~="fr"]
D - p[lang|="fr"]
Answer : B
Explanation
p[lang="fr"] − Selects all paragraph elements whose lang attribute has a
value of exactly "fr".
Q 9 - Which of the following is a way to associate styles with your HTML
document?
A - Embedded CSS - The
B - Inline CSS - The style Attribute
C - Both of the above.
D - None of the above.
Answer : C
Explanation
Both of the above.
Q 10 - Which of the following property changes the width of left border?
A - :border-bottom-width
B - :border-top-width
C - :border-left-width
D - :border-right-width
Answer : C
Explanation
The border-left-width changes the width of left border.
Q 11 - Which of the following property changes the width of right border?
A - :border-bottom-width
B - :border-top-width
C - :border-left-width
D - :border-right-width
Answer : D
Explanation
The border-right-width changes the width of right border.
Q 12 - Which of the following value of cursor shows it as the 'I' bar?
A - crosshair
B - default
C - pointer
D - move
Answer : D
Explanation
move: The 'I' bar
Q 13 - Which of the following value of cursor shows it as an arrow?
A - crosshair
B - default
C - pointer
D - move
Answer : B
Explanation
default: An arrow
Q 14 - Which of the following property of a table element specifies the width
that should appear between table cells?
A - :border-collapse
B - :border-spacing
C - :caption-side
D - :empty-cells
Answer : B
Explanation
The border-spacing specifies the width that should appear between table
cells.
Q 15 - Which of the following is correct about Browser Safe Colors?
A - These are 216 colors which are supposed to be most safe and computer
independent colors.
B - These colors vary from hexa code 000000 to FFFFFF.
C - These colors are safe to use because they ensure that all computers would
display the colors correctly when running a 256 color palette.
D - All of the above.
Answer : D
Explanation
All of the above options are correct.
Q 16 - Which of the following property is used to set the opacity of an image?
A - border
B - height
C - width
D - -moz-opacity
Answer : D
Explanation
The -moz-opacity property is used to set the opacity of an image.
Q 17 - Which of the following is correct about Short Hex Code format of CSS
colors?
A - This is a shorter form of the six-digit notation.
B - In this format, each digit is replicated to arrive at an equivalent six-digit
value.
C - Each hexadecimal code will be preceded by a pound or hash sign '#'.
D - All of the above.
Answer : D
Explanation
All of the above options are correct.
Q 18 - Which of the following property is used to set the background image
of an element?
A - background-color
B - background-image
C - background-repeat
D - background-position
Answer : B
Explanation
The background-image property is used to set the background image of an
element.
Q 19 - Which of the following property of a anchor element signifies an
element that currently has the user's mouse pointer hovering over it?
A - :link
B - :visited
C - :hover
D - :active
Answer : C
Explanation
The :hover signifies an element that currently has the user's mouse pointer
hovering over it.
Q 20 - Which of the following property is used to control the position of an
image in the background?
A - background-color
B - background-image
C - background-repeat
D - background-position
Answer : D
Explanation
The background-position property is used to control the position of an image
in the background.