Showing posts with label task2. Show all posts
Showing posts with label task2. Show all posts

Thursday, 10 November 2011

Task 2, part 3


1.       13)  Below is some XML.  The last line is missing.  What should it be? Select one response and write the letter
here [ b ]
a.                                        <end>
b.                                        </note>
c.                                        <note>
d.                                        <note/>

 <?xml version="1.0"?>
<note>
    <to>Class</to>
    <from>Ray</from>
    <heading>Reminder</heading>
    <body>Don't forget to complete your Blog!</body>

Justify your answer
In XML, all tags need to be closed


1.       14)  Below is some XML.  What is the missing line? Select one response and write the letter
here [ d ]
a) <Header>
b) <Body>
c) <painting>
d) </caption>

<?xml version="1.0" encoding='UTF-8'?>
<painting>
  <img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/>
  <caption>This is Raphael's "Foligno" Madonna, painted in
  <date>1511</date>-<date>1512</date>
</painting>

Justify your answer
The <caption> tag was opened, but not closed, which is not allowed in XML.

Friday, 4 November 2011

Task 2, part 2


1.       6)    Which of the following statements are true? Select one response and write the letter
here [ c ]
a.       Special-purpose packages have been derived from HTML
b.       HTML is an application derived from XML
c.        Special-purpose markup languages have been derived from XML
d.       XML is used to create HTML


Give examples to explain your answer
XML, being inherently extensible, has indeed been used as a basis for numerous other types of documents.
One of the most obvious examples of special-purpose XML-derived markup languages is XHTML – which is a re-formulation of HTML 4 document types as applications of XML 1.0.  SVG, Scalable Vector Graphics, is a format used to represent images using vector graphics, which is also an application of XML. XML is also used, internally, for recent Microsoft document types such as docx.

1.       7)    Which of the following statements DOES NOT apply to XML?  Select one response and write the letter
here [ b ]
a.       XML is a set of rules for encoding documents electronically
b.       XML is a predecessor of SGML
c.        XML explicitly identifies the knowledge structure in the encoded document, so that software packages can use this structure
d.       XML approach allow you to specify the presentation of the document, and the hypertext links

Explain your choice
SGML is not a predecessor of SGML, to the contrary, XML was derived from SGML, as SGML was unnecessarily complex for some tasks.

1.       8)    Which of the following statements DOES NOT apply to XML?  Select one response and write the letter
here [ d  ]

a.       (a)           XML underpins the www
b.       (b)           XML underpins office apps
c.        (c)           XML supports the creation of new markup languages
d.       (d)           XML is written in Java

Give examples  to illustrate your answers
It is incorrect to say that XML is written in a specific programming language; XML is a standard, defined by the W3C. XML files are text files, which are not written in any particular programming language, and the application which consumes a particular flavor of XML files can be written in any programming language.

1.       9)    What does XIML stand for? Select one response and write the letter
here [ c  ]
a.                                            Extensible Intelligent Markup Language
b.                                            Extended Invisible Markup Language
c.                                            Extensible Interface Markup Language
d.                                            Extraterrestrial Interactive Markup Language

Explain the implications of this acronym
XIML was created to address the lack of a standardized method of representing interaction data, the data that relates to user interfaces. It is a markup language based on XML, which is extensible ( hence the ‘X’, from ‘eXtensible’ ),

1.       10)  What is the purpose of XIML? Select one response and write the letter
here [ a ]
a.       A Universal Language for User Interfaces
b.       A Markup Language Intelligent Applications
c.        A Language for Unseen Web Features
d.       A Markup Language for Extraterrestrial Maps

Why is XIML needed?
While XML provides the needed framework for creating various document types, no such framework exists for interaction data. This is the problem XIML addresses – it provides developers with a way to represent and manipulate interaction data. One of the benefits is that a XIML user interface could have multiple target displays – for example, one for the web ( which would output HTML code ), and another one for  the .NET framework on Windows – which would generate the corresponding C# code.

1.       11)  What is XUL? Select one response and write the letter
here [ b ]
a.                                            Extensible Unseen Markup Language
b.                                            XML User Interface Language
c.                                            Extensible Universal Language
d.                                            Extreme UML

Why is XUL needed?
Much like XIML, XUL is an XML-based user interface markup language, but is not standardized, and does not inter-operate with implementations other than those based on Mozilla’s Gecko layout engine.

1.       12)  What is XSL? Select one response and write the letter
here [ d ]
a.                                           As a standards language
b.                                           An alternative to XML
c.                                            Extensible Universal Language
d.                                           As a stylesheet language

Why is XSL needed?
XSL stylesheets are similar to CSS stylesheets – but instead of defining the look of a HTML document, they dictate how XML documents should be displayed. XSL also includes a transformation language, XSLT, initially intended for styling operations, but currently used for general purpose XML processing – for example, generating HTML web pages from XML files. XSL is compatible with CSS, but uses a different syntax

Thursday, 3 November 2011

Task 2, part 1

Needs work: what does the X mean ?

1.       1)    What is the “X” in XML and what is its significance? Select one response and write the letter
here [ b ]
a) Extended
b) Extensible
c) Extreme
d) Extendable
The “X” is significant because
XML was designed to be extensible, which allows it to be used for a variety of applications. Many such XML-based formats have been defined, such as XML-RPC, SVG, XHTML, RSS – this proves XML’s usefulness, and would not be possible if not for XML being extensible.

1.       2)    What is a markup language? Select one response and write the letter
here [  c ]
a.       A system of symbols to support the transmission of Morse code.
b.       A system to display website standards to which a website conforms,
c.        A system of embedded codes to make an electronic document
                display on a web page as required
a.       A system to only prepare documents for publication

What is a mark-up language and how is it used?
A mark-up language is used to give a special meaning to portions of text – this is accomplished by marking up the text with special tags, which have a meaning that is determined by the particular format of the XML file. Each type of XML file can have it’s own tags, which are meaningless to other applications, or can have a different meaning.

1.       3)    What does SGML stand for? Select one response and write the letter
here [ a ]
a.                               Standard Generalized Markup Language
b.                               Structured Generalized Markup Language
c.                                School of Global Management and Learning
d.                               Simplified Generic Machine Language

What is the significance of SGML ?

SGML is important because most of the technologies that make the internet possible are based on it – such as (X)HTML and XML. The reason these languages were derived from SGML is that, due to it’s complexity, a parser for SGML is complex to write; therefore, subsets of SGML were chosen for particular applications.  


1.       4)    What is the relationship between SGML and XML? Select one response and write the letter here [ c ]
a.       SGML is based on XML
b.       SGML and XML are the basis for HTML
c.        SGML is a slimmed-down, streamlined version of XML
d.       XML is a slimmed-down, streamlined version of SGML

Describe and explain the relationship between SGML and XML

XML is based on SGML, but only has a subset of it’s features. The creators of XML acknowledged the value of SGML, but felt is too ‘heavy’ for many purposes. Therefore, XML was developed – a light markup language, that can be extended to accommodate numerous applications.


1.       5)    What is the relationship between SGML and HTML? Select one response and write the letter
here [  a  ]
a.       HTML is a mark-up language derived from SGML
b.       SGML is a mark-up language derived from HTML
c.        Both are derived from XML
d.       Both are derived from AJAX

Give further  explanation  of the relationship between SGML and XML

HTML was derived from SGML, but most HTML documents do not validate as SGML documents. Since it was introduced, HTML accumulated many features that would not be practical to exclude for backward-compatibility purposes, which prevented HTML from being an SGML application – until HTML 4.0 – which fully conforms to the SGML standard.