17th
Apr
CSS MCQ

CSS MCQ

  • Admin
  • 17th Apr, 2021
  • 838 Followers

CSS MCQ Questions with Answers

Following are mostly asked Css MCQ test that are designed for professionals like you to crack you interviews. You can take this Css online test before appearing to you real interview. This Css quiz there are around 30+ multiple choice questions on Css with four options.

1) What should be the table width, so that the width of a table adjust to the current width of the browser window?

  • A. 1024 Px
  • B. 100.00%
  • C. 640 Pixels
  • D. Full-screen

2) Which is the correct css syntax?

  • A. {body;color:black}
  • B. Body:color=black
  • C. Body {color: Black}
  • D. {body:color=black(body}

3) When We Write , What "img.png" Inside Double Quote Implies?

  • A. Value
  • B. Attribute
  • C. Element
  • D. Operator

4) Which of the following properties will we use to display border around a cell without any content?

  • A. Void-cell
  • B. Empty-cell
  • C. Blank-cell
  • D. Noncontent-cell

5) Pseudo-classes In CSS

  • A. Select The Active Links
  • B. Match A Specified Element
  • C. Are Used To Select All The Visited Links
  • D. Are Used To Define A Special State Of An Element
Download Free : CSS MCQ PDF

6) Which css property is used for controlling the layout?

  • A. Footer
  • B. Header
  • C. Display
  • D. All of the Above

7) Which is the correct css syntax?

  • A. Body {color: Black}
  • B. {body;color:black}
  • C. Body:color=black
  • D. {body:color=black(body}

8) How Can We Write Comment Along With CSS Code?

  • A. / A Comment /
  • B. <' A Comment'>
  • C. // A Comment //
  • D. /* A Comment */

9) If We Want Define Style For An Unique Element, Then Which Css Selector Will We Use ?

  • A. Text
  • B. Class
  • C. Id
  • D. Name

10) What does CSS stands for?

  • A. Cascade Sheets Style
  • B. Cascade Style Sheet
  • C. Cascading Style Sheets
  • D. None of the above

11) The Default Value Of "position" Attribute Is

  • A. Fixed
  • B. Inherit
  • C. Static
  • D. Absolute

12) Which CSS Property Sets The Stack Order Of An Element?

  • A. Clip
  • B. Overflow
  • C. Position
  • D. Z-index

13) What is the Default Value Of "position" Attribute?

  • A. Fixed
  • B. Static
  • C. Inherit
  • D. Absolute

14) Which CSS Property Is Used To Control The Text Size Of An Element ?

  • A. Text-size
  • B. Text-style
  • C. Font-size
  • D. Font-style

15) In css, choose the correct option to select this image by its id? ``` .

  • A. .mainpic { }
  • B. img { }
  • C. #mainpic { }
  • D. mainpic { }

16) Which of the following is a valid unit for the font-size property in CSS?

  • A. lb
  • B. px
  • C. cx
  • D. None of the above

17) What is CSS used for?

  • A. to create a web page
  • B. to create interactive components of a web page
  • C. to define the style and format of one or more web pages
  • D. None of the above

18) Which of the following extension is used for CSS files?

  • A. .jsv
  • B. .html
  • C. .css
  • D. None of the above

19) What property would you use to make text bold?

  • A. font-family
  • B. font-style
  • C. font-weight
  • D. text-decoration

20) if we want to wrap a block of text around an image, which css property will we use mcq?

  • A. align
  • B. float
  • C. push
  • D. wrap

21) Which CSS Property Sets A Background Image For An Element?

  • A. Background - Image
  • B. Background - Color
  • C. Background - Attachment
  • D. All of the Above

22) Which property is used to change the left margin of an element?

  • A. float
  • B. indent
  • C. margin-left
  • D. padding-left

23) What are the types of CSS?

  • A. Internal CSS
  • B. Inline CSS
  • C. External CSS
  • D. All of the Above

24) Which css property you will use if you want to add some margin between a DIV's border and its inner text ?

  • A. spacing
  • B. margin
  • C. padding
  • D. inner-margin

25) __ is the origin of CSS.

  • A. SGML (Standard Generalized Markup Language)
  • B. HTML
  • C. DHTML
  • D. None of the above

26) What are the advantages of CSS?

  • A. Site-wide consistency
  • B. Page reformatting
  • C. Accessibility
  • D. All of the above

27) Name some CSS style components.

  • A. Selector
  • B. Property
  • C. Value
  • D. All of the above

28) The CSS __ property is used to specify the transparency of an element.

  • A. opacity
  • B. margin
  • C. position
  • D. padding

29) Which symbol used to Identify an Universal selector?

  • A. *
  • B. !
  • C. $
  • D. None of the above

30) What are the advantages of External Style Sheets?

  • A. You can create classes for reusing it in many documents.
  • B. In complex situations, you can use selectors and grouping methods to apply styles.
  • C. By using it, you can control the styles of multiple documents from one file.
  • D. All of the above

31) A CSS rule-set consists of a selector and a declaration block as follows:

  • A. h1{color:blue; font-size:30px;}
  • B. h1{color:blue font-size:30px;}
  • C. h1{color;blue; font-size;30px;}
  • D. All of the above

32) __ are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.

  • A. Colours
  • B. margins
  • C. paddings
  • D. All of the above

33) Which of the following CSS background properties?

  • A. background-image
  • B. background-position
  • C. background-repeat
  • D. background-attachment
  • E. All of the above

34) The border-style property specifies what kind of border to display. The following values are allowed:

  • A. solid
  • B. dotted
  • C. dashed
  • D. double
  • E. All of the above

35) The __ property is used to add rounded borders to an element:

  • A. border-radius
  • B. border-color
  • C. border-style
  • D. None of the above

36) The CSS __ properties are used to create space around elements, outside of any defined borders.

  • A. margin
  • B. padding
  • C. float
  • D. All of the above

37) The CSS __ properties are used to generate space around an element's content, inside of any defined borders.

  • A. padding
  • B. margin
  • C. background
  • D. None of the above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Apr
Wordpress MCQ
01st
May
Asp.Net Mcq
01st
May
IOS Swift MCQ
01st
Apr
Blue Prism MCQ