Skip to main content

Upwork/oDesk XHTML 1.0 test Answer (Part 4)

1. Which of the following is incorrect with regard to the <select> tag?
 Answers: • The text specified in the "value" is displayed in the drop-down list

 2. You have defined the following image in an XHTML document:

 <img src="/image/logo.gif" alt="" id="img1" />
 Answers: • The code will work properly in a browser that supports both HTML 4.x and XHTML

 3. 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 is ""?
 Answers: • <a href="">webmaster</a>

 4. What do you understand by cellspacing?
 Answers: • It specifies the space between two cells

 5. Which of the following lines will be allowed by an XHTML parser?
 Answers: • New Horizontal line <hr />

 6. What do you understand by the following line of code?

 <html xmlns="">
 Answers: • xmlns specifies the URL to qualify the names used in the XHTML document

 7. Which of the following statements is true about the table header, body and footer tags?
 Answers: • None of the above

 8. Which of the following is not correct for a <meta> tag?
 Answers: • It is more useful if it is placed in a head element

 9. Your browser supports bidirectional text. Which tag will you use if you need to display text from right to left?
 Answers: • <bdo dir="rtl">Text should go in opposite direction</bdo>

 10. How will you import a style sheet named "basic.css" in your web page?
 Answers: • <link rel="stylesheet" type="text/css" href="basic.css"/>

 11. 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?
 Answers: • <tr><th>Customer Name</th> <th colspan="3">Contact</th> </tr>

 12. The following registration form was coded by a programmer in XHTML:

 1. <!-- Start of the Form Fields -->
 2. Name:
 3. <input type="text" name="name" maxlength="50" />
 4. Registration Date:
 5. <input readonly type="text" value="javascript:getDate();" />
 6. Account Type:
 7. <select name="Account">
 8. <option "selected" value="Primary">Primary</option>
 9. <option value="Secondary">Secondary</option>
 10. </select>

 Which of the following options is true with regard to this XHTML document?
 Answers: • The readonly attribute in line 5 is not correctly coded

 13. How will you specify a comment in an XHTML document?
 Answers: • <!-- Here is a comment.. -->

 14. Which of the following statements is correct with regard to DTDs?
 Answers: • A frameset DTD is used to partition the browser window

 15. Which attributes of the <table> tag is deprecated in HTML 4.01 and not supported in strict DTD XHTML?
 Answers: • bgcolor

 16. 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?
 Answers: • <textarea rows="8" cols="20"> Your comments ....</textarea>

 17. What is the numeric entity representation of the 'less than' sign (its entity name is '<') ?
 Answers: • &#60;

 18. Which of the following is incorrect about the relation between HTML and XHTML?
 Answers: • XHTML and HTML both are used to generate dynamic content

 19. While designing the links page of your website, you want the link to open in a new window. How will you implement this with XHTML using Transitional doc type?
 Answers: • <a href="" target="_blank">Mailer</a>

 20. You are developing a website. In one of the subscription forms, you need to get the subscription start date from the user. The HTML code is as follows:

 Day <input type="text" size="3" />
 Month <input type="text" size="10" />
 Year <input type="text" size="4" />

 Which of the following will you use if you want to put these 3 text fields together in a box?
 Answers: • <fieldset>

 21. Which attribute specifies the submit URL in a form?
 Answers: • action

 22. You placed four radio buttons on a web form. You want the users to specify whether they are male or female and whether they are married or single. The code is as follows:

 Male: <input type="radio" checked="checked" name="chk" value="male" />
 Female: <input type="radio" name="chk" value="female" />
 Married: <input type="radio" checked="checked" name="chk" value="married" />
 Single: <input type="radio" name="chk" value="single" />

 What is wrong with the above code?
 Answers: • It will allow the user to choose only one option out of the four

 23. What do you understand by cellpadding?
 Answers: • It specifies the space between the cell wall and the contents of the cell

 24. Which of the following is correct for an image?
 Answers: • The height and width attributes allow resizing the image on the webpage

 25. On one of your web pages named "Listing.xhtml" you specified a target like this:

 <a name="target4">Old Listing</a>

 How will you make a link to the above target?
 Answers: • <a href="#target4">Check Old Listing as well</a>

 26. Which of the following statements is correct for the <blockquote> tag?
 Answers: • The text under blockquote must be enclosed in a block level element in a strict DTD document

 27. A developer wrote this image tag:

 <img src ="states.gif" width ="330" height ="406" alt="States"
 usemap ="#statemap" />

 What code should follow this?
 Answers: • <map id="statemap" name="statemap"> <area shape="rect" coords="0,0,82,126" href="state1.htm" alt="State1" /> </map>

 28. A <doctype> defines the document type of any XHTML document. It can be of three types:
 Answers: • Strict, Transitional, and Frameset

 29. 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?
 Answers: • optgroup

 30. Which of the following is correct regarding the frame attribute of the table tag?
 Answers: • A "hsides" frame attribute will show the border lines for horizontal sides of the table only

 31. Which of these tags will create a single space character?
 Answers: • &nbsp;

 32. While writing a strict DTD XHTML document, you want to create a table having 2 columns, both left aligned. What technique will you choose to do this?
 Answers: • <table border="1"> <tr><td align="left">Plan A</td> <td align="left">Monthly payment of $60</td> </tr> . . . . . . </table>

 33. Which of the following is correct about the <!DOCTYPE ...> tag?
 Answers: • None of the above

 34. You specified a base tag and anchors as follows:

 1. <base target="_blank"></base>
 2. <a href="">Yahoo</a>
 3. <a href="" target="_top">Google</a>

 Which of the following is true for the above code?
 Answers: • Only the Yahoo link will open in a new window

 35. Please choose the most appropriate option.

 One of the differences between XHTML and HTML 4.01 is that the "name" attribute has been replaced by the "id" attribute in:
 Answers: • img, map, frame and applet tags

 36. Which of the following is true for the "<param>" tag?
 Answers: • It doesn't need a closing tag

 37. Within a table cell "<td>":
 Answers: • All the above tags can be used

 38. Which of the following represents the basic tag structure of an XHTML document?
 Answers: • <html><head></head><body></body></html>

 39. Your website has moved to some other address. How will you automatically redirect a user to that address within 3 seconds of landing on the old address?
 Answers: • <meta http-equiv="refresh" content="3; url="/>

 40. How will you specify the language attribute in XHTML?
 Answers: • <div lang="en" xml:lang="en">Listing A</div>


  1. Are you trying to earn money from your websites/blogs with popup advertisments?
    If so, did you ever use PopAds?


Post a Comment

Popular posts from this blog

Upwork Knowledge of Microsoft Office Skills Test Answer

In Microsoft Word 2010, "Keep lines together" paragraph formatting:
Answers: • does not work for paragraphs within a table if "Allow row to break across pages" is also selected.

You want to add an image as the first character in your paragraph. Which type of text wrapping treats your graphic as if it were a character?
Answers: • In Line with Text

In the given screenshot, the contents of the 'Name of User' column have been oriented at an angle. How is this done?
Answers: • By using the 'Orientation' button in the alignment group of the 'Home' tab.

In the given screenshot, the letter X is pointing to an area between the first Row header, and the first Column header. What will happen when this particular area is selected?
Answers: • It will select the whole sheet, having the same effect as that of Ctrl+A.

Which of the following types of worksheets will not load in Microsoft Excel Services?
Answers: • Worksheets with ActiveX controls

Why would you use con…

Upwork/oDesk Google AdWords Test Answers (part1)

1. Which of the following is not a valid geographical targeting option?
Answers: • Targeting female english speakers

 2. In the My Client Center, what does MDS stand for?
Answers: • Manager Defined Spend

 3. If you have an exact match keyword being bid below the estimated first page minimum bid, can it show adverts on the first page?
Answers: • Yes. It could even be below the estimated first page bid, and still show in position 1 at the top of the page.

 4. Can you use the same keywords in different ad groups?
Answers: • Yes, always

 5. How is the ad ranking calculated?
Answers: • Bid x Quality Score = Ad Ranking

 6. What happens when your cost reaches your budget amount?
Answers: • Your ads will stop showing for that day

 7. AdWords will automatically ______ your keywords.
Answers: • bolden

 8. Each campaign has a _________ budget.
Answers: • daily

 9. How do you

Upwork/oDesk SMM(Social Media Marketing) Test

New Test Answers for Upwork's Social Media Marketing Test - Updated on January 2016:

1. What is the character limit for posts on Twitter?
Answers: • 140 characters

 2. How can a company place itself as an expert in a certain area of expertise?
Answers: • Actively answer questions in the Q&A section of the site

 3. What type of status updates would drive visitors to the company site?
Answers: • A link to a new press release hosted on the company site

 4. What is meant by A/B testing in marketing?
Answers: • Testing 2 versions of an advertisement to see which elicits the best response

 5. Using which of the following two methods can a company ensure that the proper audience finds their YouTube videos?
Answers: • Post links on the company blog to the YouTube videos

 6. How does a blog directly impact sales of a company?
Answers: • It is typically used as the way to disperse company coupons

 7. What is meant by "micro-blogging"?
Answers: • Blogs with limited individual posts, limited …