- It is not always clear when to use attribute values rather than inserting a new _____.
- element - correct answer
- parser
- PCDATA
- CDATA
- Make sure to end every entity reference with a(n) _____.
- period
- comma
- apostrophe
- semicolon - correct answer
- Microsoft developed an XML parser called XBIT for its Internet Explorer browser.
- true
- false - correct answer
- One rule of thumb is that if a value is something you do not want displayed, place it in a(n) _____.
- attribute
- keyspan
- element - correct answer
- applet
- One rule of thumb is to place content with _____ and to place information describing or identifying that content within an attribute.
- keyspans
- applets
- elements - correct answer
- documents
- One SGML application used to create Web pages is _____.
- Unix
- Perl
- Java
- HTML - correct answer
- Only DTDs, and not schemas, contain rules for how data in one of the items shown in the accompanying figure should be structured.
- true
- false - correct answer
- SGML has been the chosen vehicle for creating structured documents in business and government organizations of all sizes.
- true - correct answer
- false
- SGML has many of the properties of HTML, but without the expensive overhead.
- true
- false - correct answer
- SGML hosts are markup languages based on teh SGML architecture and applied to specific types of information.
- true
- false - correct answer
- SGML is an easy language to learn and apply.
- true
- false - correct answer
- SGML is system-dependent.
- true
- false - correct answer
- SGML is often used in creating SGML _____.
- applications - correct answer
- indices
- markups
- elements
- Shown in the accompanying figure, _____ was developed to code molecular information.
- CML - correct answer
- CDF
- MML
- OFX
- Some argue that attributes should never be used because they add to the document's complexity.
- true - correct answer
- false
- Terseness in XML markup is of maximum importance.
- true
- false - correct answer
- The _____ symbol indicates that a child element occurs any number of times.
- ?
- * - correct answer
- +
- -
- The _____ symbol indicates that a child element occurs at least once.
- ?
- *
- -
- + - correct answer
- The _____ symbol indicates that a child elements occurs once or not at all.
- ? - correct answer
- *
- +
- -
- The accompanying figure shows a molecule described using _____.
- XML - correct answer
- CDF
- MML
- OFX
- The default encoding scheme for an XML declaration is _____.
- ISO-8559-1
- UTF-8 - correct answer
- Latin-1
- DTD 2.0
- The default version value for an XML declaration is _____.
- 1.0 - correct answer
- 1.1
- 1.2
- 2.0
- The document body consists of the _____ to be stored in the document.
- elements - correct answer
- attributes
- values
- keys
- The first part of the prolog is the XML _____.
- index
- master
- declaration - correct answer
- link
- The ISO/IEC character set is an international numbering system for referencing characters from virtually any language.
- true - correct answer
- false
- The name in an element's closing tag must match the name in the opening tag.
- true - correct answer
- false
- The root element in the accompanying figure's tree diagram is also known as the base element.
- true
- false - correct answer
- The standards for XML are developed and maintained by _____.
- NASA
- the NSF
- the W3C - correct answer
- DARPA
- The string ' is a(n) character reference for the apostrophe.
- true
- false - correct answer
- The UTF-8 character set includes many characters from non-English Western European languages.
- true
- false - correct answer
- The version declaration in the XML declaration allows XML to be used across a range of written languages.
- true
- false - correct answer
- The XML _____ signals to the program reading the file that the document is written in XML.
- statement
- declaration - correct answer
- index
- link
- There is a significant difference between the two versions of XML declarations (1.0 and 1.1).
- true
- false - correct answer
- To create a DTD or a schema, you need access to a _____.
- word processor
- spreadsheet program
- text editor - correct answer
- WYSIWYG authoring program
- Which of the following includes an XML parser?
- Opera 8.0
- Firefox 1.0
- Safari
- all of the above - correct answer
- Which of the following is NOT true of a CDATA section.
- It cannot contain markup characters - correct answer
- It can be placed anywhere within a document
- It cannot be nested within other CDATA sections
- It cannot be empty
- Whitespace is treated the same in HTML as in XML
- true
- false - correct answer
- XML applications like those shown in the accompanying figure are also known as _____.
- elements
- keys
- vocabularies - correct answer
- legends
- XML can be used to create XML _____.
- applications - correct answer
- indices
- markups
- elements
- XML comments like those in the accompanying figure follow the same syntax as HTML comments.
- true - correct answer
- false
- XML documents should be _____ files.
- text - correct answer
- binary
- tab-delimited
- comma-separated
- XML has its roots in _____.
- HTML
- SGML - correct answer
- XHTML
- Perl
- XML has to be compatible with the major Web protocols, including _____.
- Java
- ASP
- HTTP - correct answer
- STP
- XML has to be compatible with the major Web protocols, including _____.
- Java
- ASP
- HTTP - correct answer
- STP
- XML must be effective for which of the following?
- financial transactions
- voice mail
- word processing
- all of the above - correct answer
- 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?
- Every XML document must have an ssociated DTD or schema.
- To create a DTD or schema, you only need access to a text editor.
- DTDs can be included within XML documents, while schema must be accessed as external files - wrong answer
- Both DTDs and schemas control what code and content a document may have.
- Element names may not contain _____.
- letters
- the string "xml"
- black spaces
- the underscore character - wrong answer
- The kind of XML content in red in the accompanying figure cannot contain double _____.
- apostrophes
- periods - wrong answer
- hyphens
- quotation marks - wrong answer
- Which of the following browsers preserves white space used within a CDATA section?
- Safari
- Internet Explorer
- Firefox
- all of the above - wrong answer
- XML supports entity references for all of the following EXCEPT _____.
- >
- & - wrong answer
- , - wrong answer
- *
Friday, January 3, 2014
Tutorial 11 Questions 51 through 100
Tutorial 11 Questions 1 through 50
- _____ can be thought of as SGML Light
- HTML
- Perl
- XML - correct answer
- SQL
- _____ is a language introduced in 1980 that describes the content and structure of any machine-readable information.
- XML
- HTML
- XHTML
- SGML - correct answer
- _____ is a style sheet language developed specifically for XML.
- XSS
- CSS
- XSL - correct answer
- both a and b
- _____ is an XML vocabulary used for automatic delivery of information from Web publishers to PCs PDAs, cell phones, and other devices.
- RSS
- SMIL
- MML
- CDF - correct answer
- _____ is an XML vocabulary used for coding molecular information.
- CML - correct answer
- XHTML
- OFX
- MML
- _____ is an XML vocabulary used for creating audio dialogues that feature synthesized speech and speech recognition.
- OFX
- RSS
- SMIL
- VoiceXML - correct answer
- _____ is an XML vocabulary used for editing interactive audiovisual presentations involving streaming audio, video, text and any other media type.
- CML
- MML
- RSS
- SMIL - correct answer
- _____ is an XML vocabulary used for exchanging financial data between financial institution, for example.
- MathML
- MML
- OFX - correct answer
- CML
- _____ is an XML vocabulary used for presenting and evaluating equations and operations.
- MML
- CML
- XHTML
- MathML - correct answer
- _____ is an XML vocabulary used for writing HTML as an XML application.
- RSS
- VoiceXML
- XHTML - correct answer
- MML
- _____ is the style sheet standard developed for use with HTML on the Web.
- XSL
- XSM
- CSS - correct answer
- MSXML
- _____ 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.
- JavaScript
- Perl
- RML
- Atom - correct answer
- A _____ document contains no syntax errors and satisfies the general specifications for XML code.
- synthesized
- compound
- checked
- well-formed - correct answer
- 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.
- true
- false - correct answer
- A(n) _____ element is an element that contains no content.
- null
- void
- open - correct answer
- rich
- A(n) _____ language describes the structure and content of data.
- device-independent
- markup - correct answer
- devicde-driven
- indexed
- An open element is also known as a(n) _____ element.
- null
- void
- empty - correct answer
- key
- An optional _____ occurs after the document body in an XML document and contains any final comments or processing instructions.
- chapter
- glossary
- epilog - correct answer
- dictionary
- An RSS file is written in _____.
- SGML
- HTML
- XML - correct answer
- AML
- An XML document consists of the _____, the document body and the epilog.
- grammar
- index
- prolog - correct answer
- chapter
- An XML document that satisfies the rules of a DTD or schema is said to be a(n) _____ document.
- free
- indexed
- valid - correct answer
- roster
- As XML has grown in popularity, standard _____ like those in the accompanying figure have been developed across a wide range of disciplines.
- legends
- elements
- vocabularies - correct answer
- keys
- Attribute values must be enclosed within _____.
- ampersands
- carets
- single or double quotes - correct answer
- colons
- 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?
- It contains no syntax errors.
- It has a prolog, body and epilog
- It includes an XML declaration
- It satisfies the rules of its DTD or schema - correct answer
- 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?
- CML
- SGML - correct answer
- XHTML
- CDF
- 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?
- describing recreation and sports events
- distributing news articles or other changing content to subscribers - correct answer
- describing recipes and menu items
- editing interactive audiovisual presentations
- 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?
- &
- &attr; - correct answer
- >
- "
- 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?
- _recipe
- street address - correct answer
- NAME
- Item
- 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?
- <name>Perry</name>
- <name />
- <name>Perry</NAME> - correct answer
- none of these
- 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?
- <assignment>Homework 1<points>50<points></assignment>
- <assignment>Homework 1</assignment><points>50</points>
- <assignment>Homework 1<points>50</points></assignment> - correct answer
- <assignment>Homework 1<points>50</assignment></points>
- Character data is not processed--it is treated as pure data content.
- true - correct answer
- false
- Controlling what code and content a document from a given vocabulary may have can be done by attaching a _____.
- valid document
- schema - correct answer
- CML
- glossary
- Documents written in SGML must be used on devices running the Unix operating system.
- true
- false - correct answer
- Documents written in SGML must be used on specific types of devices, which is one of the languages limitations.
- true
- false - correct answer
- Element names are not case sensitive.
- true
- false - correct answer
- Element names cannot begin with the letters _____.
- data
- http
- xml - correct answer
- xsl
- Elements that are side-by-side in a document's hierarchy are _____ elements.
- extended
- extensible
- sibling - correct answer
- familial
- Empty tags are not part of pcdata.
- true
- false - correct answer
- Every element in an XML document can contain at most one attribute.
- true
- false - correct answer
- HTML can be inconsistently applied.
- true - correct answer
- false
- HTML was originally designed as a primary souce for information storage and retrieval.
- true
- false - correct answer
- If an XML document does not include a root element, it is not considered well-formed and is rejected.
- true - correct answer
- false
- In an XML declaration, a stand alone value of no indicates that a document is self-contained.
- true
- false - correct answer
- 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.
- ?
- * - correct answer
- +
- -
- 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.
- ? - correct answer
- *
- +
- -
- 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.
- ?
- *
- + - correct answer
- -
- In the accompanying figure's tree diagram, all of the elements in the body are children of a single element called the _____ element.
- base
- fundamental
- root - correct answer
- key
- In the tree diagram in the accompanying figure, the root element is the _____ element.
- recipes - correct answer
- recipe
- ingredient
- title
- In whitespace trimming consecutive occurrences of white space area treated as a single space.
- true
- false - correct answer
- In XML, white space is ignored within a document's prolog and dialog and within any element tags.
- true
- false - correct answer
Tutorial 10 Questions 51 through 100
- 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.
- backslashes
- commas
- periods
- slashes - correct answer
- JavaScript supports how many data types?
- 1
- 2
- 3
- 4 - correct answer
- Most JavaScript commands and names are not case sensitive.
- true
- false - correct answer
- Multiple parameters are separated by _____.
- brackets
- parenthesis
- curly braces
- commas - correct answer
- One can create a _____ variable to determine whether the user is running the Netscape browser.
- null
- string
- conditional
- Boolean - correct answer
- 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.
- CDATA - correct answer
- PCDATA
- XML
- ASP
- Parameter values can not be variables themselves.
- true
- false - correct answer
- Scripting languages are distinguished by the _____ types.
- MIME - correct answer
- DTD
- XML
- DDL
- Scripts can be placed in a _____ section of a Web page.
- headers
- body
- both a and b - correct answer
- none of the above
- Some JavaScript functions require parameters, which are variables associated with the function.
- true - correct answer
- false
- The Boolean values are on and off.
- true
- false - correct answer
- The great advantage of a function is that you can reuse it.
- true - correct answer
- false
- The responsibility for the development of a scripting standard has been transferred to an international body called _____.
- ECMA - correct answer
- NASA
- NSF
- W3C
- The section marked 1 in the above figure is an _____.
- link for displaying errors
- box for displaying errors
- link for entering JavaScript code
- box for entering JavaScript code - correct answer
- The section marked 2 in the above figure is a _____.
- link for displaying errors - correct answer
- box for displaying errors
- link for entering JavaScript code
- box for entering JavaScript code
- The type attribute value for JavaScript is _____.
- text/js
- text/javascript - correct answer
- script/jw
- script/javascript
- Users need to work with a developer's kit to compile a JavaScript program.
- true
- false - correct answer
- Variable declarations should be placed at teh _____ of your program to make your code easier to interpret.
- middle
- ending
- beginning - correct answer
- none of the above
- Variable names cannot contain _____.
- numbers
- spaces - correct answer
- underscore characters
- any of the above
- What is Internet Explorer's scripting language called?
- IEScript
- VBScript - correct answer
- Oak
- JavaScript
- When calling a JavaScript function, you provide in your call _____.
- the function name
- the parameters
- both a and b - correct answer
- none of the above
- 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.
- true - correct answer
- false
- When variables are not strictly tied to specific data types, programmers refer to the langauge as a _____ typed language.
- strongly
- loosely
- weakly - correct answer
- strictly
- Where you place a function in the HTML file is unimportant.
- true
- false - correct answer
- Which of the following assigns the result of calling a function named returnHello that returns a value of "Hello" and takes no parameters correctly?
- returnHello("Hello");
- msg=returnHello(); - correct answer
- msg=returnHello("Hello")
- returnHello("World");
- Which of the following can be passed to a text string parameter called msg?
- a text string
- a text string + a number
- a variable + a variable
- all of the above - correct answer
- Which of the following commands can be used in a function?
- return 3;
- document.write("Hwllo World");
- z = 1 + 2;
- all of the above - correct answer
- Which of the following provides features that allow you to scramble text in a page?
- HTML
- XHTML 1.0
- XHTML 1.1
- none of the above - correct answer
- With server-side scripts, computing is distributed over the Web so that no one server is overloaded with programming requests.
- true
- false - correct answer
- You can _____ an e-mail address to prevent it from being grabbed by programs that scan Web pages.
- inherit
- compile
- spam
- scramble - correct answer
- You can cause a variable to have no value by assigning it the value _____.
- 0
- null - correct answer
- empty
- " "
- You can declare a variable in JavaScript using the _____ command.
- dec
- var - correct answer
- this
- val
- You can declare multiple variables by entering the variable names in a comma-separated list.
- true - correct answer
- false
- You can display single quotation marks with the document.write() method by enclosing your text string within _____.
- periods
- double quotation marks - correct answer
- parentheses
- brackets
- You cannot use words that JavaScript has reserved for other purposes when you create a variable name.
- true - correct answer
- false
- You should declare a variable in JavaScript by using the syntax: var variable;.
- true - correct answer
- false
- You should place all script elements that reference external files in the document head.
- true - correct answer
- false
- An action for the browser to take in a script is called a _____.
- command
- statement
- both a and b - correct answer
- none of the above
- Which of the following formats is not a numeric value data type?
- "12" - correct answer
- 11.5
- 3
- 5.10E+02
- You can hide script from older browsers that do not support JavaScript by using _____ tags.
- slash
- <script>
- comment - correct answer
- internal
- _____ is the official name of the standard developed by the international body responsible for the development of a scripting standard.
- PerlScript
- VBScript
- ECMAScript
- IEScript - wrong answer
- _____ language forces programming to explicitly identify a variable's data type.
- Strongly typed
- Mildly typed
- Weakly typed - wrong answer
- Mime typed
- 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?
- Firefox Error Console
- Microsoft Script Debugger
- Microsoft Console
- none of the above - wrong answer
- 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 _____.
- CSS
- JavaScript - wrong answer
- both a and b
- none of the above
- In the figure above, the highlighted item marked 1 is a highlighted _____.
- link - wrong answer
- comment
- table
- error
- The _____ symbol can be used to combine text strings.
- + - wrong answer
- *
- ++
- ~
- Which of the following is NOT an alternative that helps avoid problems with XML parsers.
- comment the javascript
- use CDATA sections
- use external scripts - wrong answer
- all of the above
- You use the _____ tag to distringuish JavaScript code from the text that you want displayed on a Web page.
- <code>
- <JavaScript> - wrong answer
- <script>
- <js>
- You can hide script from older browsers that do not support JavaScript by using _____ tags.
- slash
- <script>
- comment - correct answer
- internal
Thursday, January 2, 2014
Tutorial 10 Questions 1 through 50
- _____ are useful because they can store information created in one part of your program and use that information in another.
- Conditional operators
- Logical operators
- Assignment operators
- Variables - correct answer
- _____ can be used to look for e-mail addresses by scanning Web pages.
- Span
- Server-side
- An E-mail harvester - correct answer
- Client-side
- _____ is an interpreted language, meaning that the program code is executed directly without compiling.
- JavaScript - correct answer
- Java
- C++
- All of the above
- _____ is essentially junk email
- spam - correct answer
- client-side
- server-side
- an e-mail harvester
- _____-side programs do not require users to wait for data to be sent over the Internet to a Web server.
- Server
- File
- Client - correct answer
- Database
- A function can not be designed to return a value.
- true
- false - correct answer
- A function may require _____ which are values used by the function.
- terms
- parameters - correct answer
- ids
- names
- A global variable has local scope only.
- true
- false - correct answer
- A multiline comment begins with a /* and ends with a */.
- true - correct answer
- false
- A numeric value is any group of characters such as "Hello".
- True
- False - correct answer
- A reference to an external Javascript file is normally placed int he _____ section of an HTML document, according to good design principles.
- body
- head - correct answer
- title
- paragraph
- A text string indicates that no value has yet been assigned to the variable.
- true
- false - correct answer
- A variable declared in a function is also called a(n) _____ variable.
- global
- scope
- local scope - correct answer
- none of the above
- A variable declared in a function is said to have _____.
- global scope
- no scope
- local scope - correct answer
- none of the above
- A variable not declared in a function is also called a(n) _____ variable.
- global - correct answer
- scope
- illegal
- local
- A(n) _____ is a person who sends out unsolicited emails.
- analyst
- spammer - correct answer
- harvester
- staffer
- A(n) _____ retrieves a Web page from the server.
- programmer
- server-side program
- user - correct answer
- information set
- A(n) _____ variable has no value at all.
- null - correct answer
- empty
- cipher
- negative
- Although not a requirement, one programming convention is to place all of the function definitions used in the Web page within the head section.
- true - correct answer
- false
- Although the standard developed by the ECMA is called ECMAScript, browsers still generally refer to it as VBScript.
- true
- false - correct answer
- Any variables not declared within functions have local scope.
- true
- false - correct answer
- Before you use a variable in a Javascript program, you should _____ it.
- compile
- concatenate
- declare - correct answer
- nullify
- 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.
- encrypt
- reverse
- scramble - correct answer
- none of the above
- 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 _____.
- headers
- footers
- hidden boxes
- comments - correct answer
- 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.
- logical
- ending
- run-time - correct answer
- load-time
- 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) _____.
- alert dialog box - correct answer
- return statement
- modular code
- logical error
- 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.
- locate
- add
- delete
- evaluate - correct answer
- Comments can be used to _____.
- document the code
- hide code from older browsers
- both a and b - correct answer
- none of the above
- Each JavaScript command line ends with a(n) _____ to separate it from the next command line in the program.
- comma
- ampersand
- semicolon - correct answer
- period
- Early on a problem with Java was that nonprogrammers found it difficult to learn and use to write their own Java applets.
- true - correct answer
- false
- Essentially, Java and JavaScript are the same.
- true
- false - correct answer
- For JavaScript external files, the MIME type is _____.
- file/javascript
- text/javascript - correct answer
- mime/javascript
- src/javascript
- Function names, unlike variable names, are case-sensitive.
- true
- false - correct answer
- Function parameters must be placed within parentheses, following the function name, and the parameters must be separated by periods.
- true
- false - correct answer
- If a function returns a value, it can be stored in a variable.
- true - correct answer
- false
- If x has the value 5 and the variable y has the value "combo", the y + "no" + x results in what value?
- an error
- null
- true
- combo no 5 - correct answer
- 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.
- true - correct answer
- false
- In client-side programming, programs run on the client side directly change the server data.
- true
- false - correct answer
- In earlier versions of HTML, the _____ attribute was used to indicate the scripting language.
- type
- language - correct answer
- mime/javascript
- src
- In Java, programs cannot write content to the hard disk.
- true - correct answer
- false
- In naming a variable, the first character must be either a letter or a(n) _____.
- underscore - correct answer
- pound sign
- number sign
- ampersand
- In the figure above, what are the variables?
- userName
- emServer
- emLink
- all of the above - correct answer
- In XHTML, the language attribute is used to indicate the script language in the <script> tag.
- true
- false - correct answer
- Internet Explorer actually supports a slightly different version of JavaScript called Jscript.
- true - correct answer
- false
- It is common practice for JavaScript programmers to create libraries of functions located in external files to be easily accessible to many Web pages.
- true - correct answer
- false
- Java requires that users have access to the _____ in order to create an executable Java applet.
- DTD
- JDK - correct answer
- ECMAScript
- DDL
- JavaScript _____ most occurrences of white space.
- repeats
- ignores - correct answer
- comments
- executes
- 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.
- true - correct answer
- false
- JavaScript commands can be inserted directly into an HTML file rather than being placed in a separate program file.
- true - correct answer
- false
- JavaScript is _____ so you must pay attention to whether or not letters are capitalized.
- case insensitive
- case sensitive - correct answer
- case indifferent
- none of the above
Tutorial 9 Questions 51 through 102
- The bgcolor attribute is a prohibited attribute of the _____ element, in the strict DTD.
- ul
- br
- tr - correct answer
- a
- The body element is prohibited from having _____ as a child element, in the strict DTD.
- img
- textarea
- input
- all of the above - correct answer
- The clear attribute is a prohibited attribute of the ____ element, in the strict DTD.
- body
- br - correct answer
- caption
- a
- The code <font color="red">Hi</font> would not be considered valid code under the _____ DTD.
- transitional
- frameset
- strict - correct answer
- main
- The DOCTYPE is added directly after the XML prolog.
- True - correct answer
- False
- 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>.
- true
- false - correct answer
- The most widely supported version of XHTML is XHTML _____.
- 1.0 - correct answer
- Basic
- 1.1
- 2.0
- The most widely supported version of XHTML is XHTML 1.0.
- true - correct answer
- false
- The namespace id for XHTML looks like a url, and is treated as one by the XML parser.
- true
- false - correct answer
- The path to a cleaner version of HTML involved rewriting HTML in terms of _____.
- CML
- SGML
- XML - correct answer
- Java
- The pre element is prohibited from having _____ as a child element, in the strict DTD.
- sub
- sup
- img
- all of the above - correct answer
- The rules for well-formed and valid documents reflect _____ practice.
- good coding - correct answer
- active design
- html
- parser
- The specifications for XHTML 1.0 most closely match those for HTML _____.
- 2.0
- 3.0
- 4.0 - correct answer
- 5.0
- The strict DTD is best used for older documents that contain depcreated features.
- true
- false - correct answer
- The strict DTD requires the use of the _____ attribute in place of the name attribute
- caption
- id - correct answer
- object
- link
- 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.
- true - correct answer
- false
- The W3C validator is a(n) _____.
- XML parser - correct answer
- XML builder
- XML application
- XML namespace
- To declare a(n) _____ namespace, you use the syntax <root xmlns="namespace">
- local
- default - correct answer
- indexed
- main
- To specify what the correct content and structure for a document should be, the document developers create a collection of rules called the _____.
- XSL
- parser
- DTD - correct answer
- schema
- 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.
- true
- false - correct answer
- To specify which DTD is used by the XHTML document, you add a DOCTYPE declaration directly after the XML prolog.
- true - correct answer
- false
- To test a page created in XHTML, you can use the validator provided by W3C.
- true - correct answer
- false
- Unlike SGML, XML can be used to design markup languages for different types of structure documents.
- true
- false - correct answer
- Using the _____ option of the validator page will display extended comments for errors.
- Show Outline
- Result
- Root Element
- Verbose Output - correct answer
- Various Web browsers developed their own unique flavors of HTML to provide customers with new and useful features not available with other browsers.
- true - correct answer
- false
- Web designers have long been able to easily create Web sites without taking into account the cross-browser compatibility of the Web page code.
- True
- False - correct answer
- When converting old HTML code to XHTML, make sure that ll inline images contain the _____ attribute.
- target
- map
- src
- alt - correct answer
- When converting old HTML code to XHTML, make sure that attribute values are placed in _____.
- quotes - correct answer
- parentheses
- brackets
- commas
- When converting old HTML code to XHTML, make sure to replace the _____ attribute with the background-color style.
- background
- bgcolor - correct answer
- back
- body
- 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.
- div
- color
- span - correct answer
- format
- When converting old HTML code to XHTML, pay specific attention to the _____ element, which often does not have closing tags.
- p - correct answer
- td
- table
- tr
- When the XHTML 1.0 validator reports that the end tag for an element is missing, it means that _____.
- a two-sided tag is missing an end tag.
- a one-sided tag was improperly entered
- either a or b - correct answer
- none of the above
- Which attribute(s) are required for the img tag?
- alt
- src
- both a & b - correct answer
- none of the above
- Which of the following are allowed under the strict DTD?
- basefont
- menu
- u
- none of the above - correct answer
- Which of the following is required by all XHTML DTDs?
- html
- title
- body
- all of the above - correct answer
- 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 />
- p - correct answer
- img
- hr
- none of the above
- While powerful, SGML is also quite simple to learn and apply.
- true
- false - correct answer
- XHTML allows some instances of attribute minimization.
- true
- false - correct answer
- XHTML documents without namespaces are not interpretable by most browsers.
- true
- false - correct answer
- XHTML version _____ is still in the development process.
- 2005
- 3.0
- 2.1
- 2.0 - correct answer
- XML documents must be evaluated with an XML _____.
- compiler
- executor
- parser - correct answer
- matrix
- XML parsers reject any XML documents that are not well-formed.
- True - correct answer
- False
- You can use _____ to force a link to open in a new window when using strict DTD.
- applets
- basic
- javascript - correct answer
- styles
- You change the _____ list box on the validator page to test an XHTML document with another DTD.
- File
- Encoding
- Doctype - correct answer
- Root Element
- 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 _____.
- well-formed - wrong answer
- valid
- both a and b
- none of the above
- In _____ you can use any character you like without worrying about it being misinterpreted.
- PCDATA - wrong answer
- CDATA
- MAINDATA
- PDATA
- Parsers and browsers essentially ignore _____.
- PCDATA
- MAINDATA - wrong answer
- EDATA
- CDATA
- The _____ module of XHTML 1.1 is used for deprecated elements and attributes.
- Structure
- Legacy
- Metainformation
- Presentation - wrong answer
- The _____ module of XHTML 1.1 is used for links.
- Links - wrong answer
- Forms
- Hypertext
- Structure - wrong answer
- The target attribute is a prohibited attribute of the _____ element, in the strict DTD.
- body
- br
- caption - wrong answer
- a
- 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.
- global
- default - wrong answer
- local
- main
- XHTML _____ is a reduced version of XHTML 1.1 geared toward mobile applications.
- 1.2
- Basic
- Mobile - wrong answer
- 2.0
Tutorial 9 Questions 1 through 50
- _____ DTDs are most commonly associated with XHTML 1.0.
- three - correct answer
- two
- four
- six
- _____ is a language like SGML used to create markup languages bu wiothout SGML's complexity and size.
- XML - correct answer
- XHTML
- HTML
- XSL
- _____ is a meta-language used to create markup languages.
- SGML - correct answer
- HTML
- CML
- XHTML
- _____ is used for documents containing mathematical content, symbols, equations, and operations.
- XHTML
- CML
- MathML - correct answer
- Equex
- _____ should be used for encoding unless you are using special international characters.
- UTF-6
- UTF-32
- UTF-8 - correct answer
- UTF-60
- A _____ namespace only applies to select elements.
- selected
- default
- local - correct answer
- global
- A namespace id can be any string of characters so long as it uniquely identifies the document namespace.
- true - correct answer
- false
- According to the rules for well-formed XML, empty elements must be terminated.
- true - correct answer
- false
- All browsers recognize and understand CDATA sections.
- true
- false - correct answer
- An XML author can create a collection of elements and attributes for special types of data.
- true - correct answer
- false
- An XML document that employs the correct syntax is known as a well-made document.
- true
- false - correct answer
- Any XHTML document that omits the _____ element is rejected.
- sub
- p
- title - correct answer
- none of the above
- 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.
- true - correct answer
- false
- By browsers making allowances for inconsistently applied HTML, source code for the browser becomes _____.
- simple
- easier
- complex - correct answer
- extreme
- 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.
- UTF-64
- UTF-8 - correct answer
- UTF-10
- UTF-50
- 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?
- Metainformation
- List - correct answer
- Object
- Hypertext
- 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?
- strict
- frameset
- transitional - correct answer
- none of the above
- 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?
- check="checked" - correct answer
- checked="ok"
- selected="selected"
- selected="ok"
- 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.
- strict - correct answer
- frameset
- transitional
- none of the above
- 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?
- body
- img
- font - correct answer
- span
- 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.
- parsed
- minimized
- deprecated - correct answer
- CML
- 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?
- strict
- frameset - correct answer
- transitional
- none of the above
- Deprecated attributes are allowed under the strict DTD.
- true
- false - correct answer
- Documents written in MathML and CML are _____ documents.
- XHTML
- HTML
- XSL
- XML - correct answer
- Each of the elements in the _____ namespace is marked by a prefix attached to the element name.
- local - correct answer
- default
- global
- value
- HTML cannot be applied inconsistently, because of strict DTDs required by the language.
- true
- false - correct answer
- HTML has been used to create several markup languages, including MathML and CML.
- true
- false - correct answer
- HTML is limited to those organizations that can afford the cost and overhead of maintaining the complex environments for programming in that language.
- true
- false - correct answer
- If you get an OMITTAG error from the validator for a hr tag, you should add _____ before the > of the tag.
- *
- @
- / - correct answer
- !
- If you want to display a < symbol in your document, you have to use the special character symbol _____.
- < - correct answer
- >
- &>;
- >>;
- If you want to test code from international documents, you will need to select a different option from the validator _____ list box.
- File
- XML builder
- DTD
- Encoding - correct answer
- In HTML, which of the following are examples of attribute minimization?
- disabled
- multiple
- noresize
- all of the above - correct answer
- In HTML, which of the following is not an example of attribute minimization?
- checked
- value - correct answer
- noresize
- selected
- In PCDATA, the _____ symbol is used to mark the beginning of an element tag.
- >
- < - correct answer
- &
- ;
- In PCDATA, you cannot enter _____ into a document as text because it is used to process information.
- @
- & - correct answer
- .
- all of the above
- In the figure above, the item numbered 1 indicates the _____.
- XML parser
- DTD - correct answer
- XML prolog
- XML application
- In the figure above, what do you need to add to fix the tag pointed at by item 2 under the strict DTD?
- alt=""
- map="" /
- map=""
- alt=""/ - correct answer
- In the figure above, the item numbered 2 indicates the _____.
- XML parser - correct answer
- DTD declaration
- DTD id
- XML prolog
- In the syntax of the DOCTYPE declaration for a general XML document, the type attribute identifies the type of _____.
- schema
- root
- DTD - correct answer
- index
- Individual users cannot create their own XML documents.
- true
- false - correct answer
- Microsoft introduced the _____ element into its browser when it saw a need for internal frames.
- frame
- frameset
- iframe - correct answer
- exframe
- Once you have a document that passes the validation test, you may want to make a note of this on your Web page.
- true - correct answer
- false
- SGML can be used on _____.
- Windows
- Linux
- MacOS X
- all of the above - correct answer
- SGML is device-independent and system-independent.
- true - correct answer
- false
- The _____ DTD does not allow any presentational features or deprecated HTML elements and attributes.
- transitional
- frameset
- strict - correct answer
- basic
- The _____ DTD does not support frames or inline frames.
- frameset
- basic
- strict - correct answer
- main
- The _____ DTD includes the deprecated elements and attributes of HTML.
- presentational
- transitional - correct answer
- deprecated
- strict
- The _____ DTD supports many of the presentational features of HTML.
- presentational
- strict
- transitional - correct answer
- deprecated
- The action attribute is a required attribute of the _____ element.
- bdo
- form - correct answer
- area
- textarea
- The alt attribute is a required attribute of the _____ element.
- style
- param
- base
- img - correct answer
Subscribe to:
Comments (Atom)