Friday, January 3, 2014

Tutorial 11 Questions 51 through 100



  1. It is not always clear when to use attribute values rather than inserting a new _____.
    1. element - correct answer
    2. parser
    3. PCDATA
    4. CDATA
  2. Make sure to end every entity reference with a(n) _____.
    1. period
    2. comma
    3. apostrophe
    4. semicolon - correct answer
  3. Microsoft developed an XML parser called XBIT for its Internet Explorer browser.
    1. true
    2. false - correct answer
  4. One rule of thumb is that if a value is something you do not want displayed, place it in a(n) _____.
    1. attribute
    2. keyspan
    3. element - correct answer
    4. applet
  5. One rule of thumb is to place content with _____ and to place information describing or identifying that content within an attribute.
    1. keyspans
    2. applets
    3. elements - correct answer
    4. documents
  6. One SGML application used to create Web pages is _____.
    1. Unix
    2. Perl
    3. Java
    4. HTML - correct answer
  7. Only DTDs, and not schemas, contain rules for how data in one of the items shown in the accompanying figure should be structured.
    1. true
    2. false - correct answer
  8. SGML has been the chosen vehicle for creating structured documents in business and government organizations of all sizes.
    1. true - correct answer
    2. false
  9. SGML has many of the properties of HTML, but without the expensive overhead.
    1. true
    2. false - correct answer
  10. SGML hosts are markup languages based on teh SGML architecture and applied to specific types of information.
    1. true
    2. false - correct answer

  11. SGML is an easy language to learn and apply.
    1. true
    2. false - correct answer
  12. SGML is system-dependent.
    1. true
    2. false - correct answer
  13. SGML is often used in creating SGML _____.
    1. applications - correct answer
    2. indices
    3. markups
    4. elements
  14. Shown in the accompanying figure, _____ was developed to code molecular information.
    1. CML - correct answer
    2. CDF
    3. MML
    4. OFX
  15. Some argue that attributes should never be used because they add to the document's complexity.
    1. true - correct answer
    2. false
  16. Terseness in XML markup is of maximum importance.
    1. true
    2. false - correct answer
  17. The _____ symbol indicates that a child element occurs any number of times.
    1. ?
    2. * - correct answer
    3. +
    4. -
  18. The _____ symbol indicates that a child element occurs at least once.
    1. ?
    2. *
    3. -
    4. + - correct answer
  19. The _____ symbol indicates that a child elements occurs once or not at all.
    1. ? - correct answer
    2. *
    3. +
    4. -
  20. The accompanying figure shows a molecule described using _____.
    1. XML - correct answer
    2. CDF
    3. MML
    4. OFX

  21. The default encoding scheme for an XML declaration is _____.
    1. ISO-8559-1
    2. UTF-8 - correct answer
    3. Latin-1
    4. DTD 2.0
  22. The default version value for an XML declaration is _____.
    1. 1.0 - correct answer
    2. 1.1
    3. 1.2 
    4. 2.0
  23. The document body consists of the _____ to be stored in the document.
    1. elements - correct answer
    2. attributes
    3. values
    4. keys
  24. The first part of the prolog is the XML _____.
    1. index
    2. master
    3. declaration - correct answer
    4. link
  25. The ISO/IEC character set is an international numbering system for referencing characters from virtually any language.
    1. true - correct answer
    2. false
  26. The name in an element's closing tag must match the name in the opening tag.
    1. true - correct answer
    2. false
  27. The root element in the accompanying figure's tree diagram is also known as the base element.
    1. true
    2. false - correct answer
  28. The standards for XML are developed and maintained by _____.
    1. NASA
    2. the NSF
    3. the W3C - correct answer
    4. DARPA
  29. The string ' is a(n) character reference for the apostrophe.
    1. true
    2. false - correct answer
  30. The UTF-8 character set includes many characters from non-English Western European languages.
    1. true
    2. false - correct answer
  31. The version declaration in the XML declaration allows XML to be used across a range of written languages.
    1. true
    2. false - correct answer
  32. The XML _____ signals to the program reading the file that the document is written in XML.
    1. statement
    2. declaration - correct answer
    3. index
    4. link
  33. There is a significant difference between the two versions of XML declarations (1.0 and 1.1).
    1. true
    2. false - correct answer
  34. To create a DTD or a schema, you need access to a _____.
    1. word processor
    2. spreadsheet program
    3. text editor - correct answer
    4. WYSIWYG authoring program
  35. Which of the following includes an XML parser?
    1. Opera 8.0
    2. Firefox 1.0
    3. Safari
    4. all of the above - correct answer
  36. Which of the following is NOT true of a CDATA section.
    1. It cannot contain markup characters - correct answer
    2. It can be placed anywhere within a document
    3. It cannot be nested within other CDATA sections
    4. It cannot be empty
  37. Whitespace is treated the same in HTML as in XML
    1. true
    2. false - correct answer
  38. XML applications like those shown in the accompanying figure are also known as _____.
    1. elements
    2. keys
    3. vocabularies - correct answer
    4. legends
  39. XML can be used to create XML _____.
    1. applications - correct answer
    2. indices
    3. markups
    4. elements
  40. XML comments like those in the accompanying figure follow the same syntax as HTML comments.
    1. true - correct answer
    2. false
  41. XML documents should be _____ files.
    1. text - correct answer
    2. binary
    3. tab-delimited
    4. comma-separated
  42. XML has its roots in _____.
    1. HTML
    2. SGML - correct answer
    3. XHTML
    4. Perl
  43. XML has to be compatible with the major Web protocols, including _____.
    1. Java
    2. ASP
    3. HTTP - correct answer
    4. STP
  44. XML has to be compatible with the major Web protocols, including _____.
    1. Java
    2. ASP
    3. HTTP - correct answer
    4. STP
  45. XML must be effective for which of the following?
    1. financial transactions
    2. voice mail
    3. word processing
    4. all of the above - correct answer
  46. Case 11-1:  Teddy is new to the use of XML, so he has a lot of basic questions about the fundamentals, including some philosophical questions about the language.  Teddy asks how the rules for a given XML vocabulary are specified, and you explain that it is done using either a document type definition (DTD) or schema.  Which of the following is NOT a true statement about DTDs and schemas?
    1. Every XML document must have an ssociated DTD or schema.
    2. To create a DTD or schema, you only need access to a text editor.
    3. DTDs can be included within XML documents, while schema must be accessed as external files - wrong answer
    4. Both DTDs and schemas control what code and content a document may have.
  47. Element names may not contain _____.
    1. letters
    2. the string "xml"
    3. black spaces
    4. the underscore character - wrong answer
  48. The kind of XML content in red in the accompanying figure cannot contain double _____.
    1. apostrophes
    2. periods - wrong answer
    3. hyphens
    4. quotation marks - wrong answer
  49. Which of the following browsers preserves white space used within a CDATA section?
    1. Safari
    2. Internet Explorer
    3. Firefox
    4. all of the above - wrong answer
  50. XML supports entity references for all of the following EXCEPT _____.
    1. >
    2. & - wrong answer
    3. , - wrong answer
    4. *

Tutorial 11 Questions 1 through 50



  1. _____ can be thought of as SGML Light
    1. HTML
    2. Perl
    3. XML - correct answer
    4. SQL
  2. _____ is a language introduced in 1980 that describes the content and structure of any machine-readable information.
    1. XML
    2. HTML
    3. XHTML
    4. SGML - correct answer
  3. _____ is a style sheet language developed specifically for XML.
    1. XSS
    2. CSS
    3. XSL - correct answer
    4. both a and b
  4. _____ is an XML vocabulary used for automatic delivery of information from Web publishers to PCs PDAs, cell phones, and other devices.
    1. RSS
    2. SMIL
    3. MML
    4. CDF - correct answer
  5. _____ is an XML vocabulary used for coding molecular information.
    1. CML - correct answer
    2. XHTML
    3. OFX
    4. MML
  6. _____ is an XML vocabulary used for creating audio dialogues that feature synthesized speech and speech recognition.
    1. OFX
    2. RSS
    3. SMIL
    4. VoiceXML - correct answer
  7. _____ is an XML vocabulary used for editing interactive audiovisual presentations involving streaming audio, video, text and any other media type.
    1. CML
    2. MML
    3. RSS
    4. SMIL - correct answer
  8. _____ is an XML vocabulary used for exchanging financial data between financial institution, for example.
    1. MathML
    2. MML
    3. OFX - correct answer
    4. CML
  9. _____ is an XML vocabulary used for presenting and evaluating equations and operations.
    1. MML
    2. CML
    3. XHTML
    4. MathML - correct answer
  10. _____ is an XML vocabulary used for writing HTML as an XML application.
    1. RSS
    2. VoiceXML
    3. XHTML - correct answer
    4. MML

  11. _____ is the style sheet standard developed for use with HTML on the Web.
    1. XSL
    2. XSM
    3. CSS - correct answer
    4. MSXML
  12. _____ was developed in response to the confusion that resulted from competing versions of RSS that made it difficult for developers to move forward with the creation of news feed sites.
    1. JavaScript
    2. Perl
    3. RML
    4. Atom - correct answer
  13. A _____ document contains no syntax errors and satisfies the general specifications for XML code.
    1. synthesized
    2. compound
    3. checked
    4. well-formed - correct answer
  14. A common mistake in XML documents is to forget that the apostrophe symbol is interpreted by the XML processor as a character reference and not as a character.
    1. true
    2. false - correct answer
  15. A(n) _____ element is an element that contains no content.
    1. null
    2. void
    3. open - correct answer
    4. rich
  16. A(n) _____ language describes the structure and content of data.
    1. device-independent
    2. markup - correct answer
    3. devicde-driven
    4. indexed
  17. An open element is also known as a(n) _____ element.
    1. null
    2. void
    3. empty - correct answer
    4. key
  18. An optional _____ occurs after the document body in an XML document and contains any final comments or processing instructions.
    1. chapter 
    2. glossary
    3. epilog - correct answer
    4. dictionary
  19. An RSS file is written in _____.
    1. SGML
    2. HTML
    3. XML - correct answer
    4. AML

  20. An XML document consists of the _____, the document body and the epilog.
    1. grammar
    2. index
    3. prolog - correct answer
    4. chapter
  21. An XML document that satisfies the rules of a DTD or schema is said to be a(n) _____ document.
    1. free
    2. indexed
    3. valid - correct answer
    4. roster
  22. As XML has grown in popularity, standard _____ like those in the accompanying figure have been developed across a wide range of disciplines.
    1. legends
    2. elements
    3. vocabularies - correct answer
    4. keys
  23. Attribute values must be enclosed within _____.
    1. ampersands
    2. carets
    3. single or double quotes - correct answer
    4. colons
  24. Case 11-1:  Teddy is new to the use of XML, so he has a lot of basic questions about the fundamentals, including some philosophical questions about the language.  Teddy has heard that an XML document must be well-formed.  Which of the following is NOT a characteristic of a well-formed document?
    1. It contains no syntax errors.
    2. It has a prolog, body and epilog
    3. It includes an XML declaration
    4. It satisfies the rules of its DTD or schema - correct answer
  25. Case 11-1:  Teddy is new to the use of XML, so he has a lot of basic questions about the fundamentals, including some philosophical questions about the language.  You tell Teddy that XML can be used to create ML vocabularies, which are markup languages tailored to contain specific pieces of information.  Which of the following is NOT an example of a standard XML vocabulary?
    1. CML
    2. SGML - correct answer
    3. XHTML
    4. CDF
  26. Case 11-1:  Teddy is new to the use of XML, so he has a lot of basic questions about the fundamentals, including some philosophical questions about the language.  You tell Teddy about an important XML vocabulary called RSS.  What is this vocabulary used for?
    1. describing recreation and sports events
    2. distributing news articles or other changing content to subscribers - correct answer
    3. describing recipes and menu items
    4. editing interactive audiovisual presentations
  27. Case 11-2:  Stephanie is tracing through her XML code to find syntax errors.  Finally, Stephanie double checks all of the entity references used in the document.  Which of the following is NOT one of the entity references that XML supports?
    1. &
    2. &attr; - correct answer
    3. >
    4. "
  28. Case 11-2:  Stephanie is tracing through her XML code to find syntax errors. Stephanie begins by looking for incorrect element names.  Which of the following is a problematic name?
    1. _recipe
    2. street address - correct answer
    3. NAME
    4. Item
  29. Case 11-2:  Stephanie is tracing through her XML code to find syntax errors. Stephanie next looks at the elements that do not use nesting, and she finds one that is formatted incorrectly.  Which of the following could it be?
    1. <name>Perry</name>
    2. <name />
    3. <name>Perry</NAME> - correct answer
    4. none of these
  30. Stephanie is tracing through her XML code to find snytax errors.  Stephanie then reviews all of the elements with nesting, and she discovers a number of problems.  Which of the following is a CORRECT use of nesting?
    1. <assignment>Homework 1<points>50<points></assignment>
    2. <assignment>Homework 1</assignment><points>50</points>
    3. <assignment>Homework 1<points>50</points></assignment> - correct answer
    4. <assignment>Homework 1<points>50</assignment></points>
  31. Character data is not processed--it is treated as pure data content.
    1. true - correct answer
    2. false
  32. Controlling what code and content a document from a given vocabulary may have can be done by attaching a _____.
    1. valid document
    2. schema - correct answer
    3. CML
    4. glossary
  33. Documents written in SGML must be used on devices running the Unix operating system.
    1. true
    2. false - correct answer
  34. Documents written in SGML must be used on specific types of devices, which is one of the languages limitations.
    1. true
    2. false - correct answer
  35. Element names are not case sensitive.
    1. true
    2. false - correct answer
  36. Element names cannot begin with the letters _____.
    1. data
    2. http
    3. xml - correct answer
    4. xsl
  37. Elements that are side-by-side in a document's hierarchy are _____ elements.
    1. extended
    2. extensible
    3. sibling - correct answer
    4. familial
  38. Empty tags are not part of pcdata.
    1. true
    2. false - correct answer
  39. Every element in an XML document can contain at most one attribute.
    1. true
    2. false - correct answer
  40. HTML can be inconsistently applied.
    1. true - correct answer
    2. false
  41. HTML was originally designed as a primary souce for information storage and retrieval.
    1. true
    2. false - correct answer
  42. If an XML document does not include a root element, it is not considered well-formed and is rejected.
    1. true - correct answer
    2. false
  43. In an XML declaration, a stand alone value of no indicates that a document is self-contained.
    1. true
    2. false - correct answer
  44. In the accompanying figure, to indicate that a recipe may have no author or multiple authors, the _____ symbol will be put in the position marked 2.
    1. ?
    2. * - correct answer
    3. +
    4. -
  45. In the accompanying figure, to indicate that a recipe may or may not have an author, the _____ symbol will be put in the position marked 1.
    1. ? - correct answer
    2. *
    3. +
    4. -
  46. In the accompanying figure, to indicate that the ingredients collection must contain at least one ingredient, the _____ symbol will be put in the position marked 3.
    1. ?
    2. *
    3. + - correct answer
    4. -
  47. In the accompanying figure's tree diagram, all of the elements in the body are children of a single element called the _____ element.
    1. base
    2. fundamental
    3. root - correct answer
    4. key
  48. In the tree diagram in the accompanying figure, the root element is the _____ element.
    1. recipes - correct answer
    2. recipe
    3. ingredient
    4. title
  49. In whitespace trimming consecutive occurrences of white space area treated as a single space.
    1. true
    2. false - correct answer
  50. In XML, white space is ignored within a document's prolog and dialog and within any element tags.
    1. true
    2. false - correct answer

Tutorial 10 Questions 51 through 100



  1. JavaScript supports comment tags, using a set of double _____ at the beginning of a line that instructs the browser to ignore the line and not interpret it as a JavaScript command.
    1. backslashes
    2. commas
    3. periods
    4. slashes - correct answer
  2. JavaScript supports how many data types?
    1. 1
    2. 2
    3. 3
    4. 4 - correct answer
  3. Most JavaScript commands and names are not case sensitive.
    1. true
    2. false - correct answer
  4. Multiple parameters are separated by _____.
    1. brackets
    2. parenthesis
    3. curly braces
    4. commas - correct answer
  5. One can create a _____ variable to determine whether the user is running the Netscape browser.
    1. null
    2. string
    3. conditional
    4. Boolean - correct answer
  6. One way to handle the way that XML parsers treat the content of a JavaScript program is to place the JavaScript code within a(n) _____ section.
    1. CDATA - correct answer
    2. PCDATA
    3. XML
    4. ASP
  7. Parameter values can not be variables themselves.
    1. true
    2. false - correct answer
  8. Scripting languages are distinguished by the _____ types.
    1. MIME - correct answer
    2. DTD
    3. XML
    4. DDL
  9. Scripts can be placed in a _____ section of a Web page.
    1. headers
    2. body
    3. both a and b - correct answer
    4. none of the above
  10. Some JavaScript functions require parameters, which are variables associated with the function.
    1. true - correct answer
    2. false

  11. The Boolean values are on and off.
    1. true
    2. false - correct answer
  12. The great advantage of a function is that you can reuse it.
    1. true - correct answer
    2. false
  13. The responsibility for the development of a scripting standard has been transferred to an international body called _____.
    1. ECMA - correct answer
    2. NASA
    3. NSF
    4. W3C
  14. The section marked 1 in the above figure is an _____.
    1. link for displaying errors
    2. box for displaying errors
    3. link for entering JavaScript code
    4. box for entering JavaScript code - correct answer
  15. The section marked 2 in the above figure is a _____.
    1. link for displaying errors - correct answer
    2. box for displaying errors
    3. link for entering JavaScript code
    4. box for entering JavaScript code
  16. The type attribute value for JavaScript is _____.
    1. text/js
    2. text/javascript - correct answer
    3. script/jw
    4. script/javascript
  17. Users need to work with a developer's kit to compile a JavaScript program.
    1. true
    2. false - correct answer
  18. Variable declarations should be placed at teh _____ of your program to make your code easier to interpret.
    1. middle
    2. ending
    3. beginning - correct answer
    4. none of the above
  19. Variable names cannot contain _____.
    1. numbers
    2. spaces - correct answer
    3. underscore characters
    4. any of the above
  20. What is Internet Explorer's scripting language called?
    1. IEScript
    2. VBScript  - correct answer
    3. Oak
    4. JavaScript

  21. When calling a JavaScript function, you provide in your call _____.
    1. the function name
    2. the parameters
    3. both a and b - correct answer
    4. none of the above
  22. When the browser loads the HTML file containing a function, the browser bypasses the function without executing it; the function is executed only when called by another JavaScript command.
    1. true - correct answer
    2. false
  23. When variables are not strictly tied to specific data types, programmers refer to the langauge as a _____ typed language.
    1. strongly
    2. loosely
    3. weakly - correct answer
    4. strictly
  24. Where you place a function in the HTML file is unimportant.
    1. true
    2. false - correct answer
  25. Which of the following assigns the result of calling a function named returnHello that returns a value of "Hello" and takes no parameters correctly?
    1. returnHello("Hello");
    2. msg=returnHello(); - correct answer
    3. msg=returnHello("Hello")
    4. returnHello("World");
  26. Which of the following can be passed to a text string parameter called msg?
    1. a text string
    2. a text string + a number
    3. a variable + a variable
    4. all of the above - correct answer
  27. Which of the following commands can be used in a function?
    1. return 3;
    2. document.write("Hwllo World");
    3. z = 1 + 2;
    4. all of the above - correct answer
  28. Which of the following provides features that allow you to scramble text in a page?
    1. HTML
    2. XHTML 1.0
    3. XHTML 1.1
    4. none of the above - correct answer
  29. With server-side scripts, computing is distributed over the Web so that no one server is overloaded with programming requests.
    1. true
    2. false - correct answer
  30. You can _____ an e-mail address to prevent it from being grabbed by programs that scan Web pages.
    1. inherit
    2. compile
    3. spam
    4. scramble - correct answer
  31. You can cause a variable to have no value by assigning it the value _____.
    1. 0
    2. null - correct answer
    3. empty
    4. " "
  32. You can declare a variable in JavaScript using the _____ command.
    1. dec
    2. var - correct answer
    3. this
    4. val
  33. You can declare multiple variables by entering the variable names in a comma-separated list.
    1. true - correct answer
    2. false
  34. You can display single quotation marks with the document.write() method by enclosing your text string within _____.
    1. periods
    2. double quotation marks - correct answer
    3. parentheses
    4. brackets
  35. You cannot use words that JavaScript has reserved for other purposes when you create a variable name.
    1. true - correct answer
    2. false
  36. You should declare a variable in JavaScript by using the syntax: var variable;.
    1. true - correct answer
    2. false
  37. You should place all script elements that reference external files in the document head.
    1. true - correct answer
    2. false
  38. An action for the browser to take in a script is called a _____.
    1. command
    2. statement
    3. both a and b - correct answer
    4. none of the above
  39. Which of the following formats is not a numeric value data type?
    1. "12" - correct answer
    2. 11.5
    3. 3
    4. 5.10E+02
  40. You can hide script from older browsers that do not support JavaScript by using _____ tags.
    1. slash
    2. <script>
    3. comment - correct answer
    4. internal
  41. _____ is the official name of the standard developed by the international body responsible for the development of a scripting standard.
    1. PerlScript
    2. VBScript
    3. ECMAScript
    4. IEScript - wrong answer
  42. _____ language forces programming to explicitly identify a variable's data type.
    1. Strongly typed
    2. Mildly typed
    3. Weakly typed - wrong answer
    4. Mime typed
  43. Case 10-3:  Arlene's Authentic Indian Wear sells handmade Cheyenne Indian clothing online.  She has added some JavaScript functions to calculate how much a person has to pay before they submit the order page, but is having some trouble.  If Arlene is using Internet Explorer, what could she use to debug her program?
    1. Firefox Error Console
    2. Microsoft Script Debugger
    3. Microsoft Console
    4. none of the above - wrong answer
  44. Case 10-3:  Arlene's Authentic Indian Wear sells handmade Cheyenne Indian clothing online.  She has added some JavaScript functions to calculate how much a person has to pay before they submit the order page, but is having some trouble.In Firefox, the error console shows errors from _____.
    1. CSS
    2. JavaScript - wrong answer
    3. both a and b
    4. none of the above
  45. In the figure above, the highlighted item marked 1 is a highlighted _____.
    1. link - wrong answer
    2. comment
    3. table
    4. error
  46. The _____ symbol can be used to combine text strings.
    1. + - wrong answer
    2. *
    3. ++
    4. ~
  47. Which of the following is NOT an alternative that helps avoid problems with XML parsers.
    1. comment the javascript
    2. use CDATA sections
    3. use external scripts - wrong answer
    4. all of the above
  48. You use the _____ tag to distringuish JavaScript code from the text that you want displayed on a Web page.
    1. <code>
    2. <JavaScript> - wrong answer
    3. <script>
    4. <js>
  49. You can hide script from older browsers that do not support JavaScript by using _____ tags.
    1. slash
    2. <script>
    3. comment - correct answer
    4. internal

Thursday, January 2, 2014

Tutorial 10 Questions 1 through 50



  1. _____ are useful because they can store information created in one part of your program and use that information in another.
    1. Conditional operators
    2. Logical operators
    3. Assignment operators
    4. Variables - correct answer
  2. _____ can be used to look for e-mail addresses by scanning Web pages.
    1. Span
    2. Server-side
    3. An E-mail harvester - correct answer
    4. Client-side
  3. _____ is an interpreted language, meaning that the program code is executed directly without compiling.
    1. JavaScript - correct answer
    2. Java
    3. C++
    4. All of the above
  4. _____ is essentially junk email
    1. spam - correct answer
    2. client-side
    3. server-side
    4. an e-mail harvester
  5. _____-side programs do not require users to wait for data to be sent over the Internet to a Web server.
    1. Server
    2. File
    3. Client - correct answer
    4. Database
  6. A function can not be designed to return a value.
    1. true
    2. false - correct answer
  7. A function may require _____ which are values used by the function.
    1. terms
    2. parameters - correct answer
    3. ids
    4. names
  8. A global variable has local scope only.
    1. true
    2. false - correct answer
  9. A multiline comment begins with a /* and ends with a */.
    1. true - correct answer
    2. false
  10. A numeric value is any group of characters such as "Hello".
    1. True
    2. False - correct answer

  11. A reference to an external Javascript file is normally placed int he _____ section of an HTML document, according to good design principles.
    1. body
    2. head - correct answer
    3. title
    4. paragraph
  12. A text string indicates that no value has yet been assigned to the variable.
    1. true
    2. false - correct answer
  13. A variable declared in a function is also called a(n) _____ variable.
    1. global
    2. scope
    3. local scope - correct answer
    4. none of the above
  14. A variable declared in a function is said to have _____.
    1. global scope 
    2. no scope
    3. local scope - correct answer
    4. none of the above
  15. A variable not declared in a function is also called a(n) _____ variable.
    1. global - correct answer
    2. scope
    3. illegal
    4. local
  16. A(n) _____ is a person who sends out unsolicited emails.
    1. analyst
    2. spammer - correct answer
    3. harvester
    4. staffer
  17. A(n) _____ retrieves a Web page from the server.
    1. programmer
    2. server-side program
    3. user - correct answer
    4. information set
  18. A(n) _____ variable has no value at all.
    1. null - correct answer
    2. empty
    3. cipher
    4. negative
  19. Although not a requirement, one programming convention is to place all of the function definitions used in the Web page within the head section.
    1. true - correct answer
    2. false
  20. Although the standard developed by the ECMA is called ECMAScript, browsers still generally refer to it as VBScript.
    1. true
    2. false - correct answer

  21. Any variables not declared within functions have local scope.
    1. true
    2. false - correct answer
  22. Before you use a variable in a Javascript program, you should _____ it.
    1. compile
    2. concatenate
    3. declare - correct answer
    4. nullify
  23. Case 10-1:  Legend Films is planning to create a page that will allow users to email their video requests for the studio to add to their online video offerings.  To prevent the film orderer from receiving spam, the Web designers should _____ e-mail addresses.
    1. encrypt
    2. reverse
    3. scramble - correct answer
    4. none of the above
  24. Case 10-2:  Bobby had added a form to his blog to allow people to e-mail him feedback.  He is having trouble getting his pages to validate and his JavaScript to work.  Bobby's JavaScript shows in his pages when displayed in older browsers.  To hid his JavaScript, he can use _____.
    1. headers
    2. footers
    3. hidden boxes
    4. comments - correct answer
  25. Case 10-2:  Bobby had added a form to his blog to allow people to e-mail him feedback.  He is having trouble getting his pages to validate and his JavaScript to work.  The errors Bobby only finds when his JavaScript executes are called _____ errors.
    1. logical
    2. ending
    3. run-time - correct answer
    4. load-time
  26. Case 10-2:  Bobby had added a form to his blog to allow people to e-mail him feedback.  He is having trouble getting his pages to validate and his JavaScript to work.  To help debug his code, Bobby could monitor the changing values of variables using a(n) _____.
    1. alert dialog box - correct answer
    2. return statement
    3. modular code
    4. logical error
  27. Case 10-3:  Arlene's Authentic Indian Wear sells handmade Cheyenne Indian clothing online.  She has added some JavaScript functions to calculate how much a person has to pay before they submit the order page, but is having some trouble.  In Firefox, the error console woudl allow her to _____ JavaScript commands.
    1. locate
    2. add
    3. delete
    4. evaluate - correct answer
  28. Comments can be used to _____.
    1. document the code
    2. hide code from older browsers
    3. both a and b - correct answer
    4. none of the above
  29. Each JavaScript command line ends with a(n) _____ to separate it from the next command line in the program.
    1. comma
    2. ampersand
    3. semicolon - correct answer
    4. period
  30. Early on a problem with Java was that nonprogrammers found it difficult to learn and use to write their own Java applets.
    1. true - correct answer
    2. false
  31. Essentially, Java and JavaScript are the same.
    1. true
    2. false - correct answer
  32. For JavaScript external files, the MIME type is _____.
    1. file/javascript
    2. text/javascript - correct answer
    3. mime/javascript
    4. src/javascript
  33. Function names, unlike variable names, are case-sensitive.
    1. true
    2. false - correct answer
  34. Function parameters must be placed within parentheses, following the function name, and the parameters must be separated by periods.
    1. true
    2. false - correct answer
  35. If a function returns a value, it can be stored in a variable.
    1. true - correct answer
    2. false
  36. If x has the value 5 and the variable y has the value "combo", the y + "no" + x results in what value?
    1. an error
    2. null
    3. true
    4. combo no 5 - correct answer
  37. If you place JavaScript code in a separate file, the different pages in your Web site can use the programs you write in the same way that an entire site can use an external style sheet.
    1. true - correct answer
    2. false
  38. In client-side programming, programs run on the client side directly change the server data.
    1. true
    2. false - correct answer
  39. In earlier versions of HTML, the _____ attribute was used to indicate the scripting language.
    1. type
    2. language - correct answer
    3. mime/javascript
    4. src
  40. In Java, programs cannot write content to the hard disk.
    1. true - correct answer
    2. false
  41. In naming a variable, the first character must be either a letter or a(n) _____.
    1. underscore - correct answer
    2. pound sign
    3. number sign
    4. ampersand
  42. In the figure above, what are the variables?
    1. userName
    2. emServer
    3. emLink
    4. all of the above - correct answer
  43. In XHTML, the language attribute is used to indicate the script language in the <script> tag.
    1. true
    2. false - correct answer
  44. Internet Explorer actually supports a slightly different version of JavaScript called Jscript.
    1. true - correct answer
    2. false 
  45. It is common practice for JavaScript programmers to create libraries of functions located in external files to be easily accessible to many Web pages.
    1. true - correct answer
    2. false
  46. Java requires that users have access to the _____ in order to create an executable Java applet.
    1. DTD
    2. JDK - correct answer
    3. ECMAScript
    4. DDL
  47. JavaScript _____ most occurrences of white space.
    1. repeats
    2. ignores - correct answer
    3. comments
    4. executes
  48. JavaScript code can be inserted directly into an HTML or XHTML file, or placed in a separate text file that is linked to the Web page.
    1. true - correct answer
    2. false
  49. JavaScript commands can be inserted directly into an HTML file rather than being placed in a separate program file.
    1. true - correct answer
    2. false
  50. JavaScript is _____ so you must pay attention to whether or not letters are capitalized.
    1. case insensitive
    2. case sensitive - correct answer
    3. case indifferent
    4. none of the above

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



Tutorial 9 Questions 1 through 50



  1. _____ DTDs are most commonly associated with XHTML 1.0.
    1. three - correct answer
    2. two
    3. four
    4. six
  2. _____ is a language like SGML used to create markup languages bu wiothout SGML's complexity and size.
    1. XML - correct answer
    2. XHTML
    3. HTML
    4. XSL
  3. _____ is a meta-language used to create markup languages.
    1. SGML - correct answer
    2. HTML
    3. CML
    4. XHTML
  4. _____ is used for documents containing mathematical content, symbols, equations, and operations.
    1. XHTML
    2. CML
    3. MathML - correct answer
    4. Equex
  5. _____ should be used for encoding unless you are using special international characters.
    1. UTF-6
    2. UTF-32
    3. UTF-8 - correct answer
    4. UTF-60
  6. A _____ namespace only applies to select elements.
    1. selected
    2. default
    3. local - correct answer
    4. global
  7. A namespace id can be any string of characters so long as it uniquely identifies the document namespace.
    1. true - correct answer
    2. false
  8. According to the rules for well-formed XML, empty elements must be terminated.
    1. true - correct answer
    2. false
  9. All browsers recognize and understand CDATA sections.
    1. true
    2. false - correct answer
  10. An XML author can create a collection of elements and attributes for special types of data.
    1. true - correct answer
    2. false

  11. An XML document that employs the correct syntax is known as a well-made document.
    1. true
    2. false - correct answer
  12. Any XHTML document that omits the _____ element is rejected.
    1. sub
    2. p
    3. title - correct answer
    4. none of the above
  13. As the Web has branched out in recent years, it has grown to include smaller, handheld devices, which limit the size of the software that can be run on them.
    1. true - correct answer
    2. false
  14. By browsers making allowances for inconsistently applied HTML, source code for the browser becomes _____.
    1. simple
    2. easier
    3. complex - correct answer
    4. extreme
  15. Case 9-1:  Frank's custom carpentry has a Web site that is designed to appeal to all sorts of customers.  Frank wants his site to be compatible even with users who might even still use dialup and older browsers.  For his browser compatibility, which encoding should he use.
    1. UTF-64
    2. UTF-8 - correct answer
    3. UTF-10
    4. UTF-50
  16. Case 9-1:  Frank's custom carpentry has a Web site that is designed to appeal to all sorts of customers.  Frank wants his site to be compatible even with users who might even still use dialup and older browsers.  If Frank wanted to add definitions to his page, which XHTML 1.1 module would he use?
    1. Metainformation
    2. List - correct answer
    3. Object
    4. Hypertext
  17. Case 9-1:  Frank's custom carpentry has a Web site that is designed to appeal to all sorts of customers.  Frank wants his site to be compatible even with users who might even still use dialup and older browsers. In Frank's case, he should probably use which XHTML DTD to cover the most browsers?
    1. strict
    2. frameset
    3. transitional - correct answer
    4. none of the above
  18. 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 young audiences carry.  On her online order form, how should she build the attribute for the checkbox that will be selected by default when the page is viewed?
    1. check="checked" - correct answer
    2. checked="ok"
    3. selected="selected"
    4. selected="ok"
  19. 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 young audiences carry.  The Web developer wants to make the pages conform to the latest standard, so she should make the pages follow the _____ DTD.
    1. strict - correct answer
    2. frameset
    3. transitional
    4. none of the above
  20. 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 young audiences carry.  Which element should Mary not use in her Web pages to avoid violating the strict DTD rules?
    1. body
    2. img
    3. font - correct answer
    4. span

  21. Case 9-3:  Pintsized Playmates is a Web site where parents can find approved toys for toddlers.  They are looking to make a set of pages where people can navigate through the products.  Steve is currently thinking about using frames, as he has heard that they will meet what he wants to do.  In addition to supporting documents containing frames, the frameset DTD also supports _____ elements and attributes.
    1. parsed
    2. minimized
    3. deprecated - correct answer
    4. CML
  22. Case 9-3:  Pintsized Playmates is a Web site where parents can find approved toys for toddlers.  They are looking to make a set of pages where people can navigate through the products.  Steve is currently thinking about using frames, as he has heard that they will meet what he wants to do. In XHTML, which DTD should Steve add to his pages?
    1. strict
    2. frameset - correct answer
    3. transitional
    4. none of the above
  23. Deprecated attributes are allowed under the strict DTD.
    1. true
    2. false - correct answer
  24. Documents written in MathML and CML are _____ documents.
    1. XHTML
    2. HTML
    3. XSL
    4. XML - correct answer
  25. Each of the elements in the _____ namespace is marked by a prefix attached to the element name.
    1. local - correct answer
    2. default
    3. global
    4. value
  26. HTML cannot be applied inconsistently, because of strict DTDs required by the language.
    1. true
    2. false - correct answer
  27. HTML has been used to create several markup languages, including MathML and CML.
    1. true
    2. false - correct answer
  28. HTML is limited to those organizations that can afford the cost and overhead of maintaining the complex environments for programming in that language.
    1. true
    2. false - correct answer
  29. If you get an OMITTAG error from the validator for a hr tag, you should add _____ before the > of the tag.
    1. *
    2. @
    3. / - correct answer
    4. !
  30. If you want to display a < symbol in your document, you have to use the special character symbol _____.
    1. &lt; - correct answer
    2. &gt;
    3. &>;
    4. >>;
  31. If you want to test code from international documents, you will need to select a different option from the validator _____ list box.
    1. File
    2. XML builder
    3. DTD
    4. Encoding - correct answer
  32. In HTML, which of the following are examples of attribute minimization?
    1. disabled
    2. multiple
    3. noresize
    4. all of the above - correct answer
  33. In HTML, which of the following is not an example of attribute minimization?
    1. checked
    2. value - correct answer
    3. noresize
    4. selected
  34. In PCDATA, the _____ symbol is used to mark the beginning of an element tag.
    1. >
    2. < - correct answer
    3. &
    4. ;
  35. In PCDATA, you cannot enter _____ into a document as text because it is used to process information.
    1. @
    2. & - correct answer
    3. .
    4. all of the above
  36. In the figure above, the item numbered 1 indicates the _____.
    1. XML parser
    2. DTD - correct answer
    3. XML prolog
    4. XML application
  37. In the figure above, what do you need to add to fix the tag pointed at by item 2 under the strict DTD?
    1. alt=""
    2. map="" /
    3. map=""
    4. alt=""/ - correct answer
  38. In the figure above, the item numbered 2 indicates the _____.
    1. XML parser - correct answer
    2. DTD declaration
    3. DTD id
    4. XML prolog
  39. In the syntax of the DOCTYPE declaration for a general XML document, the type attribute identifies the type of _____.
    1. schema
    2. root
    3. DTD - correct answer
    4. index
  40. Individual users cannot create their own XML documents.
    1. true
    2. false - correct answer
  41. Microsoft introduced the _____ element into its browser when it saw a need for internal frames.
    1. frame
    2. frameset
    3. iframe - correct answer
    4. exframe
  42. Once you have a document that passes the validation test, you may want to make a note of this on your Web page.
    1. true - correct answer
    2. false
  43. SGML can be used on _____.
    1. Windows
    2. Linux
    3. MacOS X
    4. all of the above - correct answer
  44. SGML is device-independent and system-independent.
    1. true - correct answer
    2. false
  45. The _____ DTD does not allow any presentational features or deprecated HTML elements and attributes.
    1. transitional
    2. frameset
    3. strict - correct answer
    4. basic
  46. The _____ DTD does not support frames or inline frames.
    1. frameset
    2. basic
    3. strict - correct answer
    4. main
  47. The _____ DTD includes the deprecated elements and attributes of HTML.
    1. presentational
    2. transitional - correct answer
    3. deprecated
    4. strict
  48. The _____ DTD supports many of the presentational features of HTML.
    1. presentational
    2. strict
    3. transitional - correct answer
    4. deprecated
  49. The action attribute is a required attribute of the _____ element.
    1. bdo
    2. form - correct answer
    3. area
    4. textarea
  50. The alt attribute is a required attribute of the _____ element.
    1. style
    2. param
    3. base
    4. img - correct answer