Web programming MCQs for placement and interview - Set 1

Web programming MCQs for placement and interview - Set 1


1.) When you create a "recipient" hidden field for a form, which of the following is the ONLY correct way to type the word "recipient?":
a.) Recipient
b.) <recipient></recipient>
c.) recipient
d.) RECIPIENT
View Answer / Hide Answer

ANSWER: b.) <recipient></recipient>




2.)Which file controls how your frames will appear?
a.) Frameset
b.) Master Document
c.) Template
d.) Timeline
View Answer / Hide Answer

ANSWER: a.) Frameset




3.) What can't layers do if you want to convert them to tables?
a.) Be close
b.) Contain a Color
c.) Be larger than the target table
d.) Overlap
View Answer / Hide Answer

ANSWER: c.) Be larger than the target table




4.) Which HTML tag is used to define an internal style sheet?
a.) <script>
b.) <css>
c.) none of them
d.) <style>
View Answer / Hide Answer

ANSWER: d.) <style>




5.) Which HTML attribute is used to define inline styles?
a.) font
b.) class
c.) styles
d.) style
View Answer / Hide Answer

ANSWER: c.) styles




6.) Which is the correct CSS syntax?
a.) body:color=black
b.) {body;color:black}
c.) {body:color=black(body}
d.) body {color: black}
View Answer / Hide Answer

ANSWER: d.) body {color: black}




7.) How do you change the text color of an element?
a.) text-color=
b.) text-color:
c.) color:
d.) fgcolor:
View Answer / Hide Answer

ANSWER: c.) color:




8.) How do you display hyperlinks without an underline?
a.) a {text-decoration:none}
b.) a {underline:none}
c.) a {text-decoration:no underline}
d.) a {decoration:no underline}
View Answer / Hide Answer

ANSWER: a.) a {text-decoration:none}




9.) How do you change the font of an element?
a.) font=
b.) f:
c.) font-family:
d.) None of the above
View Answer / Hide Answer

ANSWER: c.) font-family:




10.) How do you change the left margin of an element?
a.) text-indent:
b.) margin:
c.) margin-left:
d.) indent:
View Answer / Hide Answer

ANSWER: c.) margin-left:



Post your comment