JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
CSS MCQ
1) CSS stands for -
a. Cascade style sheets
b. Color and style sheets
c. Cascading style sheets
d. None of the above
Answer: (c) Cascading style sheets
2) Which of the following is the correct syntax for referring the external style sheet?
a. <style src = example.css>
b. <style src = "example.css" >
c. <stylesheet> example.css </stylesheet>
d. <link rel="stylesheet" type="text/css" href="example.css">
Answer: (d) <link rel="stylesheet" type="text/css" href="example.css">
3) The property in CSS used to change the background color of an element is -
a. bgcolor
b. color
c. background-color
d. All of the above
Answer: (c) background-color
4) The property in CSS used to change the text color of an element is -
a. bgcolor
b. color
c. background-color
d. All of the above
Answer: (b) color
5) The CSS property used to control the element's font-size is -
a. text-style
b. text-size
c. font-size
d. None of the above
Answer: (c) font-size
6) The HTML attribute used to define the inline styles is -
a. style
b. styles
c. class
d. None of the above
Answer: (a) style
7) The HTML attribute used to define the internal stylesheet is -
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
a. <style>
b. style
c. <link>
d. <script>
Answer: (a) <style>
8) Which of the following CSS property is used to set the background image of an element?
a. background-attachment
b. background-image
c. background-color
d. None of the above
Answer: (b) background-image
9) Which of the following is the correct syntax to make the background-color of all paragraph
elements to yellow?
a. p {background-color : yellow;}
b. p {background-color : #yellow;}
c. all {background-color : yellow;}
d. all p {background-color : #yellow;}
Answer: (a) p {background-color : yellow;}
10) Which of the following is the correct syntax to display the hyperlinks without any underline?
a. a {text-decoration : underline;}
b. a {decoration : no-underline;}
c. a {text-decoration : none;}
d. None of the above
Answer: (c) a {text-decoration : none;}
11) Which of the following property is used as the shorthand property for the padding
properties?
a. padding-left
b. padding-right
c. padding
d. All of the above
Answer: (c) padding
12) The CSS property used to make the text bold is -
a. font-weight : bold
b. weight: bold
c. font: bold
d. style: bold
Answer: (a) font-weight : bold
13) Are the negative values allowed in padding property?
a. Yes
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
b. No
c. Can't say
d. May be
Answer: (b) No
14) Which of the following property is used as the shorthand property of margin properties?
a. margin-left
b. margin-right
c. margin
d. None of the above
Answer: (c) margin
15) The CSS property used to specify the transparency of an element is -
a. opacity
b. filter
c. visibility
d. overlay
Answer: (a) opacity
16) Which of the following is used to specify the subscript of text using CSS?
a. vertical-align: sub
b. vertical-align: super
c. vertical-align: subscript
d. None of the above
Answer: (a) vertical-align : sub
17) Which of the following CSS property is used to specify the space between every letter inside
an element?
a. alpha-spacing
b. character-spacing
c. letter-spacing
d. alphabet-spacing
Answer: (c) letter-spacing
18) The CSS property used to specify whether the text is written in the horizontal or vertical
direction?
a. writing-mode
b. text-indent
c. word-break
d. None of the above
Answer: (a) writing-mode
19) Which of the following syntax is correct in CSS to make each word of a sentence start with a
capital letter?
a. text-style : capital;
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
b. transform : capitalize;
c. text-transform : capital;
d. text-transform : capitalize;
Answer: (d) text-transform : capitalize;
20) How to select the elements with the class name "example"?
a. example
b. #example
c. .example
d. Class example
Answer: (c) .example
21) Which of the following is the correct syntax to select all paragraph elements in a div element?
a. div p
b. p
c. div#p
d. div ~ p
Answer: (a) div p
22) Which of the following is the correct syntax to select the p siblings of a div element?
a. p
b. div + p
c. div p
d. div ~ p
Answer: (d) div ~ p
23) The CSS property used to draw a line around the elements outside the border?
a. border
b. outline
c. padding
d. line
Answer: (b) outline
24) Which of the following CSS property is used to add shadows to the text?
a. text-shadow
b. text-stroke
c. text-overflow
d. text-decoration
Answer: (a) text-shadow
25) Which of the following is not a value of the font-variant property in CSS?
a. normal
b. small-caps
c. large-caps
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
d. inherit
Answer: (c) large-caps
26) Which of the following CSS property is used to specify whether the table cells share the
common or separate border?
a. border-collapse
b. border-radius
c. border-spacing
d. None of the above
Answer: (a) border-collapse
27) The CSS property used to make the rounded borders, or rounded corners around an element
is -
a. border-collapse
b. border-radius
c. border-spacing
d. None of the above
Answer: (b) border-radius
28) The CSS property used to set the distance between the borders of the adjacent cells in the
table is -
a. border-collapse
b. border-radius
c. border-spacing
d. None of the above
Answer: (c) border-spacing
29) Which of the following selector in CSS is used to select the elements that do not match the
selectors?
a. :! selector
b. :not selector
c. :empty selector
d. None of the above
Answer: (b) :not selector
30) Which of the following is not a type of combinator?
a. >
b. ~
c. +
d. *
Answer: (d) *
31) Which of the following CSS property defines how an image or video fits into container with
established height and width?
1. object-fit
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
2. object-position
3. position
4. None of the above
Answer: (a) object-fit
32) Which type of CSS is used in the below code?
a. <p style = "border:2px solid red;">
a. Inline CSS
b. Internal CSS
c. External CSS
d. None of the above
Answer: (a) Inline CSS
33) Which of the following CSS property specifies the origin of the background-image?
a. background-origin
b. background-attachment
c. background-size
d. None of the above
Answer: (a) background-origin
34) The CSS property used to set the maximum width of the element's content box is -
a. max-width property
b. height property
c. max-height property
d. position property
Answer: (a) max-width property
35) Which if the following CSS function allows us to perform calculations?
a. calc() function
b. calculator() function
c. calculate() function
d. cal() function
Answer: (a) calc() function
36) The CSS property used to set the maximum height of the element's content box is -
a. max-width property
b. height property
c. max-height property
d. position property
Answer: (c) max-height property
37) The CSS property used to set the minimum width of the element's content box is -
a. max-width property
b. min-width property
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
c. width property
d. All of the above
Answer: (b) min-width property
38) Which of the following CSS property is used to represent the overflowed text which is not
visible to the user?
a. text-shadow
b. text-stroke
c. text-overflow
d. text-decoration
Answer: (c) text-overflow
39) The CSS property which is used to define the set the difference between two lines of your
content is -
a. min-height property
b. max-height property
c. line-height property
d. None of the above
Answer: (c) line-height property
40) The CSS property which is used to define the set the difference between two lines of your
content is -
a. min-height property
b. max-height property
c. line-height property
d. None of the above
Answer: (c) line-height property
41) Which of the following CSS property is used to add stroke to the text?
a. text-stroke property
b. text-transform property
c. text-decoration property
d. None of the above
Answer: (a) text-stroke property
42) Which of the following CSS property is used to set the blend mode for each background layer
of an element?
a. background-blend-mode property
b. background-collapse property
c. background-transform property
d. background-origin property
e. Show Answer- background-blend-mode property
43) The CSS property used to specify the transparency of an element is -
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
a. Hover
b. opacity
c. clearfix
d. overlay
Answer: (b) opacity
44) Which of the following CSS property is used to set the horizontal alignment of a table-cell
box or the block element?
a. text-align property
b. text-transform property
c. text-shadow property
d. text-decoration
Answer: (a) text-align property
45) The CSS property which is used to set the text wider or narrower compare to the default
width of the font is -
a. font-stretch property
b. font-weight property
c. text-transform property
d. font-variant property
Answer: (a) font-stretch property
46) Which of the following CSS property is used to specify the type of quotation mark?
a. quotes property
b. z-index property
c. hyphens property
d. None of the above
Answer: (a) quotes property
47) The CSS property used to specify the order of flex item in the grid container is -
a. order property
b. float property
c. overflow property
d. None of the above
Answer: (a) order property
48) The CSS property used to set the indentation of the first line in a block of text is -
a. text-indent property
b. text-stroke property
c. text-decoration property
d. text-overflow property
Answer: (a) text-indent property
JAWAHAR COMPUTER EDUCATION®
H.O. A-873/1,SEC-I,AASHIYANA,LUCKNOW, Ph.9807961233, 9335926583
B. O. ---K-23, BARABIRVA, NEAR RAJA RAM HOSPITAL , ALAMBAGH, LUCKNOW
FULL ACCREDITED CENTRE FOR “ O “ level & CCC
49) Which of the following CSS property creates a clipping region and specifies the visible area of
the element?
a. visibility property
b. background-clip property
c. clip-path property
d. None of the above
Answer: (c) clip-path property
50) The correct syntax to give a line over text is -
1. text-decoration: line-through
2. text-decoration: none
3. text-decoration: overline
4. text-decoration: underline
Answer: (c) text-decoration: overline