Thursday, January 2, 2014

Tutorial 9 Questions 51 through 102



  1. The bgcolor attribute is a prohibited attribute of the _____ element, in the strict DTD.
    1. ul
    2. br
    3. tr - correct answer
    4. a
  2. The body element is prohibited from having _____ as a child element, in the strict DTD.
    1. img
    2. textarea
    3. input
    4. all of the above - correct answer
  3. The clear attribute is a prohibited attribute of the ____ element, in the strict DTD.
    1. body
    2. br - correct answer
    3. caption
    4. a
  4. The code <font color="red">Hi</font> would not be considered valid code under the _____ DTD.
    1. transitional
    2. frameset
    3. strict - correct answer
    4. main
  5. The DOCTYPE is added directly after the XML prolog.
    1. True - correct answer
    2. False
  6. The following HTML code would likely be interpreted correctly by a browser even though the colspan attribute value is not enclosed in brackets: <td colspan=2>Heading</td>.
    1. true
    2. false - correct answer
  7. The most widely supported version of XHTML is XHTML _____.
    1. 1.0 - correct answer
    2. Basic
    3. 1.1
    4. 2.0
  8. The most widely supported version of XHTML is XHTML 1.0.
    1. true - correct answer
    2. false
  9. The namespace id for XHTML looks like a url, and is treated as one by the XML parser.
    1. true
    2. false - correct answer
  10. The path to a cleaner version of HTML involved rewriting HTML in terms of _____.
    1. CML
    2. SGML
    3. XML - correct answer
    4. Java

  11. The pre element is prohibited from having _____ as a child element, in the strict DTD.
    1. sub
    2. sup
    3. img
    4. all of the above - correct answer
  12. The rules for well-formed and valid documents reflect _____ practice.
    1. good coding - correct answer
    2. active design
    3. html
    4. parser
  13. The specifications for XHTML 1.0 most closely match those for HTML _____.
    1. 2.0
    2. 3.0
    3. 4.0 - correct answer
    4. 5.0
  14. The strict DTD is best used for older documents that contain depcreated features.
    1. true
    2. false - correct answer
  15. The strict DTD requires the use of the _____ attribute in place of the name attribute
    1. caption
    2. id - correct answer
    3. object
    4. link
  16. The W3C requires that the XHTML namespace to be added to the html element to avoid any possible confusion in the future when mixed documents become more prevalent.
    1. true - correct answer
    2. false
  17. The W3C validator is a(n) _____.
    1. XML parser - correct answer
    2. XML builder
    3. XML application
    4. XML namespace
  18. To declare a(n) _____ namespace, you use the syntax <root xmlns="namespace">
    1. local
    2. default - correct answer
    3. indexed
    4. main
  19. To specify what the correct content and structure for a document should be, the document developers create a collection of rules called the _____.
    1. XSL
    2. parser
    3. DTD - correct answer
    4. schema
  20. To specify what the correct content and structure is for a document, the developers of an XML-based language can create a collection of rules called the schema.
    1. true
    2. false - correct answer

  21. To specify which DTD is used by the XHTML document, you add a DOCTYPE declaration directly after the XML prolog.
    1. true - correct answer
    2. false
  22. To test a page created in XHTML, you can use the validator provided by W3C.
    1. true - correct answer
    2. false
  23. Unlike SGML, XML can be used to design markup languages for different types of structure documents.
    1. true
    2. false - correct answer
  24. Using the _____ option of the validator page will display extended comments for errors.
    1. Show Outline
    2. Result
    3. Root Element
    4. Verbose Output - correct answer
  25. Various Web browsers developed their own unique flavors of HTML to provide customers with new and useful features not available with other browsers.
    1. true - correct answer
    2. false
  26. Web designers have long been able to easily create Web sites without taking into account the cross-browser compatibility of the Web page code.
    1. True
    2. False - correct answer
  27. When converting old HTML code to XHTML, make sure that ll inline images contain the _____ attribute.
    1. target
    2. map
    3. src
    4. alt - correct answer
  28. When converting old HTML code to XHTML, make sure that attribute values are placed in _____.
    1. quotes - correct answer
    2. parentheses
    3. brackets
    4. commas
  29. When converting old HTML code to XHTML, make sure to replace the _____ attribute with the background-color style.
    1. background
    2. bgcolor - correct answer
    3. back
    4. body
  30. When converting old HTML code to XHTML, make sure to replace the use of the font element with either the _____ element or with qa style that applies the same formatting specified by the font element.
    1. div
    2. color
    3. span - correct answer
    4. format
  31. When converting old HTML code to XHTML, pay specific attention to the _____ element, which often does not have closing tags.
    1. p - correct answer
    2. td
    3. table
    4. tr
  32. When the XHTML 1.0 validator reports that the end tag for an element is missing, it means that _____.
    1. a two-sided tag is missing an end tag.
    2. a one-sided tag was improperly entered
    3. either a or b - correct answer
    4. none of the above
  33. Which attribute(s) are required for the img tag?
    1. alt
    2. src
    3. both a & b - correct answer
    4. none of the above
  34. Which of the following are allowed under the strict DTD?
    1. basefont
    2. menu
    3. u
    4. none of the above - correct answer
  35. Which of the following is required by all XHTML DTDs?
    1. html
    2. title
    3. body
    4. all of the above - correct answer
  36. Which tag is not properly formed for the XHTML 1.0 transitional DTD in the following code: <p><img src="mylmg.lpg" alt="alt text" /><hr />
    1. p - correct answer
    2. img
    3. hr
    4. none of the above
  37. While powerful, SGML is also quite simple to learn and apply.
    1. true
    2. false - correct answer
  38. XHTML allows some instances of attribute minimization.
    1. true
    2. false - correct answer
  39. XHTML documents without namespaces are not interpretable by most browsers.
    1. true
    2. false - correct answer
  40. XHTML version _____ is still in the development process.
    1. 2005
    2. 3.0
    3. 2.1
    4. 2.0 - correct answer
  41. XML documents must be evaluated with an XML _____.
    1. compiler
    2. executor
    3. parser - correct answer
    4. matrix
  42. XML parsers reject any XML documents that are not well-formed.
    1. True - correct answer
    2. False
  43. You can use _____ to force a link to open in a new window when using strict DTD.
    1. applets
    2. basic
    3. javascript - correct answer
    4. styles
  44. You change the _____ list box on the validator page to test an XHTML document with another DTD.
    1. File
    2. Encoding
    3. Doctype - correct answer
    4. Root Element
  45. Case 9-2:  Under the Sea is a scuba shop that sells new wave scuba gear to hip urban teens and young adults.  The Web developer, Mary, wants the pages to be designed for use on cell phones and other hand-held devices their younger audiences carry.  The Web developer wants to make the pages their best, so she should make the pages _____.
    1. well-formed - wrong answer
    2. valid
    3. both a and b
    4. none of the above
  46. In _____ you can use any character you like without worrying about it being misinterpreted.
    1. PCDATA - wrong answer
    2. CDATA
    3. MAINDATA
    4. PDATA
  47. Parsers and browsers essentially ignore _____.
    1. PCDATA
    2. MAINDATA - wrong answer
    3. EDATA
    4. CDATA
  48. The _____ module of XHTML 1.1 is used for deprecated elements and attributes.
    1. Structure
    2. Legacy
    3. Metainformation
    4. Presentation - wrong answer
  49. The _____ module of XHTML 1.1 is used for links.
    1. Links - wrong answer
    2. Forms
    3. Hypertext
    4. Structure - wrong answer
  50. The target attribute is a prohibited attribute of the _____ element, in the strict DTD.
    1. body
    2. br
    3. caption - wrong answer
    4. a
  51. To create a(n) _____ namespace, you add the following attribute to a document's root element: xmlns:prefix="namespace" where prefix is the prefix you'll use to mark elements in this namespace and namespace is the namespace id.
    1. global
    2. default - wrong answer
    3. local
    4. main
  52. XHTML _____ is a reduced version of XHTML 1.1 geared toward mobile applications.
    1. 1.2
    2. Basic
    3. Mobile - wrong answer
    4. 2.0



No comments:

Post a Comment