CIS 223 Ch 10

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which of the following is the correct way to include an external DTD named mydtd.dtd which is stored in a folder named mysite in an XML document that has books as its root element?

<!DOCTYPE books SYSTEM "mysite/mydtd.dtd">

Which of the following is the correct way to link a stylesheet named mystyle.css to an XML document?

<?xml-stylesheet type = "text/css" href = "mystyle.css" ?>

Given the following part of an HTML page: <p>p-node 1 </p><div><p>p-node 2</p></div> Which of the following are true?

<p>p-node 2</p> is a child of <div>

Given the following XML document, which elements are descendants of <books>? <books> <title>Alice in Wonderland</title> <author> <f_name>Lewis</f_name> <l_name>Carroll</l_name> </author> </books>

<title>, <author>, <f_name>, <l_name>

A DTD, which stands for Document Table Definition, must be included with all XML documents.

False

An XML namespace URI references the server of the person or company who created the pages to allow any user to be able to visit that server.

False

The getAttribute() method returns the data type of a specified attribute.

False

The setInterval() method continues to execute until the unsetInterval() method is evoked.

False

An XML namespace is:

a collection of elements and attribute names

Which of the following is not true about namespaces?

all namespace names must be lowercase

Which of the following is NOT true of XSLT?

all of the above are true

Which of the following is not true about XML element names?

all of the above are true

In the Document Object Model, the root element of the document object is the __________ element.

html

Given the following namespace named "chips" : xmlns: chips = http://liz.com/chips (Links to an external site.) assuming liz.com is a valid domain name for the owner of this website, select the following true statement:

http://liz.com/chips is used to ensure that this is a unique string

Which of the following is a valid name for an XML document?

none are valid

Which of the following correctly uses the setInterval() method to call a function named countdown() every two seconds?

var interval = window.setInterval("countdown()", 2000);

An XML schema is often preferred over a DTD because:

while both define the structure of an XML document, the schema adds the ability to define and constrain the contents of elements

Assuming a variable named end is the identifier for a setInterval() method, which of the following is the correct way to clear the timer?

window.clearInterval(end);

Both types of parsers—validating and non-validating—check to make sure that an XML document is well-formed.

True

In the Document Object Model, the top level is the document.

True

Nodes that have the same level are considered siblings if they are all inside the parent node.

True

The first line of all XML documents is the XML root element.

True

The syntax to create a style for an XML element named <dinner> that will make all the text blue (code is 0000FF) is: dinner { color: #0000FF; }

True

To transform an XML document using XSLT, you must have the following two XML documents: a source tree and a result tree.

True

Which of the following is not true about XML?

XML stands for eXternal Markup Language


Conjuntos de estudio relacionados

Unit 2 Bio Exam (Chapters 6, 7, 25, 36)

View Set

Anatomy and Physiology Homework/Lab 5

View Set

Chapter 21 Comparative Advantage Practice Quiz

View Set