Task 2

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:
The X in XML stands for eXtensible to mean that the markup structure is flexible and can be customised to meet the criteria of data structure.
For example, if you had to store information about a music collection using XML, you can structure your tags to have meaning to what you’re using it for. Basically, one can create any tag and give meaning to it by extending this language.

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
        d) A system to only prepare documents for publication

Originally, “ mark up” meant sets of symbols used by publishers and people in related trades to communicate with typesetters. For example proof reader mark ups :


But now it means "a system of embedded codes to make an electronic document display on a web page as required”. Examples include HTML, XML, XHTML which include tags to structure an electronic document.

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

Significance of SGML:
The idea that all kinds of documents can be stored and then derived or extracted to and from computers in 1960s lead to the invention of Generalized Markup Language so that computers can read such documents. SGML is descendant of it. All the other markup languages later invented are directly or indirectly derived from SGML like HTML for example.


SGML is a system of tags, embedded in a document which conveys useful information about the document to a software package. It is generally known and agreed upon but independent of any particular software package.

It is a large, complex markup language, still around and used in large corporations. XML is a much more slimmed down streamlined version of SGML.

4) What is the relationship between SGML and XML? Select one response and write the letter here [ d ]

        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

Why is this so?
SGML was developed by at IBM to manage legal documents. The inventors found that all legal documents had similar sections but instead of creating a system that only recognized legal documents, they created a system that allowed people to create their own tags. This kind of extensibility lead to the creation of HTML by Tim Berners-Lee. While SGML was powerful enough to create the Web, it's really too big to use on the Web so XML was created. XML is just a slimmed down version of SGML that shares the same goals and remains fairly compatible.

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

Why is this so?
SGML was developed as a platform & software independent tool to deal with  large amounts of text. Some major users of which are aeronautics, military, pharmaceuticals etc. One of the problem with SGML is that its huge-potentially comprised of millions of tags and allows for users to define and develop their own sets of tags which is extremely difficult to work with syntactically. Another problem is that it was developed in a pre-internet environment so many features were difficult to implement once the Internet was invented.

Therefore, there was a necessity of the creation of another language which could be implemented on the internet and would develop a simple, relatively small set of 'tags' for marking up electronic documents. So a language called HTML was created out of SGML.

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 supports HTML

Examples:
Special purpose languages like XHTML, XIML (eXtensible Interface Markup Language), XUL (XML User Interface Language), CML (Chemical Markup Language) etc. are derived from XML. It is extensibility , a feature of XML, allows the creation of new tags and adding meaning to them hence the creation of new languages.

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 an 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

XML is derived from SGML. It is basically a slimmed down and streamlined version SGML. SGML was so big and complex that it was impossible to implement electronically which lead to the creation of XML which is a smaller version of SGML yet shares the same goals and fairly compatible.

8) Which of the following statements DOES NOT apply to XML? Select one response and write the letter here [ d ]
        
        a) XML underpins the www
        b) XML underpins office apps
        c) XML supports the creation new markup languages
        d) XML is written in Java

XML is a Markup Language derived from SGML which is extensible and meta language hence allowing to the creation of new languages. It is mainly used to structure electronic document and add meaning to them using the form of 'tags'.
<title>This is the title.</title>
These markups are embedded to the document and interpreted by the browsers.
Whereas Java is an Object Orientated Programming Language which uses the creation of user defined classes and objects to create software. It is converted by the compiler and interpreted by an interpreter. Java and XML can be used together to give users of the WEB a feature rich experience but they are completely two different technology.

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

XIML is an XML based user interface representation language. It was created purposefully to address the growing need of rich interactive multimedia user interface development. It is a central repository of information about a user interface written in XML.

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

XIML is needed because:
It is a simple markup language enabling functionally previously available only with complex programmed applications. One can create a webpage with the functionality of flash but do not need to use or know flash. It is an easy way to build an interactive website. It is very flexible and fully configurable, any creative idea can be implemented without any limitations.

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

XUL is needed because:
XUL (Mozilla's XML-based user interface language) lets you build feature rich cross-platform applications that can run connected to or disconnected from the Internet. These applications are easily customized with alternative text, graphics, and layout so they can be readily branded or localized for various markets. Web developers already familiar with Dynamic HTML (DHTML) will learn XUL quickly and can start building applications right away.

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

XSL is needed because:
XSL is an XML based language, rather a family of languages used for the transformation of XML documents into other documents such as HTML, XHTML, Plain Text, PDF, PostScript, PNG documents etc. In fact, the original document is not changed  but a new document is created based on its content.

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>

In XML all the elements must have a closing tag and they should be properly nested. It is an XML syntax rule. In the example above, all the elements have a closing tag but <note>. So the last line must be </note> to make the elements properly nested.

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>



All the elements in this example have closing tags but <caption>. To comply with XML syntax it must be closed. So the line here would be </caption>.

No comments:

Post a Comment