Secret mind

hi Friends, I am Aman gupta and a web developer. I learned many languages such as java, javaScript, python, clang, php, jquery, mysql database, Html and css and many more just to make a perfect and wonderfully website. Here i will upload related post of PHP, Secret of world, computer science, Feelings, GK, And Question paper.

Trending video

Responsive Ads Here

Sunday, January 5, 2020

Web Technology - CSS MCQ questions

Web Technology - CSS



1: What Is CSS Stand For

  • Cascading Style Sheets
  •  Cascade Style Sheet
  •  Color Style Sheets
  •  Cascade Sheets Style


Ans: Cascading Style Sheets

2:  The Default Value Of "position" Attribute Is

  •  Fixed
  •  Absolute
  •  Inherit
  •  Static

Ans: Static

3:Pseudo-classes In CSS

  •  Match A Specified Element
  •  Select The Active Links
  •  Are Used To Select All The Visited Links
  •  Are Used To Define A Special State Of An Element


Ans: Are Used To Define A Special State Of An Element

4: Which Event Will Be Used When A Connection To The Server Is Opened

  • Onmessage
  •  Onopen
  •  Onerror
  •  None Of The Above


Ans: Onopen

5: Which Is The Correct CSS Syntax?

  • Body:color=black
  •  {body;color:black}
  •  {body:color=black(body}
  •  Body {color: Black}


Ans:  Body {color: Black}

6: Which CSS Property Sets The Stack Order Of An Element?

  •  Z-index
  •  Position
  •  Overflow
  •  Clip


Ans: Z-index

7: Which CSS Property Is Used For Controlling The Layout?

  •  Header
  •  Footer
  •  Display
  •  None Of The Above


Ans: Display

8:  Which CSS Property Sets A Background Image For An Element?

  •  Background - Color
  •  Background - Image
  •  Background - Attachment


Ans: Background - Image

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

  •  Id
  •  Text
  •  Class
  •  Name


Ans: Id

10: What Should Be The Table Width, So That The Width Of A Table Adjust To The Current Width Of The Browser Window?

  •  640 Pixels
  •  100.00%
  •  Full-screen
  •  1024 Px


Ans: 100.00%

11:  Which Of The Following Properties Will We Use To Display Border Around A Cell Without Any Content ?

  •  Noncontent-cell
  •  Blank-cell
  •  Empty-cell
  •  Void-cell


Ans: Empty-cell

12:  When We Write <img Src="img.png">, What "img.png" Inside Double Quote Implies?

  •  Value
  •  Element
  •  Attribute
  •  Operator

Ans: Value

13: How Can We Write Comment Along With CSS Code ?

  •  / A Comment /
  •  // A Comment //
  •  /* A Comment */
  •  <' A Comment'>


Ans: /* A Comment */

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

  •  Font-style
  •  Font-size
  •  Text-size
  •  Text-style


Ans: Font-size

15:  Which Of The Following Selector Selects All Elements Of E That Have The Attribute Attr That End With The Given Value?

  •  E[attr^=value]
  •  E[attr$=value]
  •  E[attr*=value]
  •  None Of The Mentioned


Ans: E[attr$=value]

16:  Which Of The Following Selector Selects The Elements That Are Checked?

  •  E ~ F
  •  ::after
  •  :checked
  •  None Of The Mentioned

Ans: :checked

17:  Which Of The Following Selector Selects An Element That Has No Children?

  •  :empty
  •  :nochild
  •  :inheritance
  •  :no-child


Ans: :empty

18: Which Of The Following Selector Selects An Element If It's The Only Child Of Its Parent?

  •  :nth-oftype(n)
  •  :only-child
  •  :root
  •  None Of The Mentioned

Ans: :only-child

19: Which of the following selector matches a element based on its id?
A - The Id Selector
B - The Universal Selector
C - The Descendant Selector
D - The Class Selector

Ans: A


20: Which of the following defines a relative measurement for the height of a font in em spaces?
A - %
B - cm
C - em
D - ex

Ans: c


21:  Which of the following defines a measurement in screen pixels?
A - px
B - vh
C - vw
D - vmin

Ans: A

22: Which of the following property is used to set the color of a text?
A - color
B - direction
C - letter-spacing
D - word-spacing

Ans: A

23:   Which of the following property is used to set the height of an image?
A - border
B - height
C - width
D - -moz-opacity


Ans: B

24: Which of the following property specifies whether a border should be solid, dashed line, double line, or one of the other possible values?
A - :border-color
B - :border-style
C - :border-width
D - :border-bottom-color

Ans: B


25: Which of the following property changes the width of bottom border?
A - :border-bottom-width
B - :border-top-width
C - :border-left-width
D - :border-right-width

Ans: A


26: Which of the following property specifies the top margin of an element?
A - :margin
B - :margin-bottom
C - :margin-top
D - :margin-left

Ans: C

27: Which of the following property specifies the distance between a marker and the text in the list?
A - marker-offset
B - list-style-position
C - list-style-image
D - list-style

Ans: A




No comments:

Post a Comment

Please do not enter any spam link in the comment box.