Upwork XHTML 1.0 TEST 2016

Hello Freelancer, Welcome to allupworktestanswers.com Here to get the XHTML 1.0 TEST  of Latest version 2016. We are ready here to provide your desire upwork test answer. We already tested all exam test information Available include on here. So Dear, Why Late? Read the below full exam test and get more information from our website.



1. Which of the following is incorrect with regard to the <select> tag?
Answers:
  1. The “name” should be specified
  2. The “disabled” attribute disables the drop-down list
  3. The “multiple” attribute allows the user to choose multiple options
  4. The text specified in the “value” is displayed in the drop-down list
  5. None of the above
2. You have defined the following image in an XHTML document:
<img src=”/image/logo.gif” alt=”” id=”img1″ />
Answers:
  1. The code will only work properly in a browser that supports XHTML
  2. The code will work properly in a browser that supports both HTML 4.x and XHTML
  3. The code will only work properly in a browser that supports HTML 4.x
  4. The code is incorrect, it will not work in any browser
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 “webmaster@xcompany.com”?
Answers:
  1. <a href=”mailto:webmaster@xcompany.com”>webmaster</a>
  2. <a href=”webmaster@xcompany.com”>webmaster</a>
  3. <a http=”mail:webmaster@xcompany.com”>webmaster</a>
  4. <mail http=”send:webmaster@xcompany.com”>webmaster</mail>
  5. <a href=”mailto://webmaster@xcompany.com”>webmaster</a>
4. What do you understand by cellspacing?
Answers:
  1. It makes the cell span more than one column
  2. It specifies the space between the cell wall and the contents of the cell
  3. It specifies the space between two cells
  4. It makes the cell span more than one row
5. Which of the following lines will be allowed by an XHTML parser?
Answers:
  1. <p>This is the starting of a new paragraph
  2. <P>This is the starting of a new paragraph<P>
  3. Here is a break statement <br></br>
  4. New Horizontal line <hr />
6. What do you understand by the following line of code?
<html xmlns=”http://www.w3.org/TR/REC-xml-names”>
Answers:
  1. xmlns specifies the URL to qualify the names used in the XHTML document
  2. xmlns means html-xml number sequence
  3. Elimination of xmlns tag will result in the document not being validated by a w3.org validator
  4. The page will not be displayed properly if the URL is changed to “http://www.w3.org/1999/xhtml”
7. Which of the following statements is true about the table header, body and footer tags?
Answers:
  1. The table header, body and footer tags are <tablehead>, <tablebody> and <tablefoot> respectively
  2. The table header, body and footer tags are <tabhead>, <tabbody> and <tabfoot> respectively
  3. It is recommended to first specify the table header followed by the footer and then the body tag
  4. None of the above
8. Which of the following is not correct for a <meta> tag?
Answers:
  1. It is more useful if it is placed in a head element
  2. It can be used to specify the keywords for the search engines
  3. It can be used to redirect users to other URLs
  4. It is mandatory to specify the name or scheme attributes
9. Your browser supports bidirectional text. Which tag will you use if you need to display text from right to left?
Answers:
  1. <opposite>Text should go in opposite direction</opposite>
  2. <p direction=”rtl”>Text should go in opposite direction</p>
  3. <bdo dir=”rtl”>Text should go in opposite direction</bdo>
  4. <text dir=”rtl”>Text should go in opposite direction</text>
10. How will you import a style sheet named “basic.css” in your web page?
Answers:
  1. <import name=”stylesheet” url=”basic.css”>
  2. <link rel=”stylesheet” type=”text/css” href=”basic.css”/>
  3. <style name=”stylesheet” url=”basic.css”>
  4. <link item=”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:
  1. <tr><th>Customer Name</th> <th rowspan=”3″>Contact</th> </tr>
  2. <tr><th>Customer Name</th> <th colspan=”3″>Contact</th> </tr>
  3. <tr><th>Customer Name</th> <th cellpadding=”3″>Contact</th> </tr>
  4. <tr><th>Customer Name</th> <thcellspacing=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:
  1. The syntax of the input tag at line 3 is incorrect
  2. The readonly attribute in line 5 is not correctly coded
  3. The syntax of the select tag is not correct
  4. Maxlength cannot be specified with text boxes
13. How will you specify a comment in an XHTML document?
Answers:
  1. <!!– Here is a comment… –!>
  2. <– Here is a comment.. –>
  3. <!– Here is a comment.. –>
  4. <! Here is a comment… –!>
14. Which of the following statements is correct with regard to DTDs?
Answers:
  1. A strict DTD allows the user to use cascading style sheets
  2. A transitional DTD displays content in those browsers which don’t support CSS
  3. A frameset DTD is used to partition the browser window
  4. All of the above
15. Which attributes of the <table> tag is deprecated in HTML 4.01 and not supported in strict DTD XHTML?
Answers:
  1. align
  2. bgcolor
  3. cellspacing
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:
  1. <textarea rows=”8″ cols=”20″> Your comments ….</textarea>
  2. <textarea row=”8″ col=”20″> Your comments ….</textarea>
  3. <textarea rowcount=”8″ colcount=”20″> Your comments ….</textarea>
  4. <input type=”text” maxlength=”100″ />
17. What is the numeric entity representation of the ‘less than’ sign (its entity name is ‘<‘) ?
Answers:
  1. 60;#
  2. &#60;
  3. &60#;
  4. #60&;
18. Which of the following is incorrect about the relation between HTML and XHTML?
Answers:
  1. XHTML is a stricter and cleaner version of HTML
  2. XHTML is almost identical to HTML 4.01
  3. XHTML and HTML both are used to generate dynamic content
  4. XHTML brings together the elements of HTML and the syntax of XML
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:
  1. <anchor href=”http://www.mailer.com”>Mailer</anchor>
  2. <anchor href=http://www.mailer.com target=_blank>Mailer</anchor>
  3. <A HREF=”http://www.mailer.com”>Mailer</A>
  4. <a href=”http://www.mailer.com” 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:
  1. <legend>
  2. <box>
  3. <fieldset>
  4. <area>
21. Which attribute specifies the submit URL in a form?
Answers:
  1. method
  2. action
  3. name
  4. id
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:
  1. It will allow the user to choose only the male and the married options
  2. It will allow the user to choose only the female and single options
  3. It will allow the user to choose only one option out of the four
  4. It will allow the user to choose all the four options at the same time
23. What do you understand by cellpadding?
Answers:
  1. It makes the cell span more than one column
  2. It specifies the space between the cell wall and the contents of the cell
  3. It specifies the space between two cells
  4. It makes the cell span more than one row
24. Which of the following is correct for an image?
Answers:
  1. An image must be resized in an editor to fit in the specified space on a webpage
  2. 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
  3. Both a and b are correct
  4. 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:
  1. <a url=”#target4″>Check Old Listing as well</a>
  2. <a href=”#target4″>Check Old Listing as well</a>
  3. <link url=”target4″>Check Old Listing as well</link>
  4. <a href=”Listing.target4″>Check Old Listing as well</a>
26. Which of the following statements is correct for the <blockquote> tag?
Answers:
  1. The text under blockquote must be enclosed in a block level element in a strict DTD document
  2. The attribute named “cite” must be specified
  3. Closing the tag is optional
  4. It doesn’t place an empty line after the text
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:
  1. <map id=”statemap” name=”statemap”> <area shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ /> </map>
  2. <map id=”statemap” name=”statemap”></map> <area shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ />
  3. <map id=”statemap” name=”statemap”> <imgarea shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ /></map>
  4. <map id=”statemap” name=”statemap”></map> <imgarea shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ />
28. A <doctype> defines the document type of any XHTML document. It can be of three types:
Answers:
  1. Strict, Transitional, and Frameset
  2. Strict, Transitional and Loose
  3. Fixed, Intermediate and Loose
  4. Fixed, Intermediate, 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:
  1. optgroup
  2. option
  3. menu
  4. var
30. Which of the following is correct regarding the frame attribute of the table tag?
Answers:
  1. It is used to add a frame to the table
  2. A “hsides” frame attribute will show the border lines for horizontal sides of the table only
  3. A “hsides” frame attribute will not show the border lines for horizontal sides of the table only
  4. A “hsides” frame attribute will add a scrollable frame on the horizontal sides of the table
31. Which of these tags will create a single space character?
Answers:
  1. <td>
  2. <th>
  3. &nbsp;
  4. <b>
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:
  1. <table align=”left” border=”1″> <tr><td>Plan A </td> <td align=”left”>Monthly payment of $60</td> </tr> . . . . . . </table>
  2. <table border=”1″> <tr><td align=”left”>Plan A</td> <td align=”left”>Monthly payment of $60</td> </tr> . . . . . . </table>
  3. <table align=”left” border=”1″> <tr><td align=”left”>Plan A</td> <td align=”left”>Monthly payment of $60</td> </tr> . . . . . . </table>
  4. <table border=”1″> <tr><td align=”left”>Plan A</td> <td>Monthly payment of $60</td> </tr> . . . . . . </table>
33. Which of the following is correct about the <!DOCTYPE …> tag?
Answers:
  1. It is not considered to be mandatory as per the XHTML specification
  2. It must have a closing tag
  3. It should come just after the <html> tag
  4. Its declaration is not a part of the XHTML document itself
  5. None of the above
34. You specified a base tag and anchors as follows:
1. <base target=”_blank”></base>
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?
Answers:
  1. Only the Yahoo link will open in a new window
  2. Only the Google link will open in a new window
  3. Both links will open in a new window
  4. Both links will open in the same 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:
  1. img and applet tags
  2. img and map tags
  3. map and frame tags
  4. img, map, frame and applet tags
  5. frame, applet, style and map tags
36. Which of the following is true for the “<param>” tag?
Answers:
  1. It doesn’t need a closing tag
  2. The language attribute cannot be specified with it
  3. The name and type attributes are optional
  4. The class, id and title can be specified for it
37. Within a table cell “<td>”:
Answers:
  1. <p></p> tags can’t be used
  2. <ol></ol> tags can’t be used
  3. <table></table> tags can’t be used
  4. <form></form> tags can’t be used
  5. All the above tags can be used
38. Which of the following represents the basic tag structure of an XHTML document?
Answers:
  1. <html><head><body></body></html>
  2. <html><body></body></html>
  3. <html><head></head><body></body></html>
  4. <html><head></head></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:
  1. <meta http-equiv=”refresh” content=”3; url=http://www.newurl.com”/>
  2. <meta http=”refresh” url=”www.newurl.com”//>
  3. <meta scheme=”refresh” name=”redirect” http=”www.newurl.com”//>
  4. <meta http-equiv=”redirect” content=”3″ http=”www.newurl.com”/>
40. How will you specify the language attribute in XHTML?
Answers:
  1. <div lang=”en” xml:lang=”en”>Listing A</div>
  2. <div language=”en”>Listing A</div>
  3. <div language=”en” xhtml:lang=”en”>Listing A</div>
  4. <div xml:language=”en”>Listing A</div>

Finally no more words require about the XHTML 1.0 TEST   information in this session of this content. If you are require knowing more, Please ask to us via our contact us form or comment box. Please make sure that, you don’t send Personal information via the Comment box.  Thank you very mutch for being with us.

0 comments: