Web programming MCQs for placement and interview - Set 3

Web programming MCQs for placement and interview - Set 3


1.) What is the preferred way for adding a background color in HTML?
a.) <body background="yellow">
b.) <background>yellow</background>
c.) < body style="background-color:yellow">
d.) <background color="yellow">text<background>
View Answer / Hide Answer

ANSWER: c.) < body style="background-color:yellow">




2.) What is the correct HTML for creating a hyperlink?
a.) <a name="">A</a>
b.) <a>B</a>
c.) <a href="http://www.example.com">example</a>
d.) <a url="http://www.example.com">example</a>
View Answer / Hide Answer

ANSWER: c.) <a href="http://www.example.com">example</a>




3.) How can you create an e-mail link?
a.) <mail href="a@b">
b.) <mail>a@b</mail>
c.) <a href="a@b">
d.) <a href="mailto:a@b.com">
View Answer / Hide Answer

ANSWER: d.) <a href="mailto:a@b.com">




4.) How can you open a link in a new browser window?
a.) <a href="url" new>
b.) <a href="url" target="new">
c.) <a href="url" target="_blank">
d.) <a href="url" target="">
View Answer / Hide Answer

ANSWER: c.) <a href="url" target="_blank">




5.) Which of these tags are all <table> tags?
a.) <table><head><tfoot>
b.) <table><tr><td>
c.) <table><tr><tt>
d.) <thead><body><tr>
View Answer / Hide Answer

ANSWER: b.) <table><tr><td>




6.) Which of the following JavaScript cannot do?
a.) JavaScript can react to events
b.) JavaScript can manipulate HTML elements
c.) JavaScript can be use to validate data
d.) All of the Above
View Answer / Hide Answer

ANSWER: d.) All of the Above




7.) Whats so great about XML?
a.) Easy data exchange
b.) High speed on network
c.) Only B.is correct
d.) Both A & B
View Answer / Hide Answer

ANSWER: d.) Both A & B




8.) Which is not a property of attribute Behaviour of <Marquee> tag?
a.) alternate
b.) blur
c.) scroll
d.) slide
View Answer / Hide Answer

ANSWER: b.) blur




9.) _________ keyword is used to declare variables in javascript.
a.) Var
b.) Dim
c.) String
d.) None of the above
View Answer / Hide Answer

ANSWER: a.) Var




10.) The attribute used to define a new namespace is.
a.) XMLNS
b.) XmlNameSpace
c.) Xmlns
d.) XmlNs
View Answer / Hide Answer

ANSWER: c.) Xmlns



Post your comment