Pages

Tuesday, August 7, 2012

How to Pass Odesk HTML 4.01 Test 2012 - Free Questions and Answers

If you own a blog or a website, it is important to learn HTML because after all, it is a very easy language to learn yet very beneficial in ensuring that your website or blog is search engine optimized (SEO). Making your blog or website SEO compliant has the following advantages: -
  1. Easy accessibility by disabled persons 
  2. Enables pages to load faster Enables pages to be accessible to different devices such as desktop, laptop, PDAs and mobiles 
  3. Enables current and future browsers to display pages in the same way.

First and foremost you should visit the World Wide consortium, an international community which provides guidelines of how HTML should be structured on your website or blog. To learn about HTML coding, visit the W3c Tutorial site which have numerous tutorials on HTML tags and their attributes. From W3c site, you can teach yourself how to design a website from scratch.

Do not try to sit for any Odesk HTML 4.01test if you have not gone through these tutorials because it will neither be of any help to you nor to the prospective client. Your test preparation should be based upon the syllabus given below.

Odesk Html 4.01 Test syllabus 
  1. Advanced tags
  2. Fundamentals
  3. Tags 
  4. Tables Links and Images
  5. Forms and Frames

Having done all, bear in mind that you can always retake this exam after 30 days waiting period. The test takes 40 minutes to complete 40 questions. I wish you all the best.Below is a sample of Odesk HTML questions and answers to help you prepare for the test.

Free Odesk HTML 4.01 Test Question and Answers


Question 1
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

Question 2
Question no. 30 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… -!>

Question 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

Question 4
Which of the following attributes is/are related to the <img> tag?
a.      Height
b.     Alt
c.      Scr
d.     All of the above

Question 5
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

Question 6
For allowing the user to select only one radio button from a group of radio buttons:
a.      The name of an input tag must be same for all the radio button.
b.     The value of a n input tag must be same for all the radio buttons
c.      The display text of an input tag must be same for all the radio buttons
d.     All the radio buttons must be added to same group using <group> tag

Question 7
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>
<tr> <th>Customer Name</th> <th cellpadding=3>Contact</th> </tr>

Question 8
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" />

Question 9
The tag that is used to pass the parameters to an applet is:
a.          appletpar
b.         applet
c.          param
d.         val

Question 10
Which of the following font styling tag is not valid?
a.      <small>
b.     <i>
c.      <b>
d.     <big>
e.      <large>

Question 11

Which of the following font styling tag is not valid?
a.      <small>
b.     <i>
c.      <b>
d.     <big>
e.      <large>

Question 12
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.

Question 13

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 tag 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"/>

Question 14
Which attribute specifies the submit URL in a form tag?
a.      method
b.     action
c.      name
d.     id

Question 15
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>

Question 16
A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?
a.      <emp>
b.     <code>
c.      <dfn>
d.     <cite>

Question 17
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

Question 18
Which of the following is not correct for a div tag?
a.      It defines a logical division or section of an HTML document
b.     It usually leaves empty space before and after the tag
c.      We cannot apply style to a div tag
d.     All of the above

Question 19
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.

Question 20
What is the character entity representation of the ‘less than’ sign ( <)?
a.     60;#
b.     &#60;
c.     &60#;
d.     #60&;

Question 21
Which of the following values is/are valid for the align attribute of a tag?
a.      left
b.     right 
c.      center
d.     middle

Question 22
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

Question 23
Which of the following would assist in creating named groups within a selected list?
a.      opt
b.     group
c.      option group
d.     select group

Question 24
Which of the following tags within a table can be used to set the properties of one column or a group of columns?
a.          Colgroup
b.         Col
c.          Cols
d.         Tab

Question 25
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>

Question 26
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.

Question 27
Which of the following is correct for an image?
a.          An image must be resized in an editor to fit in the specified space on a webpage
b.         If you have a big image but specify smaller height and width attributes in the <img> tag, only the top left portion of the image will be displayed in the browser
c.          Both a and b are correct
d.         The height and width attributes allow resizing the image on the webpage

Question 28
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

Question 29    
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.

Question 30
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.

Question 31
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">

Question 32
Which of the following attributes is/are associated with textarea tag in W3C standard HTML 4.01?
a.      Wrap
b.     cols
c.      name
d.     rows
e.      ref

Question 33
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.

Question 34
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.

Question 35
You have the following directory structure.
Webroot->products->ordered->delivered
The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be:
a.          <a href "././Products.html"> All Products </a>
b.         <a href="../../Products.html"> All Products </a>
c.          <a href="…/.../Products.html"> All Products </a>
d.         <a href="../Products.html"> All Products </a>
e.          <a href="Products.html"> All Products </a>

Question 36
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

Question 37
The following link  is placed on an HTML webpage
<a href=http://msdn.microsoft.comtarget=”-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

Question 38
How will you import style sheet named basic.css in you Web page?
a.          <import name=”stylesheet” url=”basic.css”>
b.         <link rel=”stylesheet” type=”text/css” href=”basic.css”/>
c.          <style name=”stylesheet” url=”basic.css”>
d.         <link item=”stylesheet” type=”text/css” href=”basic.css”>

Question 39
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">

Question 40
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>



No comments:

Post a Comment