XML PRACTISE 1

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

To declare a namespace for an element within an XML document, you add an attribute within the opening tag for the element using the syntax _____.

<element xmlns:prefix="uri"> ... </element>

​Case 1-2 Clarisa is tracing through her XML code to find syntax errors. Clarisa 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>

A(n) _____ section is a large block of text that XML treats as character data only.​

CDATA

You can place any large block of text within a _____ section to avoid inadvertently inserting a character that would be misinterpreted by an XML processor (such as the ampersand symbol).

CDATA

Case 1-1 Ryan 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 Ryan that XML can be used to create XML 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?

CDF

_____ is the style sheet standard developed for use with HTML on the web.

CSS

A(n) _____ provides information about the rules used in the XML document's vocabulary.​

Document type declaration (DTD)

The basic building block of an XML file

Element

_____ is an XML vocabulary used for displaying and organizing musical notation and lyrics.

MML

A command that provides an instruction to XML parsers

Processing instruction

One of the more important XML vocabularies on the Internet

RSS

Most _____ feeds contain just links, headlines, or brief synopses of new information.​

Really Simple Syndication (RSS)

If an XML document is part of a vocabulary which has a defined DTD or schema, it also needs to be tested to ensure that it satisfies the _____ of that vocabulary.​

Rules

XML has its roots in _____.

SGML

_____ is a language introduced in the 1980s that describes the content and structure of any machine-readable information.

SGML

A CDATA section is a block of text that XML treats as word data only.​

TRUE OR FALSE

A DTD defines the structure of the data and, very broadly, the types of data allowable.​

TRUE OR FALSE

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 OR FALSE

A(n) DTD more precisely defines the structure of the data and specific data restrictions.​

TRUE OR FALSE

A(n) namespace is a defined collection of element and attribute names.​

TRUE OR FALSE

Any element in an XML document can contain no more than one attribute.​

TRUE OR FALSE

Cascading Style Sheets (CSS), the style sheet language developed for use with HTML on the web, also can be used with the elements in any XML document.​

TRUE OR FALSE

Character data is not processed—it is treated as pure data content.​

TRUE OR FALSE

Declaring a(n) Android layout in XML makes it easier to visualize the structure of a user interface.​

TRUE OR FALSE

Documents written in SGML must be used on devices running the Unix operating system.​

TRUE OR FALSE

Multiple processing instructions can exist within the same XML document for different media types.​

TRUE OR FALSE

SGML has been the chosen vehicle for creating structured documents in business and government organizations of all sizes.​

TRUE OR FALSE

Subscribers to a(n) CSS feed can receive periodic updates using a software program called a feed reader or an aggregator.​

TRUE OR FALSE

The ISO/IEC character set is an international numbering system for referencing characters from virtually any language.​

TRUE OR FALSE

The name in an element's closing tag must match the name in the opening tag.​

TRUE OR FALSE

XML has its roots in Standard Generalized Markup Language (SGML), a language introduced in the 1980s that describes the structure and content of any machine-dependent information.​

TRUE OR FALSE

XML is a markup language that can be extended and modified to match the needs of the author and the data content.​

TRUE OR FALSE

_____ characters fall into three categories—parsed character data, character data, and white space.​

Text

The only sequence of symbols that may not occur within a CDATA section is _____ because this is the marker ending a CDATA section.

]]

​Another name for a feed reader

aggregator

Element names may not contain _____.

blank spaces

The orange text in the accompanying figure is an XML _____.​

comment

Parsed character data includes _____.

comments empty element tags processing instructions

The XML _____ signals to the program reading the file that the document is written in XML.

declaration

The first part of the prolog is the XML _____.

declaration

A namespace that has been declared within an element can be applied to any _____ of the element.

descendant

After declaring a default namespace, any _____ element or attribute is then considered part of this namespace unless a different namespace is declared within one of the child elements.​

descendant

The document body consists of the _____ that contain data to be stored in the document.

elements

_____ are the basic building blocks of XML files, containing the data to be stored in the document.​

elements

Since it can be difficult to remember the character numbers for different symbols, some symbols can be identified using a character _____ reference.​

entity

​Occurs after the document body in an XML document

epilog

XML is a(n) _____ language that is extensible, so it can be modified to match the needs of the document author and the data being recorded.​

markup

​Describes the content and structure of data

markup language

An element contained within another element is said to be _____.​

nested

Empty element tags are entered using a(n) _____ tag.​

one-sided

An attribute value always must be enclosed within either single or double _____.

quotes

For different users to share a vocabulary effectively, _____ must be developed that specifically control what code and content a document from that vocabulary might contain.

rules

​Attached to an XML document to control what code and content a document may have

schema

​Make sure to end every entity reference with a(n) _____.

semicolon

Elements that are side-by-side in a document's hierarchy are _____ elements.

sibling

Attribute values must be enclosed within _____.

single or double quotes

​Case 1-2 Clarisa is tracing through her XML code to find syntax errors. Clarisa begins by looking for incorrect element names. Which of the following is a problematic element name?

street address

The string &apos; is a(n) character reference for the apostrophe.​

tRUE OR FALSE

The standards for XML are developed and maintained by _____.

the W3C

A(n) compound document is an XML document composed of elements from other vocabularies or schemas.​

true or false

The UTF-8 character set includes only the characters used in the English language.​

true or false

A well-formed XML document that satisfies the rules of a DTD or schema is said to be a(n) _____ document.

valid

​A markup language tailored to contain specific pieces of information

vocabulary

_____ refers to any space, new line character, or tab character in a document.​

white space

Element names cannot begin with the letters "_____."

xml

A CDATA section may contain most markup characters, such as _____, >, and &.

​<

​Case 1-2 Clarisa is tracing through her XML code to find syntax errors. Clarisa 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>

Case 1-1 Ryan 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. Ryan 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?

​DTDs and schemas are required, but they are seldom helpful in ensuring that your XML documents follow a specific vocabulary.

​Case 1-1 Ryan 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. Ryan asks you about the roots of XML. Which of the following is NOT a characteristic of SGML?

​It is an easy language to learn and to apply because of its power, scope, and flexibility.

Case 1-1 Ryan 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. Ryan has heard that an XML document must be well-formed. Which of the following is NOT a characteristic of a well-formed document?

​It satisfies the rules of its DTD or schema.

The default encoding scheme for an XML declaration is _____.

​UTF-8

​Signals to a program that a document is written in XML

​XML declaration

Case 1-1 Ryan 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 Ryan about an important XML vocabulary called RSS. What is this vocabulary used for?

​distributing news articles or other changing content to subscribers

​An open element is also known as a(n) _____ element.

​empty

Assume that the home page of Helen's company, Hair Unlimited Salon, has the web address _____. This address provides customers with a unique location to access all of Hair Unlimited Salon's online products.

​http://example.com/hus

When white space appears in places other than element content, XML treats it in the following manner: _____.

​ignored within a document's prolog and epilog, and within any element tags

If you want to have control over the document's appearance, you have to physically _____ the document to a style sheet.

​link

A _____ instruction is a command that tells an XML parser how to process the document.

​processing

An XML document consists of the _____, the document body, and the epilog.

​prolog

To create a DTD or a schema, you need access to a _____.

​text editor

An XML document that satisfies the rules of a DTD or schema is said to be a(n) _____ document.

​valid

As XML has grown in popularity, standard _____ have been developed across a wide range of disciplines.

​vocabularies

A _____ document contains no syntax errors and satisfies the general specifications for XML code.

​well-formed

​Case 1-2 Clarisa is tracing through her XML code to find syntax errors. Clarisa next checks all of the attribute names. Which of the following is an invalid attribute name?

​xml_type

Case 1-2 Clarisa is tracing through her XML code to find syntax errors. Finally, Clarisa 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;

The default version value for an XML declaration is _____.

1.0

One version of a(n) _____ is the Uniform Resource Locator (URL), which is used to identify the location of a resource on the web.​

Uniform Resource Identifier (URI)

Develops and maintains the standards for XML

W3C

_____ space refers to nonprintable characters such as spaces (created by pressing the spacebar), new line characters (created by pressing the Enter key), or tab characters (created by pressing the Tab key).

White

One of the more important XML vocabularies is _____, which is a reformulation of HTML as an XML application.

XHTML

An RSS file is written in _____.

XML

_____ can be thought of as a lightweight version of SGML.

XML

When an XML document is created, it needs to be evaluated by a program known as a(n) _____.​

XML parser


संबंधित स्टडी सेट्स

Chem I Lesson 2: Photoelectric Effect, Absorption/Emission of Light, Bohr Model/Line Spectra

View Set

EAQ: Care of the patient with cancer

View Set

*Growth and Development of the Preschooler

View Set

Quiz 1, Quiz 2, Quiz 3, Mid-Term, Reading Quiz 9, Reading Quiz 10, Reading Quiz 11, Reading Quiz 12, Reading Quiz 13, Reading Quiz 14, Reading Quiz 8, Reading Quiz 7, Reading Quiz 6, Reading Quiz 5, Reading Quiz 4, Reading Quiz 3, Reading Quiz 2, Rea...

View Set