0% found this document useful (0 votes)
22 views

CSS MCQ Set Paper 2

Uploaded by

Prajwal Samshi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

CSS MCQ Set Paper 2

Uploaded by

Prajwal Samshi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

[Type]0

[Marks]1
[Negative Marks]0

Q.1) Which of the following is not a value for font-style property?


[a] normal
[b] italic
[c] oblique
*[d] none of the above

[S1] This is for the solution

Q.2) Which of the following selects a normal, or small-caps face from a


font family?
[a] font-synthesis
*[b] font-variant
[c] font-kerning
[d] font-weight

[S1] This is for the solution

Q.3) Which CSS property is equivalent for the attribute <xmp> <center>
</xmp>?
[a] color
[b] margin
*[c] align
[d] font

[S1] This is for the solution

Q.4) Which of the following CSS property is used to give a line over the
text?
[a]text-decoration: underline
[b] text-decoration: line-through
[c] text-decoration: none
*[d] text-decoration: overline

[S1] This is for the solution

Q.5) The text-align property defines the ___ alignment of text in an


element.
*[a] horizontal
[b] vertical
[c] both horizontal & vertical
[d] None of these

[S1] This is for the solution

Q.6) Which CSS property adds shadow to text?


[a] content-shadow
*[b] text-shadow
[c] word-shadow
[d] text-outline
[S1] This is for the solution

Q.7) Which CSS property is used to specify uppercase and lowercase


letters in a text?

[a] case
[b] text-case
*[c] text-transform
[d] text-casing

[S1] This is for the solution

Q.8) What are the valid values of text-transform property?


[a] uppercase, lowercase, capitalize, and sentence
*[b] uppercase, lowercase, and capitalize
[c] upper, lower, and capital
[d] upper, lower, capital, and sentence

[S1] This is for the solution

Q.9) What are the valid values of "text-decoration" property?

[a] overline, line-through, underline


[b] double-line, overline, line-through, underline, and none
*[c] overline, line-through, underline, and none
[d] None of these

[S1] This is for the solution

Q.10) The CSS border property specifies the style, color, and ___ of an
element's border.
[a] area
*[b] width
[c] size
[d] length

[S1] This is for the solution

Q.11) Which of the following property applies one or more drop shadows
to the text?
[a] text-decoration-shadows
[b] text-effect
*[c] text-shadow
[d] text-format
[S1] This is for the solution

Q.12) In the given line of code, identify the type of selector used.
#Main {background-color: yellow;}

[a] CSS element selector


*[b] CSS id selector
[c] Combinator selector
[d] All of the above

[S1] This is for the solution

Q.13) The Hex Code for the green color is ___.


[a] #F0000F
[b] #F0F000
*[c] #00FF00
[d] None of these

[S1] This is for the solution

Q.14) What does 'padding: 50px 20px;' specifies?

[a] top padding is 50px


[b] bottom padding is 20px
[c] right padding is 20px
*[d] Both A & C

[S1] This is for the solution

Q.15) Which of the following property is used to draw a line around


elements outside the borders?
[a] line
[b] padding
[c] border
*[d] outline

[S1] This is for the solution

Q.16) In this line of code, identify the selector ___.


p {border: 2px solid blue;}

[a] border
*[b] p
[c] 2px
[d] None of these

[S1] This is for the solution


Q.17) Width and height value can be specified in _______or in pixels.
[a] metre
[b] inches
*[c] percentage
[d] kilometer

[S1] This is for the solution

Q.18) Colour code of #FFFFFF stands for _______colour.


[a] green
*[b] white
[c]red
[d]black

[S1] This is for the solution

Q.19) What is the valid value of alpha parameter?


[a] 0 to 255
*[b] 0.1 to 1.0
[c] 0 to 360
[d] 0 to 90

[S1] This is for the solution

Q.20) In the below code snippet, in what order will the margins be
added?
p {
margin: 25px 50px 75px 100px;}
*[a]Top,Right,Bottom,Left
[b]Top,Left,Bottom,Right
[c]Top,Bottom,Right,Left
[d]Right,left,Top,Bottom

[S1] This is for the solution

Q.21) If we want to wrap a block of text around an image, which css


property will we use?
[a] wrap
*[b] float
[c] push
[d] align

[S1] This is for the solution


Q.22) Which one of these is NOT an appropriate value for the font-
variant property?
[a] normal
[b] small-caps
*[c] large-caps
[d]none of the above

[S1] This is for the solution

Q.23) The CSS property used to specify the transparency of an element


is?
*[a]Opacity
[b]Visibility
[c]Filter
[d]None of the above

[S1] This is for the solution

Q.24) How can we specify the spacing between each letter in a text in
CSS?

[a]Character-spacing
[b]Alpha-spacing
*[c]letter-spacing
[d]None of the above

[S1] This is for the solution

Q.25) Which of the following are valid CSS position property values?
[a]Static
[b]Relative
[c]Fixed
*[d]All of the above

[S1] This is for the solution

Q.26) Setting an inline-block in CSS requires which of the following


properties?
[a]color
*[b]Display
[c]Block
[d]None of the above

[S1] This is for the solution


Q.27) Which gradients define the color by their center?
[a] Linear Gradients
*[b] Radial Gradients
[c] Conic Gradients
[d] Both A. and B.

[S1] This is for the solution

Q.28) What is Hue in HSL color value?


[a] Hue is a normal color name
[b] Hue is a degree on the color wheel (from 0 to 180)
[c] Hue is a degree on the color wheel (from 0 to 90)
*[d] Hue is a degree on the color wheel (from 0 to 360)

[S1] This is for the solution

Q.29) Which is correct CSS statement to define blue background color


with opacity?
[a] background-color: rgba(0, 0, 255, 255)
*[b] background-color: rgba(0, 0, 255, 0.3)
[c] background-color: rgba(0, 255, 255, 0.3)
[d] background-color: rgba(0, 0, 1, 0.3)

[S1] This is for the solution

Q.30) Which CSS property defines the radius of an element's corners?


[a] border-corner
[b] radius
*[c] border-radius
[d] corner

[S1] This is for the solution

You might also like