Web Designing MCQs

Objective Questions on CSS with Answer set-3

Pinterest LinkedIn Tumblr
Here are the collections of objective questions on CSS includes multiple-choice questions on the fundamentals of CSS along with their answers. It includes objective type interview questions on different CSS properties, CSS outlines properties, overflow property in CSS, CSS pseudo-classes, !important property in CSS, and the examples of ID selectors.

1. The following syntax to set margin around a paragraph will make- p{margin:10px 2%}
A) The top and bottom margin will be 10px and the left and right margin will be 2% of the total width.
B) Left and right margin will be 10px and top and bottom margin will be 2% of the total height
C) Top margin will be 10px and other margins will be 2% of the total width
D) Left margin will be 10px and other margins will be 2% of the total width

2. The …………………. property allows you to control the shape or style of bullet point in the case of unordered lists, and the style of numbering characters in an ordered list.
A) list-style-type
B) list-style-layout
C) list-type-style
D) list-type

3. The ……………………. property allows specifying the distance between the list and the text relating to the list.
A) list-spacing
B) marker-spacing
C) marker-offset
D) list-offset

4. The …………………. property allows specifying how much space appears between the content of an element and its border.
A) Spacing
B) Marking
C) Padding
D) Content-border

5. State True or False for CSS outlines properties.
i) An outline does take up space
ii) Outline does not have to be rectangular.
iii) An outline is always the same on all sides.
A) i-True, ii-True, iii-False
B) i-False, ii-False, iii-True
C) i-True, ii-False, iii-True
D) i-False, ii-True, iii-True

Read Also: Solved Multiple Choice Questions on Basic CSS

6. The overflow property in CSS can take one of the following values.
i) visible ii) hidden iii) scroll iv) non-scroll v) auto
A) i, ii, iii and iv only
B) i, ii, iii and v only
C) i, ii, iv and v only
D) All i, ii, iii, iv and v

7. Which of the following is/are the valid syntax for CSS pseudo-classes.
A) selector: pseudo-class{property: value}
B) selector.class: pseudo-class{property:value}
C) Both A and B
D) None of the above

8. The valid examples of ID selectors is/are
A) #black{color: #000000;}
B) h1 #black{color: #000000;}
C) #black h2{color: #000000;}
D) All of the above

9. Which of the following is/are the possible values of CSS pseudo element property?
i) : first line ii) : last-line iii) : before iv) : after v) : between
A) i, iii and iv only
B) i, ii, and v only
C) i, ii, iv and v only
D) All i, ii, iii, iv and v

10. The …………… rule is used to make sure that the property always is applied whether another property appears in CSS.
A) @important
B) #important
C) !important
D) !first

Answers:

1.  A) Top and bottom margin will be 10px and the left and right margin will be 2% of the total width.
2.  A) list-style-type
3.  C) marker-offset
4.  C) Padding
5.  D) i-False, ii-True, iii-True
6.  B) i, ii, iii and v only
7.  C) Both A and B
8.  D) All of the above
9   A) i, iii and iv only
10 C) !important

Read Next: Solved Objective Questions On CSS set-4

Please follow and like us:
RSS
Follow by Email
X (Twitter)
Visit Us
Follow Me
YouTube
YouTube
LinkedIn
linkedIn | Objective Questions on CSS with Answer set-3
Share

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Comments are closed.

RSS
Follow by Email
X (Twitter)
Visit Us
Follow Me
YouTube
YouTube
LinkedIn
Share