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
‏إظهار الرسائل ذات التسميات MCQ Question. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات MCQ Question. إظهار كافة الرسائل

الأحد، 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




Web Technology - HTML MCQ typse Questions

Web Technology - HTML



1:HTML stands for?
A. Hyper Text Markup Language
B. High Text Markup Language
C. Hyper Tabular Markup Language
D. None of these

Ans: A

2: which of the following tag is used to mark a begining of paragraph ?
A.<TD>
B.<br>
C.<P>
D.<TR>

Ans: c

3:From which tag descriptive list starts ?
A.<LL>
B.<DD>
C.<DL>
D.<DS>

Ans: C

4: Correct HTML tag for the largest heading is
A.<head>
B.<h6>
C.<heading>
D.<h1>

Ans: D

5:The attribute of <form> tag
A.Method
B.Action
C.Both (a)&(b)
D.None of these

Ans: C

6: Markup tags tell the web browser
A.How to organise the page
B.How to display the page
C.How to display message box on page
D.None of these

Ans: B

7: www is based on which model?
A.Local-server
B.Client-server
C.3-tier
D.None of these

Ans: B

8: What are Empty elements and is it valid?
A.No, there is no such terms as Empty Element
B.Empty elements are element with no data
C.No, it is not valid to use Empty Element
D.None of these

Ans: B

9:  Which of the following attributes of text box control allow to limit the maximum character?
A.size
B.len
C.maxlength
D.all of these

Ans: C

10: Web pages starts with which ofthe following tag?
A.<Body>
B.<Title>
C.<HTML>
D.<Form>

Ans: C

11: HTML is a subset of
A.SGMT
B.SGML
C.SGMD
D.None of these

Ans: B

12:  Which of the following is a container?
A.Web Technology <SELECT>
B.<BODY>
C.<INPUT>
D.Both (a) and (b)

Ans: D

13: The attribute, which define the relationship between current document and HREF'ed URL is
A.REL
B.URL
C.REV
D.all of these

Ans: A

14:  <DT> tag is designed to fit a single line of our web page but <DD> tag will accept a
A.line of text
B.full paragraph
C.word
D.request

Ans: B

1\5: Correct HTML to left align the content inside a table cell is
A.<tdleft>
B.<td raligh = "left" >
C.<td align = "left">
D.<td leftalign>

Ans: C

16: The tag which allows you to rest other HTML tags within the description is
A.<TH>
B.<TD>
C.<TR>
D.<CAPTION>

Ans: D

17: How can you open a link in a new browser window?
A.< a href = "url" target = "new">
B.<a href = "url" target= "_blank">
C.<a href = "url".new>
D.<a href = "url" target ="open">

Ans: B

18:Which of the tag is used to creates a number list?
A.<LI>
B.<OL>
C.<LI> and <OL>
D.None of these

Ans: C

19: <INPUT> is
A.format tag
B.empty tag
C.both (a) and (b)
D.none of these

Ans: B


20: The latest HTML standard is
A.XML
B.SGML
C.HTML 4.0
D.HTML 5.0

Ans: D


21: The text inside the <TEXT AREA> tag works like
A,<P> formatted text
B.<T> formatted text
C.<PRE> formatted text
D.none of these

Ans: C

22:  What i s the correct HTML for adding a background color?
A.<background>yellow<Background>
B.<body color = "yellow">
C.<body bg color = "yellow">
D.<body bg ="yellow">

Ans: C

23:  Main container for <TR>, <TD> and <TH> is
A.<TABLE>
B.<GROUP>
C.<DATA>
D.All of these

Ans: A

24: The body tag usually used after
A.Title tag
B.HEAD tag
C.EM tag
D.FORM tag

Ans: B


25: Which tag creates a number/order list?
A.<UL>
B.<OL>
C.<OT>
D.None of these

Ans: B


26: Symbol used at the beginning of the HREF text is
A.#
B.$
C.&
D.^

Ans: A