| 5 التعليقات ]

-Hello to every one. in this tutorial i will show you how to pass the odesk HTML 4.01 Test (40 answers).

 Question1:
Which of the following font styling tag is not valid?


    a.     <small>
    b.     <i>
    c.     <b>
    d.     <big>
    e.     <large>

 the answers is:
    c.     <b>       

 Question2:
Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?


    a.     onload
    b.     onsubmit
    c.     onunload
    d.     onreset

 the answers is: 
    b.     onsubmit      

 Question3:
Which of the following tags can be used in place of a button tag?


    a.     legend
    b.     ol
    c.     input
    d.     dl

 the answers is:
    c.     input       

 Question4:
Which of the following is invalid value for the shape attribute of an area tag?


    a.     circle
    b.     tri
    c.     rect
    d.     poly

 the answers is:
    b.     tri       

 Question5:
What is the character-entity representation of the "less than" sign (<)?


    a.     60;#
    b.     &#60;
    c.     &60#;
    d.     #60&;

 the answers is:
    a.     60;#       

 Question6:
Which of the following statements is correct for the <blockquote> 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.

 the answers is:
    b.     The attribute named cite must be specified.       

 Question7:
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">
   <imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm"
   alt="State1" /></map>
    d.     <map id ="statemap" name="statemap"></map>
<imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm"
alt="State1" />

 the answers is:
    c.     <map id ="statemap" name="statemap">
   <imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm"
   alt="State1" /></map>
       

 Question8:
Which of the following is/are not valid?


    a.     <h2>Main Title</h2>
    b.     <h>Main Title</h>
    c.     <h3>Main Title</h3>
    d.     <h7>Main Title</h7>

 the answers is:
    b.     <h>Main Title</h>       

 Question9:
Where must the styles specified for a CSS internal style sheet be located?


    a.     Inside a table tag
    b.     Inside a div tag
    c.     Inside the head tag
    d.     Anywhere on the webpage

 the answers is:
    d.     Anywhere on the webpage      

 Question10:
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.

 the answers is: 
    d.     It makes the cell span more than one row.      

 Question11:
Which of the following is true for the <colgroup> tag?


    a.     The attribute named cols specifies the number of columns in colgroup.
    b.     It is useful for applying similar formatting to the grouped columns.
    c.     It can be used anywhere between the body tags.
    d.     It can be inserted in a <td> tag to include that cell to the group.

 the answers is:
    b.     It is useful for applying similar formatting to the grouped columns.       

 Question12:
Is the following code valid in HTML 4.01 Strict?

<ul> <li> <ol> <li>A</li> <li>B</li> <ul> <li>Item 1</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 you should not have an ordered list within an unordered list.
    e.     Invalid because a <ul> tag should not conflict with an <ol> tag at the same list level.

 the answers is:
    d.     Invalid because you should not have an ordered list within an unordered list.       

 Question13:
Which of the following is true for the <param> tag in HTML 4.01?


    a.     It does need a closing tag.
    b.     The language attribute cannot be specified with it.
    c.     The name and type attributes are optional.
    d.     The class, id, and title attributes can be specified for it.

 the answers is:
    a.     It does need a closing tag.       

 Question14:
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.

 the answers is:
    e.     All the above tags could be used.       

 This question is based upon the figure shown below


 Question15:
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 rowspan=3>Contact</th>
</tr>
    b.     <tr>
  <th>Customer Name</th>
  <th colspan=3>Contact</th>
</tr>
    c.     <tr>
  <th>Customer Name</th>
  <th cellpadding=3>Contact</th>
</tr>
    d.     <tr>
  <th>Customer Name</th>
  <th cellspacing=3>Contact</th>
</tr>

 the answers is:
b.     <tr>
  <th>Customer Name</th>
  <th colspan=3>Contact</th>
</tr>
       

 Question16:
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

 the answers is:
    c.     default       

 Question17:
A <!DOCTYPE> defines the document type of any HTML document. It can be of three types:


    a.     Strict, Transitional, or Frameset
    b.     Strict, Transitional, or Loose
    c.     Fixed, Intermediate, or Loose
    d.     Fixed, Intermediate, or Frameset

 the answers is:
    d.     Fixed, Intermediate, or Frameset       

 Question18:
You are designing a website for one of your clients. You have to use an applet named cal.class to show a scrollable calendar. Which of the following is the recommended way of calling it if you are using HTML 4.01?


    a.     <applet code="cal" width="180" height="180"></applet>
    b.     <img src="cal"></img>
    c.     <object classid="APPID" id="cal" width="180" height="180"></object>
    d.     <sub id="cal"></sub>

 the answers is:
    c.     <object classid="APPID" id="cal" width="180" height="180"></object>       

 Question19:
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... -!>

 the answers is:
    c.     <!-- Here is a comment.. -->       

 Question20:
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>

 the answers is:
    c.     <link url="target4">Check Old Listing as well</link>       

 Question21:
How does a button created by the <button> tag differ from the one created by an <input> tag?


    a.     An input tag button can be a reset button too.
    b.     A button tag button can be a reset button too.
    c.     An input tag button can include images as well.
    d.     A button tag can include images as well.

 the answers is:
    b.     A button tag button can be a reset button too.       

 Question22:
Which of the following would give a yellow background to the web page?
Note: The code used in the "correct" answer below was deprecated in HTML 4.01! Use styles instead for new code.


    a.     <body backcolor="Yellow">
    b.     <body background="Yellow">
    c.     <body bgcolor="Yellow">
    d.     <body color="Yellow">

 the answers is:
    d.     <body color="Yellow">       

 Question23:
Which of the following attributes is/are not associated with textarea tag in W3C standard HTML 4.01?


    a.     wrap
    b.     cols
    c.     name
    d.     rows
    e.     ref

 the answers is:
    c.     name       

 Question24:
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.

 the answers is:
    c.     A hsides value for the frame attribute will not show the border lines for horizontal sides only.       

 Question25:
Which of the following attributes is/are related to the <img> tag?


    a.     height
    b.     alt
    c.     src
    d.     All of the above

 the answers is:
    d.     All of the above       

 Question26:
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

 the answers is:
    b.     icon       

 Question27:
Which of the following statements is correct for a blockquote?


    a.     It makes the text a bit bigger for emphasizing.
    b.     It defines the start of a long quote.
    c.     It makes the text slightly bolder.

 the answers is:
    b.     It defines the start of a long quote.

 Question28:
Your website has moved to some other address. What HTML 4.01 code would automatically redirect a user to that address within 3 seconds of landing on the old address?


    a.     <meta http-equiv="refresh" content="3;url=www.newurl.com">
    b.     <meta http="refresh" url="www.newurl.com">
    c.     <meta scheme="refresh" name="redirect" http="www.newurl.com">
    d.     <meta http-equiv="redirect" content="3" http="www.newurl.com">

 the answers is:
    c.     <meta scheme="refresh" name="redirect" http="www.newurl.com">       

 Question29:
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"

 the answers is:
    b.     coords="150,190,150,110"       

 Question30:
While designing the links page of your website, you want the link to open in a new browser window. How will you implement this with HTML?


    a.     <anchor href="http://www.mailer.com">Mailer</anchor>
    b.     <anchor href=http://www.mailer.com target=_blank>Mailer</anchor>
    c.     <A HREF="http://www.mailer.com">Mailer </A>
    d.     <a href="http://www.mailer.com" target="_blank">Mailer</a>

 the answers is:
    b.     <anchor href=http://www.mailer.com target=_blank>Mailer</anchor>       

 Question31:
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.

 the answers is:
    c.     XHTML and HTML both are used to generate dynamic content.       

 Question32:
Your browser supports bidirectional text. Which tag below will you use if you need to display text from right to left?


    a.     <opposite>Text should go in opposite direction</opposite>
    b.     <p direction="rtl">Text should go in opposite direction</p>
    c.     <body dir="rtl">Text should go in opposite direction</body>
    d.     <text dir="rtl">Text should go in opposite direction</text>

 the answers is:
    b.     <p direction="rtl">Text should go in opposite direction</p>       

 Question33:
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.

 the answers is:
    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.       

 Question34:
You do not want the user to resize the frame. The code should be:


    a.     <frame src="MyPage.html" name="Homepage" scrolling=yes resize="false">
    b.     <frame src="MyPage.html" name="Homepage" scrolling=yes resize="true">
    c.     <frame src="MyPage.html" name="Homepage" scrolling=yes noresize="true">
    d.     <frame src="MyPage.html" name="Homepage" scrolling=yes noresize="noresize">

 the answers is:
    d.     <frame src="MyPage.html" name="Homepage" scrolling=yes noresize="noresize">       

 Question35:
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.

 the answers is:
    c.     It will open the site msdn.com in a frame below.       

 Question36:
The tag that is used to pass the parameters to an applet is:


    a.     appletpar
    b.     applet
    c.     param
    d.     val

 the answers is:
    b.     applet       

 Question37:
You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster's email address is webmaster@xcompany.com?


    a.     <a href="mailto:webmaster@xcompany.com">webmaster</a>
    b.     <a href="webmaster@xcompany.com">webmaster</a>
    c.     <a http="mail:webmaster@xcompany.com">webmaster</a>
    d.     <mail http="send:webmaster@xcompany.com">webmaster</mail>
    e.     <a href="mailto://webmaster@xcompany.com">webmaster</a>

 the answers is:
    e.     <a href="mailto://webmaster@xcompany.com">webmaster</a>       

 Question38:
Which attribute(s) of the <table> tag is/are deprecated in HTML 4.01?


    a.     align and cellspacing
    b.     summary
    c.     bgcolor and align
    d.     cellspacing

 the answers is:
    c.     bgcolor and align       

 Question39:
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" />

 the answers is:
    c.     <textarea rowcount="8" colcount="20"> Your comments ....
</textarea>
       

 Question40:
View the following code:

<html>
<frameset cols = "20%, 20%,*">
<frame src ="a.html"/><frame src ="b.html" /><frame src ="c.html" />
</frameset>
</html>

What will be displayed on viewing the above in a browser?


    a.     An HTML page with three columns of equal width.
    b.     An HTML page with three rows of equal height.
    c.     An HTML page with the last column occupying 60% space.
    d.     An HTML page with the last column occupying 40% space.

 the answers is:
    c.     An HTML page with the last column occupying 60% space.

Source

5 التعليقات

Faizal ahamed said... @ October 6, 2012 at 2:41 AM

Mostly Wrong Answers. Pls Check

Nosheen said... @ October 16, 2012 at 10:46 PM

you have mentioned almost all the wrong answers, please do not misguide the people.

Senthil Sivaramakrishnan said... @ November 3, 2012 at 10:56 AM

Yes I agree with Maria and Faizal..Don't do like this. If you have right knowledge then post it...poor answer

Md. Azharul Islam said... @ January 25, 2013 at 9:02 PM

I am asking the site author it will be highly appreciated and delighted would you like to tell me how, where you get this type of floating share button left side of your site.

Sincerely Yours,
Jijon

Unknown said... @ January 14, 2014 at 9:42 PM

Thanks a lot....
oDesk HTML 4.01 Test Questions and Answers – 2014

Post a Comment

Pulpit rock