Friday, August 30, 2013

oDesk XHTML 1.0 Test Answers

XHTML (Extensible HyperText Markup Language) is a family of XML markup languages that mirror or extend versions of the widely used Hypertext Markup Language (HTML), the language in which web pages are written. Please click here for the test answers

  XHTML 1.0 TEST ANSWER


What is the character entity representation of the ‘less than’ sign (its entity name is ‘<’) ?

b.
< *


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 “webmaster@xcompany.com”?

a.
webmaster *


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 *


How will you specify a comment in an XHTML document?

c.
<!– Here is a comment.. –> *


Which of the following is true for the “” tag?

d.
The class, id and title can be specified for it *


How will you specify the language attribute in XHTML?

a.
Listing A
*


Which of the following is incorrect with regard to the 

d.
The text specified in the “value” is displayed in the drop-down list *


Which of the following lines will be allowed by an XHTML parser?

d.
New Horizontal line


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 
Month 
Year 
Which of the following will you use if you want to put these 3 text fields together in a box?

c.

*


Which of the following is incorrect about the relation between HTML and XHTML?

a.
XHTML is a stricter and cleaner version of HTML *

Which of the following is correct for an image?

d.
The height and width attributes allow resizing the image on the webpage *


A defines the document type of any XHTML document. It can be of three types:

a.
Strict, Transitional, and Frameset *


Which of the following statements is correct with regard to DTDs?

d.
All of the above *


Which of these tags will create a single space character?

c.
  *


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 *


A developer wrote this image tag:
”States”
What code should follow this?

a.

*


Which attributes of the tag is deprecated in HTML 4.01 and not supported in strict DTD XHTML?

a.
Align *


Which of the following represents the basic tag structure of an XHTML document?

c.
*


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:

d.
img, map, frame and applet tags *


You have defined the following image in an XHTML document:

b.
The code will work properly in a browser that supports both HTML 4.x and XHTML *


What do you understand by cellspacing?

b.
It specifies the space between the cell wall and the contents of the cell *


Which of the following statements is true about the table header, body and footer tags?

d.
None of the above *


Which attribute specifies the submit URL in a form?

b.
Action *


Which of the following is not correct for a tag?

d.
It is mandatory to specify the name or scheme attributes *


What do you understand by the following line of code?

a.
xmlns specifies the URL to qualify the names used in the XHTML document *


The following registration form was coded by a programmer in XHTML:
1. <!– Start of the Form Fields –>
2. Name:
3. 
4. Registration Date:
5. 
6. Account Type:
7. 
Which of the following options is true with regard to this XHTML document?

b.
The readonly attribute in line 5 is not correctly coded *


Take a look at the following code:

c.
With a .xhtml extension, the page will be displayed with errors *


On one of your web pages named “Listing.xhtml” you specified a target like this:
Old Listing
How will you make a link to the above target?

b.
Check Old Listing as well


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: 
Female: 
Married: 
Single: 
What is wrong with the above code?

c.
It will allow the user to choose only one option out of the four *


You specified a base tag and anchors as follows:
1. 
2. Yahoo
3. Google
Which of the following is true for the above code?

a.
Only the Yahoo link will open in a new window *


Which of the following is correct regarding the frame attribute of the table tag?

a.
It is used to add a frame to the table *


Which of the following is correct about the tag?

e.
None of the above*


What do you understand by cellpadding?

b.
It specifies the space between the cell wall and the contents of the cell *


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?

a.
*


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.
*


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

c.
Text should go in opposite direction*


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?
. . .
. . .

e.
All the above tags can be used*


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?

d.
Mailer*


How will you import a style sheet named “basic.css” in your web page?

b.
*

No comments:

Post a Comment