Question No1.Which of the following tags can be used in place of a button tag?
a. legend
b. ol
c. input
d. dl
Answer:c
Question No 2.Which of the following is not a valid input type of the form tag?
a. checkbox
b. image
c. hidden
d. button
e. All are valid
Answer:e
Question No 3.It is not necessary to give the coordinates for an image or object defined within an area tag, if the value of its shape attribute is:
a.circle
b.poly
c.default
d. rect
Answer:c
Question No 4.Which of the following is/are a valid value for the type attribute of the input tag?
a. text
b. icon
c. reset
d. password
Answer:a,c,d
Question No 5.Which of the following is not correct for an action attribute for a form tag?
a.The action attribute can be defined at runtime.
b. If the value for action is null (action=”"), then the form submits user data to itself.
c. If the URL is not provided to the action attribute, the form will not submit user data anywhere.
d. None of the above
Answer:d
Question No 6.Which of the following values is/are valid for the align attribute of a tag?
a.left
b.right
c.center
d. offset
Answer:a,b,c
Question No 7.The following link is placed on an HTML webpage.
<a href=”http://msdn.com/” target=”_blank”> MSDN </a>
What do you infer from it?
a. It will open the site msdn.com in the same window.
b. It will open the site msdn.com in a new window.
c. It will open the site msdn.com in a frame below.
d. It will not be clickable as it is not formed correctly.
Answer:b
Question No 8.Is the following code valid in HTML 4.01 Strict?
<ul><li><ol><li>A</li><li>B</li><ul><li>Item1</li><li>Item 2</li></ul><li>C</li></ol></li></ul>
a. Perfectly valid.
b. Invalid because you should not have three levels of nesting in the lists.
c. Invalid because you should not have an unordered list within an ordered list.
d. Invalid because a <ul> tag should not conflict with an <ol> tag at the same list level.
Answer:a
Question No 9.Which of the following values for the scrolling attribute for the frame tag is not valid?
a.yes
b.default
c.auto
d. no
Answer:d
Question No 10.Which of the following set of coordinate values refers to an image defined by the area tag with the value of poly for its shape attribute?
a.coords=”150,217,190,257,150,297,110,257″
b.coords=”150,190,150,110″
c.coords=”150,217,190,257,150″
d. coords=”150,110,190,220,150,150,120″
Answer:b
Question No 11.What is meant by the cellspacing attribute?
a. It makes the cell span more than one column.
b. It specifies the space between the cell wall and the contents of the cell.
c. It specifies the space between two cells.
d. It makes the cell span more than one row.
Answer:c
Question No 12.Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
a. col
b. colgroup
c. rowspan
d. row
Answer:b
Question No 13.A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this?
a. div
b. p
c. span
d. format
Answer:b
Question No 14.You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading?
a. <tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>
b. <tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
c. <tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
d. <tr>
<th>Customer Name</th>
<th cellspacing=3>Contact</th>
</tr>
Answer:b
Question No 15.What would you infer from the following code in an HTML 4.01 Web site? <body topmargin=2 leftmargin=2>
a. The top margin and left margin of the webpage is 2 pixels.
b. The bottom margin and right margin of the web page is 2 pixels.
c. Both of the above.
d. None of the above. The topmargin and leftmargin attributes are not valid HTML 4.01 body attributes.
Answer:a
Question No 16.You specified a base tag and anchors as follows:
1. <base target=”_blank”>
2. <a href=”http://www.yahoo.com”>Yahoo</a>
3. <a href=”http://www.google.com” target=”_top”>Google</a>
Which of the following is true for the above code?
a. Only the Yahoo link will open in a new window.
b. Only the Google link will open in a new window.
c. Both links will open in a new window.
d. Both links will open in the same window.
Answer:c
Question No 17.On one of your Web pages named Listing.html, you specified a target like this:
<a name=”target4″>Old Listing</a>
How will you make a link to the above target?
a. <a url=”#target4″>Check Old Listing as well</a>
b. <a href=”#target4″>Check Old Listing as well</a>
c. <link url=”target4″>Check Old Listing as well</link>
d. <a href=”Listing.target4″>Check Old Listing as well</a>
Answer:b
Question No 18.Which attribute specifies the submit URL in a form tag?
a. method
b. action
c. name
d. id
Answer:b
Question No 19.How will you specify a comment in an HTML document?
a. <!!- Here is a comment… -!>
b. <-Here is a comment.. ->
c. <!– Here is a comment.. –>
d. <! Here is a comment… -!>
Answer:c
Question No 20.Which of the following is correct regarding the frame attribute in the <table> tag?
a. It is used to add a frame to the table.
b. A hsides value for the frame attribute will show the border lines for horizontal sides only.
c. A hsides value for the frame attribute will not show the border lines for horizontal sides only.
d. A hsides value for the frame attribute will add a scrollable frame on the horizontal sides.
Answer:b
Question No 21.What is meant by cellpadding?
a. It makes the cell span more than one column.
b. It specifies the space between the cell wall and the contents of the cell.
c. It specifies the space between two cells.
d. It makes the cell span more than one row.
Answer:b
Question No 22.For the following items of a <select> list:
<option value=”89″>Item 1</option>
<option value=”90″>Item 2</option>
Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?
a. 89
b. 90
c. Item 1
d. Item 2
Answer:b
Question No 23.You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name?
a. optgroup
b. option
c. menu
d. var
e. There is no way to do this
Answer:a
Question No 24.Which of the following shows the basic tag structure of an HTML document?
a. <html><head><body></body></html>
b. <html><body></body></html>
c. <html><head></head><body></body></html>
d. <html><head></head></html>
Answer:c
Question No 25.Within a table cell <td>:
a. <p></p> tags cannot be used.
b. <ol></ol> tags cannot be used
c. <table></table> tags cannot be used.
d. <form></form> tags cannot be used.
e. All the above tags could be used.
Answer:e
Question No 26.A developer wrote this image tag:
<img src =”states.gif” width =”330″ height =”406″ alt=”States”
usemap =”#statemap” />
What code should follow this?
a. <map id =”statemap” name=”statemap”>
<area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ />
</map>
b. <map id =”statemap” name=”statemap”> </map>
<area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ />
c. <map id =”statemap” name=”statemap”>
<img area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ /> </map>
d. <map id =”statemap” name=”statemap”>
<img area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ /> </map>
Answer:a
Question No 27.The tag which is used to show monospaced text is:
a. <td>
b. <th>
c. <tt>
d. <b>
Answer:b
Question No 28.The tag that is used to pass the parameters to anapplet is:
a. appletpar
b. applet
c. param
d. val
Answer:c
Question No 29.Which of the following attributes is/are valid for a select tag contained within a form tag?
a.name
b.size
c.multiple
d. All of the above
Answer:d
Question No 30.You want to provide a form field to the users for writing lengthy comments on the quality of the services provided by you. Which of the following tags will you use?
a. <textarea rows=”8″ cols=”20″> Your Comments…. </textarea>
b. <textarea row=”8″ col=”20″> Your Comments…. </textarea>
c. <textarea rowcount=”8″ colcount=”20″> Your Comments…. </textarea>
d. <input type=”text” maxlength=”100″/>
Answer:d
Question No 31.You are creating several web pages for a website that contain several rather large data tables, many of which are somewhat similar in the number of columns, rows, and in other common table formatting. In addition, CSS will be employed for formatting the tables. Which one of the following types of CSS has the highest priority over the others and typically requires the greatest total amount of code space for the entire website forformatting the various <td> table cells?
a.External style sheet
b.Inline style
c.Internal style sheet
d. Browser default
a. External style sheet
Answer:a
Question No 32.Which of the following attributes is/are related to the <img> tag?
a. height
b. alt
c. src
d. All of the above
Answer:d
Question No 33.Which of the following is/are not correct for a <meta> tag in HTML 4.01?
a. It is more useful if it is placed in a head element.
b. It can be used to specify the keywords for the searchengines.
c. It can be used to redirect users to other URLs.
d. It is mandatory to specify its name or scheme attributes.
Answer:d
Question No 34.Which of the following statements is correct for a blockquote?
a. It make the text a bit bigger for emphasizing.
b. It defines the start of a long quote.
c. It makes the text slightly bolder.
Ans: b
Question No 35.Which of the following is incorrect about the relation between HTML and XHTML?
a. XHTML is a stricter and cleaner version of HTML.
b. XHTML is almost identical to HTML 4.01.
c. XHTML and HTML both are used to generate dynamic content.
d. XHTML brings together the elements of HTML and the syntax of XML.
Answer:b
Question No 36.Which of the following statements is correct for the tag?
a. The text under block quote must be enclosed in a block level element in a strict DTD document.
b. The attribute named cite must be specified.
c. Closing the tag is optional.
d. It places an empty line after the text.
Answer:d
Question No 37.Which of the following is/are not true for a paragraph tag in HTML 4.01?
a. The text must be enclosed in <p> and </p> tags.
b. It creates an empty line above its starting line.
c. It cannot be used within a <td> tag.
d. It creates an empty line after its ending line.
Answer:b,c
Question No 38.A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?
a.td
b.p
c.ls
d. pre
Answer:d
Question No 39.Choose the incorrect statement(s):
a. An HTML attribute is additional information included inside a tag.
b. HTML is case sensitive.
c. All the HTML4.01 tags must be paired.
d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be
halted at any time after the browser is updated.
Answer:b
Question No 40.What do you infer from the following code? <a href = “http://www.expertrating.com”> Expert Rating
a.This href is using absolute path for linking.
b. This href is an example of relative path linking.
Answer:a
a. legend
b. ol
c. input
d. dl
Answer:c
Question No 2.Which of the following is not a valid input type of the form tag?
a. checkbox
b. image
c. hidden
d. button
e. All are valid
Answer:e
Question No 3.It is not necessary to give the coordinates for an image or object defined within an area tag, if the value of its shape attribute is:
a.circle
b.poly
c.default
d. rect
Answer:c
Question No 4.Which of the following is/are a valid value for the type attribute of the input tag?
a. text
b. icon
c. reset
d. password
Answer:a,c,d
Question No 5.Which of the following is not correct for an action attribute for a form tag?
a.The action attribute can be defined at runtime.
b. If the value for action is null (action=”"), then the form submits user data to itself.
c. If the URL is not provided to the action attribute, the form will not submit user data anywhere.
d. None of the above
Answer:d
Question No 6.Which of the following values is/are valid for the align attribute of a tag?
a.left
b.right
c.center
d. offset
Answer:a,b,c
Question No 7.The following link is placed on an HTML webpage.
<a href=”http://msdn.com/” target=”_blank”> MSDN </a>
What do you infer from it?
a. It will open the site msdn.com in the same window.
b. It will open the site msdn.com in a new window.
c. It will open the site msdn.com in a frame below.
d. It will not be clickable as it is not formed correctly.
Answer:b
Question No 8.Is the following code valid in HTML 4.01 Strict?
<ul><li><ol><li>A</li><li>B</li><ul><li>Item1</li><li>Item 2</li></ul><li>C</li></ol></li></ul>
a. Perfectly valid.
b. Invalid because you should not have three levels of nesting in the lists.
c. Invalid because you should not have an unordered list within an ordered list.
d. Invalid because a <ul> tag should not conflict with an <ol> tag at the same list level.
Answer:a
Question No 9.Which of the following values for the scrolling attribute for the frame tag is not valid?
a.yes
b.default
c.auto
d. no
Answer:d
Question No 10.Which of the following set of coordinate values refers to an image defined by the area tag with the value of poly for its shape attribute?
a.coords=”150,217,190,257,150,297,110,257″
b.coords=”150,190,150,110″
c.coords=”150,217,190,257,150″
d. coords=”150,110,190,220,150,150,120″
Answer:b
Question No 11.What is meant by the cellspacing attribute?
a. It makes the cell span more than one column.
b. It specifies the space between the cell wall and the contents of the cell.
c. It specifies the space between two cells.
d. It makes the cell span more than one row.
Answer:c
Question No 12.Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
a. col
b. colgroup
c. rowspan
d. row
Answer:b
Question No 13.A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this?
a. div
b. p
c. span
d. format
Answer:b
Question No 14.You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading?
a. <tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>
b. <tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
c. <tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
d. <tr>
<th>Customer Name</th>
<th cellspacing=3>Contact</th>
</tr>
Answer:b
Question No 15.What would you infer from the following code in an HTML 4.01 Web site? <body topmargin=2 leftmargin=2>
a. The top margin and left margin of the webpage is 2 pixels.
b. The bottom margin and right margin of the web page is 2 pixels.
c. Both of the above.
d. None of the above. The topmargin and leftmargin attributes are not valid HTML 4.01 body attributes.
Answer:a
Question No 16.You specified a base tag and anchors as follows:
1. <base target=”_blank”>
2. <a href=”http://www.yahoo.com”>Yahoo</a>
3. <a href=”http://www.google.com” target=”_top”>Google</a>
Which of the following is true for the above code?
a. Only the Yahoo link will open in a new window.
b. Only the Google link will open in a new window.
c. Both links will open in a new window.
d. Both links will open in the same window.
Answer:c
Question No 17.On one of your Web pages named Listing.html, you specified a target like this:
<a name=”target4″>Old Listing</a>
How will you make a link to the above target?
a. <a url=”#target4″>Check Old Listing as well</a>
b. <a href=”#target4″>Check Old Listing as well</a>
c. <link url=”target4″>Check Old Listing as well</link>
d. <a href=”Listing.target4″>Check Old Listing as well</a>
Answer:b
Question No 18.Which attribute specifies the submit URL in a form tag?
a. method
b. action
c. name
d. id
Answer:b
Question No 19.How will you specify a comment in an HTML document?
a. <!!- Here is a comment… -!>
b. <-Here is a comment.. ->
c. <!– Here is a comment.. –>
d. <! Here is a comment… -!>
Answer:c
Question No 20.Which of the following is correct regarding the frame attribute in the <table> tag?
a. It is used to add a frame to the table.
b. A hsides value for the frame attribute will show the border lines for horizontal sides only.
c. A hsides value for the frame attribute will not show the border lines for horizontal sides only.
d. A hsides value for the frame attribute will add a scrollable frame on the horizontal sides.
Answer:b
Question No 21.What is meant by cellpadding?
a. It makes the cell span more than one column.
b. It specifies the space between the cell wall and the contents of the cell.
c. It specifies the space between two cells.
d. It makes the cell span more than one row.
Answer:b
Question No 22.For the following items of a <select> list:
<option value=”89″>Item 1</option>
<option value=”90″>Item 2</option>
Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?
a. 89
b. 90
c. Item 1
d. Item 2
Answer:b
Question No 23.You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name?
a. optgroup
b. option
c. menu
d. var
e. There is no way to do this
Answer:a
Question No 24.Which of the following shows the basic tag structure of an HTML document?
a. <html><head><body></body></html>
b. <html><body></body></html>
c. <html><head></head><body></body></html>
d. <html><head></head></html>
Answer:c
Question No 25.Within a table cell <td>:
a. <p></p> tags cannot be used.
b. <ol></ol> tags cannot be used
c. <table></table> tags cannot be used.
d. <form></form> tags cannot be used.
e. All the above tags could be used.
Answer:e
Question No 26.A developer wrote this image tag:
<img src =”states.gif” width =”330″ height =”406″ alt=”States”
usemap =”#statemap” />
What code should follow this?
a. <map id =”statemap” name=”statemap”>
<area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ />
</map>
b. <map id =”statemap” name=”statemap”> </map>
<area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ />
c. <map id =”statemap” name=”statemap”>
<img area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ /> </map>
d. <map id =”statemap” name=”statemap”>
<img area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ /> </map>
Answer:a
Question No 27.The tag which is used to show monospaced text is:
a. <td>
b. <th>
c. <tt>
d. <b>
Answer:b
Question No 28.The tag that is used to pass the parameters to anapplet is:
a. appletpar
b. applet
c. param
d. val
Answer:c
Question No 29.Which of the following attributes is/are valid for a select tag contained within a form tag?
a.name
b.size
c.multiple
d. All of the above
Answer:d
Question No 30.You want to provide a form field to the users for writing lengthy comments on the quality of the services provided by you. Which of the following tags will you use?
a. <textarea rows=”8″ cols=”20″> Your Comments…. </textarea>
b. <textarea row=”8″ col=”20″> Your Comments…. </textarea>
c. <textarea rowcount=”8″ colcount=”20″> Your Comments…. </textarea>
d. <input type=”text” maxlength=”100″/>
Answer:d
Question No 31.You are creating several web pages for a website that contain several rather large data tables, many of which are somewhat similar in the number of columns, rows, and in other common table formatting. In addition, CSS will be employed for formatting the tables. Which one of the following types of CSS has the highest priority over the others and typically requires the greatest total amount of code space for the entire website forformatting the various <td> table cells?
a.External style sheet
b.Inline style
c.Internal style sheet
d. Browser default
a. External style sheet
Answer:a
Question No 32.Which of the following attributes is/are related to the <img> tag?
a. height
b. alt
c. src
d. All of the above
Answer:d
Question No 33.Which of the following is/are not correct for a <meta> tag in HTML 4.01?
a. It is more useful if it is placed in a head element.
b. It can be used to specify the keywords for the searchengines.
c. It can be used to redirect users to other URLs.
d. It is mandatory to specify its name or scheme attributes.
Answer:d
Question No 34.Which of the following statements is correct for a blockquote?
a. It make the text a bit bigger for emphasizing.
b. It defines the start of a long quote.
c. It makes the text slightly bolder.
Ans: b
Question No 35.Which of the following is incorrect about the relation between HTML and XHTML?
a. XHTML is a stricter and cleaner version of HTML.
b. XHTML is almost identical to HTML 4.01.
c. XHTML and HTML both are used to generate dynamic content.
d. XHTML brings together the elements of HTML and the syntax of XML.
Answer:b
Question No 36.Which of the following statements is correct for the tag?
a. The text under block quote must be enclosed in a block level element in a strict DTD document.
b. The attribute named cite must be specified.
c. Closing the tag is optional.
d. It places an empty line after the text.
Answer:d
Question No 37.Which of the following is/are not true for a paragraph tag in HTML 4.01?
a. The text must be enclosed in <p> and </p> tags.
b. It creates an empty line above its starting line.
c. It cannot be used within a <td> tag.
d. It creates an empty line after its ending line.
Answer:b,c
Question No 38.A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?
a.td
b.p
c.ls
d. pre
Answer:d
Question No 39.Choose the incorrect statement(s):
a. An HTML attribute is additional information included inside a tag.
b. HTML is case sensitive.
c. All the HTML4.01 tags must be paired.
d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be
halted at any time after the browser is updated.
Answer:b
Question No 40.What do you infer from the following code? <a href = “http://www.expertrating.com”> Expert Rating
a.This href is using absolute path for linking.
b. This href is an example of relative path linking.
Answer:a
0 comments:
Post a Comment
Comment Now