Introduction to XML
One Mark Questions :-
1. XML is an acronym for
(a) Extensible Script Language (b) Extent Style sheet language
(c) Extensible Style sheet Language (d) Extensible Markup Language
2. XML is recommended by __________
(a) Microsoft (b) W3C (c) Sun Microsystems (d) None
3.XML provides a framework for tagging structured data
a) Yes (b) No (c) May be (d) None
4.SGML is an acronym for
(a) Standard Generalized Markup Language
(b) Structured Generalized Markup Language
(c) Sequential General Markup Language
(d) Standard Graphical Markup Language
5. XML is a subset of SGML
(a) True (b) False
6. XML is to maintain, it contains only data and markup.
(a) True (b) False (c) Not agree (d) None
7. In XML we can create User Defined tags
(a) True (b) False (c) Not agree (d) None
8. HTTP is used to deliver XML over the web
(a) True (b) Not to be determined (c) False (d) None
9.XML is not a markup language, but a language defining markup language
(a) True (b) False (c) May be (d) None
10. ______ documents are reasonably clear to lay person
(a) UML (b) XML (c) WML (d) HTML
11. XML is designed to be used on the web and supported by web tools such as ______
(a) Browser (b) Notepad (c) Operating System (d) None
12. XML uses _______ coding system
(a) ASCII (b) EBCDIC (c) UNICODE (d) None
13. XML is replacement of SGML and HTML
(a) True (b) false (c) Not determined (d) None
14. (i) XML is not a replacement of SGML
(ii) XMl is not a replacement of HTML
(a) I is True (b) ii is True (c) Both are true (d) Both are false
15. DOM stands for
(a) Document Object Model
(b) Document Oriented Model
(c) Document Object Model
16. _______ and ______ provide declarative mechanisms for describing particular view of data.
(a) XSL & XLL (b) CSS and XSL (c) XML and XUA (d) None
17. XML is defined as
(a) An application profile for SGML
(b) SGML and XML are same
(c) Like SGML
(d) None
18. XML does not provide API(Application Programming Interface) of an application
(a) True (b) False (c) Not Known (d) None
19. Pair of XML processors for Microsoft are
(a) Parser written in Java and Source code in C++
(b) Parser written in C++ and Source code in VB
(c) Parser written in VB and Source code in Java
(d) Parser written in C++ and Source code in VC++
20. Direct view of XML in Internet Explorer 5.0 is by
(a) XSL (b) CSS (c) Both a and b (d) None
21. Fully developed , W3C supported XML engine is used by
(a) Internet Explorer 4.0 (b) I.E 5.0 (c) Both a & b (d) None
22 _____ allows the developers to programmatically find the exact information within a XML data set on the client or the server
(a) XLL (b) XUA (c) XML DSO (d) None
23_____ defines the rules of an XML document.
(a) XML engine (b) W3C (c) XML Schemas (d) Server of XML
24. Server side XML processing allows XML to be used as standard means of passing data between multiple application server.
(a) False (b) True (c) Not known (d) None
25. In XML we can create one own ______ and syntax
(a) Elements (b) Web (c) Caption (d) None
26.Each XML document must have _____ and all other elements must be completely enclosed
(a) Child (b) Main (c) Root (d) None
27.____ is the standard object API that gives developers programmatic control of XML document content, structure, formats is more.
(a) XML DSO (b) XML DOM (c) Both (d) None
29. E-Commerce supports XML
(a) True (b) False (c) Not known (d) None
30 ____ allows the enterprises to apply Write Once and Run anywhere fundamentals to the to the processing of the data.
(a) XML and VB (b) XML and C++ (c) XML and Java (d) None
31. ____ editor includes validation, advanced search and replace and dialog boxes.
(a) Homesite (b) CLIP (c) XML Notepad (d) Vimal XML
32. First editor is ______
(a) CLIP (b) XMEtal 1 (c) Homesite (d) XML pro
33. WYSIWYG concept is supported by ______ editor.
(a) XML Notepad (b) XML Pro (c) Visual XML (d) Homesite
34. XML Browsers are _____
(i) Amaya 3.11 (ii) Jumbo 2 (iii) Opera Browser (iv) Netscape Navigator 4.0
(a) i,ii,iii only (b) iii,iv only (c) All (d) None
35._____ browser is extremely small , fast compatible and customizable standard web browser.
(a) Amaya 3.11 (b) Jumbo 2 (c) Opera Browser (d) Netscape Navigator 4.0
36. XML tok is the other name for _____ parser
(a) SAX (b) XP and WT (c) Expat (d) None
37. XML parsers are
(i) Expat (ii) XP and WT (iii) SAX
(a) i and iii only (b) ii and iii only (c) All (d) None
38. Simple API parser is ______
(a) Expat (b) XP and WT (c) SAX (d) Homesite
39. XML parser written in ‘C’ ____
(a) SAX (b) XP and WT (c) Expat (d) None
40. _____ is not a parser but is an API used for building parsers
(a) SAX (b) XP and WT (c) Expat (d) None
41. _____ browser brings XML,WML or WAP support
(a) Amaya 3.11 (b) Jumbo 2 (c) Opera Browser (d) Netscape Navigator 4.0
42. ______ editor developed by Techno 2000 project for windows 95/NT and Sun solaris 2.5 platform
(a) Homesite (b) CLIP (c) XML Notepad (d) Vimal XML
43 _______ is commercial XML editor from velvet logic
(a) CLIP (b) XMEtal 1 (c) XML Pro (d) Word
TWO Mark Questions :-
43. XML is
(i) A Markup language
(ii) Meta-language
(iii) Descriptive language
(iv) Provides format for structured data
(a) I & ii are true (b) ii , iii & iv are true (c) All are true (d) All are false
44. XML editors are _________
(i) CLIP (ii) XMEtal 1 (iii) XML Pro (iv) Word
(a) i,ii,iii only (b) ii,iii,iv only (c) ii,iii,iv only (d) None
45.XML is
(i) A way of marking up data
(ii) A way of manipulating the data
(iii) A way of separating structure from formatting and style
(iv) A way to store information about your documents
(a) I & ii are true (b) ii , iii & iv are true (c) All are true (d) All are false
46 ____ are the kinds of mark up
(i) Elements (ii) Structures (iii) Comments (iv) Processing Instructions (v) Ignored Sections
(a) i,ii,iii only (b) ii,iv only (c) All are true (d) None
47..XML uses Style Sheets such as
(i) Extensible style sheets
(ii) Cascading Style sheets
(iii) Both
(iv) None
(a) I (b) ii (c) iii (d) none
48. XML is defined by _______ specifications
(i) XML (Extensible markup language)
(ii) XLL (Extensible linking language)
(iii) XSL (Extensible Style sheet)
(iv) XUA (Extensible User Agent)
(a) I and ii only (b) ii and iii only (c) I and iii only (d) All
49. Internet Explorer 4.0 supports
(i) XML parser by C++ or Java
(ii) XML DOM
(iii) XML DSO
(iv) Server side XML
(a) i and ii only (b) i,iii and v only (c) All are true (d) None
FOUR Mark Questions :-
50..XML goals on internet are
(i) Easy to write program
(ii) Documents to be human legible and reasonably clear
(iii) The design of XML shall be formal and concise
(iv) Shall be compatible with SGML
(a) I & ii are true (b) ii , iii & iv are true (c) All are true (d) All are false
51. Advantages of XML are
(i) Local computation and manipulation of Data
(ii) Multiple view of data
(iii) Data integration from disparate sources
(iv) Granular updates
(a) I,ii,iii only (b) ii,iii,iv only (c) All are true (d) None.
52.Rules support to write a document in XML are
(I) XML tags can overlap
(ii) Start tags and End tags must match
(iii) XML document can have multi root elements
(iv) Empty elements have sole tags ending with />
(a) I only (b) I and iv only (c) ii,iii,iv only (d) All the above
50. XML system consists of
(i) XML parser
(ii) XML Application
(iii) XML Engine
(iv) XML DTD
(a) i,ii,iii only (b) i ,ii iv only (c) i,ii,iv only (d) All the above
53. XML is a
(i) Case Sensitive
(ii) Space Sensitive
(iii) Follows the sequence of tags
(iv) Describes the data
(a) I , ii and iii are true (b) ii,iii,iv are true (c) All are true (d) All are false
54. XML features are
(i) XML keeps data separated from HTML
(ii) XML can be used to exchange the data
(iii) XML cannot be used to share the data
(iv) XML cannot be used to store the data
(a) I,ii,iv only (b) i and ii only (c) iii,iv only (d) All are true
Key for Unit - 1
1 d 2 b 3 a 4 a 5 a
6 a 7 a 8 a 9 a 10 b
11 a 12 c 13 b 14 c 15 a
16 b 17 a 18 a 19 a 20 a
21 a 22 c 23 c 24 b 25 a
26. c 27 b 28 b 29 a 30 c
31 b 32 b 33 b 34 c 35 c
36 c 37 c 38 c 39 c 40 a
41 c 42 b 43 c 44 c 45 b
46 d 47 c 48 c 49 d 50 d
51 c 52 c 53 c 54 a 55 a
( UNIT – II)-Creating XML Document
One Mark Bits :-
(1) XML document consists of
(a) Prolog (b) Document instance (c) Both (d) None
(2) A software module called an ________ is used to read XML documents and provide access to their content and structure.
(a) Architecture (b) Prolog (c) Epilog (d) Processor
(3) XML follows _____ model
(a) Two- Tier Architecutre (b) Three-Tier Architecture (c) Cannot be defined.
(4) _____ allows developers to quality element names in a recognizable manner to avoid conflicts between elements with same name.
(a) Schema (b) DTD (c) Parser (d) Namespaces
(5) The datatypes for an element can be added from a namespace __________
(a) urn:schemas-microsoft-com:datatypes
(b) urn:schemas-microsoft:com:datatypes
(c) http://www.schemas.org/people
(d) None
(6) Data delivery in XML can be carried out by ______
(a) API (b) HTML (c) HTTP (d) None
(7) Data Manipulation in XML is carried out by ______
(a) DSO (b) DOM (c) Both (d) None
(8) The _____ is an essentially an ______ that defines a standard way in which developers can interact with the elements of the XML structure tree.
(a) DOM & HTML (b) DOM & API (c) DOM & HTTP (d) None
(9) The parser displays this data using _______
(a) CSS (b) XSL (c) Both a & b (d) None
00000000000000
(10) An ____ contains instructions for pulling information out of an XML document and transforming it into other format.
(a) CSS (b) XSL (c) XLL (d) API
(11) Data Binding is an ______ aspect that moves individual items of data from an information source.
(a) DHTML (b) HTML (c) ASP (d) None
(12)The part of XML document that precedes the first tag is collectively known as ____
(a) Epilog (b) Prolog (c) Document Instance (d) None
(13) _____ declaration allows the document author to specify whether external markup declarations may exist.
(a) Epilog (b) Prolog (c) Standalone (d) None
(14) _____ section instructs the parser not to interpret the data defined within it as a markup.
(a) Comments (b) CDATA (c) HTML (d) Declaration
(15) Comments in XML are indicated with
(a) (b) (c) // (d) None
(16) ______ string cannot occur in CDATA section.
(a) Content (b) CDEND (c) CDEnd (d) None
(17) ______ are the way of attaching characteristics or properties to the elements of a document.
(a) Elements (b) Attributes (c) Entities (d) Entity references.
(18) A form of entity reference called _______ can be used to insert arbitary UNICODE characters into an XML document.
(a) Attributes (b) Character reference (c) Elements (d) None
(20) is known as
(a) Processing Instructions (b) Attribute reference
(c) CDATA Sections (d) DTDs
(21) ____ is a set of rules that defines the structure of an XML document.
(a) Document Type Declaration (b) Document Type Definition
(b) Processing Instructions (d) None.
(22) _____ option of DTD means it resides on local hard disk and may not be available for use by other applications.
(a) SYSTEM (b) PUBLIC (c) Both a & b (d) None
(23) The syntax of DTD is
(a)
(b)
(c)
(d)
(24) _____ symbol indicates internal DTD
(a) (b) < > (c) [] (d) Can’t be determined
(25) Which of the following is not an Element Type Declaration
(a) Empty (b) Any (c) Mixed (d) IDREF
(26) An element type that has an ______ specification can contain any combination of character data and sub elements.
(a) Empty (b) Any (c) Mixed (d) IDREF
(27) Element type with _____ content are allowed to hold either character data alone or character data with child elements.
(a) Empty (b) Any (c) Mixed (d) IDREF
(28) _____ Occurance Indicator is optional and repeatable
(a) * (b) ? (c) + (d) None
(29)Attribute Declarations starts with ______
(a)
(30) If you have multiple values for the single element then use _______
(a) PCDATA (b) CDATA (c) ID (d) Attributes
(31)____ identify individual elements in a attribute.
(a) ID (b) Entity (c) Attribute (d) None
FOUR marks Questions :
32. XML is
(v) A Markup language
(vi) Meta-language
(vii) Descriptive language
(viii) Provides format for structured data
(a) I & ii are true (b) ii , iii & iv are true (c) All are true (d) All are false
33.XML is
(v) A way of marking up data
(vi) A way of manipulating the data
(vii) A way of separating structure from formatting and style
(viii) A way to store information about your documents
(a) I & ii are true (b) ii , iii & iv are true (c) All are true (d) All are false
34.XML uses Style Sheets such as
(v) Extensible style sheets
(vi) Cascading Style sheets
(vii) Both
(viii) None
(a) I (b) ii (c) iii (d) none
35. XML is defined by _______ specifications
(v) XML (Extensible markup language)
(vi) XLL (Extensible linking language)
(vii) XSL (Extensible Style sheet)
(viii) XUA (Extensible User Agent)
(a) I and ii only (b) ii and iii only (c) I and iii only (d) None
36.XML goals on internet are
(v) Easy to write program
(vi) Documents to be human legible and reasonably clear
(vii) The design of XML shall be formal and concise
(viii) Shall be compatible with SGML
(a) I & ii are true (b) ii , iii & iv are true (c) All are true (d) All are false
37 Advantages of XML are
(v) Local computation and manipulation of Data
(vi) Multiple view of data
(vii) Data integration from disparate sources
(viii) Granular updates
(a) I,ii,iii only (b) ii,iii,iv only (c) All are true (d) None.
38.Rules support to write a document in XML are
(I) XML tags can overlap
(v) Start tags and End tags must match
(vi) XML document can have multi root elements
(vii) Empty elements have sole tags ending with />
(a) I only (b) I and iv only (c) ii,iii,iv only (d) All the above
39. XML system consists of
(v) XML parser
(vi) XML Application
(vii) XML Engine
(viii) XML DTD
(a) i,ii,iii only (b) i ,ii iv only (c) i,ii,iv only (d) All the above
40____ are the kinds of mark up
(i) Elements (ii) Structures (iii) Comments (iv) Processing Instructions (v) Ignored Sections
(a) i,ii,iii only (b) ii,iv only (c) All are true (d) None
41. Internet Explorer 4.0 supports
(v) XML parser by C++ or Java
(vi) XML DOM
(vii) XML DSO
(viii) Server side XML
(a) i and ii only (b) i,iii and v only (c) All are true (d) None
42. XML is a
(v) Case Sensitive
(vi) Space Sensitive
(vii) Follows the sequence of tags
(viii) Describes the data
(a) I , ii and iii are true (b) ii,iii,iv are true (c) All are true (d) All are false
43. XML features are
(v) XML keeps data separated from HTML
(vi) XML can be used to exchange the data
(vii) XML cannot be used to share the data
(viii) XML cannot be used to store the data
(a) I,ii,iv only (b) i and ii only (c) iii,iv only (d) All are true
44. XML editors are _________
(i) CLIP (ii) XMEtal 1 (iii) XML Pro (iv) Word
(a) i,ii,iii only (b) ii,iii,iv only (c) ii,iii,iv only (d) None
Key For Unit 2
1 c 2 d 3 b 4 d 5 a
6 a 7 c 8 b 9 a 10 a
11 a 12 a 13 a 14 a 15 a
16 d 17 a 18 c 19 d 20 b
21 b 22 b 23 d 24 a 25 a
26 a 27 a 28 c 29 d 30 c
31 c 32 c 33 c 34 a 35 c
36 d 37 d 38 a 39 b 40 b
41 d 42 c 43 b 44 c
UNIT – 3(Introduction to Namespaces and Schemas)
ONE mark Questions :
1. _______ is a collection of names that can be used as element or attributes names in an XML document.
(a) Namespace (b) Stylesheet (c) DTD (d) Schema
2.______ XML processor supports the W3C XML Namespace recommendation specification.
(a) Netscape Navigator (b) I.E 4.0 (c) I.E 5.0 (d) All
3. URI is an acronym for
(a) Uniform Resource Indicator (b) Uniform Resource Location
(c) Unified Resource Locator (d) Uniform Resource Identity
4.Namespaces can be declared in _____ ways.
(a) one (b) Two (c) Four (d) Cannot be determined
5.With _____ declaration of Namespace you define a shorthand or prefix to substitute for the full name of the namespace.
(a) Explicit (b) Implicit (c) Default (d) None
6. ____ declarations are useful when a node contains elements from different namespaces.
(a) Explicit (b) Implicit (c) Default (d) None
7.A _____ default declaration declares a namespace to be used for all elements within its scope and prefix not used.
(a) Explicit (b) Implicit (c) Default (d) None
8.The name preceding the colon refers to a ______
(a) Namespace (b) URI (c) Both (d) Cannot be determined
9 A ______ ensures global uniqueness when merging XML sources.
(a) Namespace (b) URI (c) Both (d) Cannot be determined
10._____ provides support for associating elements and attributes with namespaces.
(a) Explorer (b) Microsoft XML parser (c) DTD (d) Schema
11.______ declarations are useful when a node contains elements from same namespaces.
(a) Explicit (b) Implicit (c) Default (d) None
12. Namespace supports _____ properties.
(a) one (b) Two (c) Four (d) Cannot be determined
13.____ are the properties of namespaces.
(a) nodeName (b) namespaceURI (c) Both (d) None
14._____ returns the qualified name for the node that is, the tag name including the namespace prefix if present.
(a) nodeName (b) namespaceURI (c) Prefix (d) baseName
15._____ returns the namespace for the element .If no namespace is specified on the node,”” is returned.
(a) nodeName (b) namespaceURI (c) Prefix (d) baseName
16._____ returns the prefix specified on the element or attribute.If no prefix is specified , “ “ is returned.
(a) nodeName (b) namespaceURI (c) Prefix (d) baseName
17.____ returns the name of the tag-that is, the text to the right of the colon
(a) nodeName (b) namespaceURI (c) Prefix (d) baseName
18.______ extends support for creating and removing elements and attributes by taking namespaces into account.
(a) Object model (b) Schema (c) DTD (d) Namespaces
19.____ specifies the structure of an XML document and constraints on this content.
(a) Namespace (b) Stylesheet (c) DTD (d) Schema
20._____ is a formal specification of the grammar for one tag language.
(a) Namespace (b) Schema (c) DTD (d) Stylesheet
21.DCD is an acronym for
(a) Document Content Description
(b) Document Context Data
(c) Document Containing Definition
(d) Document Context Description
22.____ implementation provided in MSxml focuses on syntactic schemas without the support for the inheritance or the other object oriented design features
(a) Namespace (b) Schema (c) DTD (d) Stylesheet
23. _____ will be specified in content property.
(a) Textonly (b) eltonly (c) Both (d) None
24.______ specifies how many times an element can appear with in other element.
(a) minOccurs (b) maxOccurs (c) Both (d) None
25.Elements and Attributes are defined in an XML schema by specifying an _________
(a)
26. The instance of an element or an attribute is declared using ______
(a)
27.____ elements can be declared globally by placing them outside the context of an Element Type.
(a)
28.Content models are _____ by default.
(a) Open (b) Closed (c) Cannot be determined
29.An _____ model allows addition of elements and attributes.
(a) Open content model (b) Closed model (d) None
30.Possible values for elements are
(a) textOnly (b) eltOnly (c) Empty (d) Mixed (e) All
31.___ attribute specifies whether sub-elements are required to appear in a certain order.
(a) Order (b) Group (c) Both (d) None
32.The ____ value indicates that sub-elements must appear in the order listed in the schema.
(a) One (b) seq (c) Not known
33.The ____ value indicates that only one sub-element can be used from the list of sub-elements.
(a) One (b) seq (c) Not known
34.The ____ element enables you to specify constraints on a specific set of sub-elements.
(a) Order (b) Group (c) Both (d) None
35.The group elements accepts _____ attributes.
(a) Order (b) MaxOccurs (c) MinOccurs (d) All
36.Element Types may have attributes with same name.These are called as _____ attributes.
(a) Independent (b) Related *(c) Both (d) All
37.To set the default value to the attribute ____ is used
*(a) Default (b) Required (c) Both (d) None
38._____ indicate the format of the data, provide for validation of the type by the XML parser .
(a) Variable *(b) Data type (c) Object (d) Function
39.Special attribute types include ____
(a) ID (b) IDREF (c) NMTOKEN (d) All
40.Datatype namespace is
urn:schemas-microsoft-com:datatypes*
urn:schemas-microsoft-xml-com:datatypes
urn:schemas-microsoft-com:data
urn:schemas-microsoftxml-com:data
41.Data namespace is
urn:schemas-microsoft-com:datatypes
urn:schemas-microsoft-xml-com:datatypes
urn:schemas-microsoft-com:data*
urn:schemas-microsoftxml-com:data
42.The _____ property on datatype elements is readonly and return the data type of the element.
(a) Variable *(b) Data type (c) Object (d) Function
43.To return the typed value of the element use
*a) nodeTypeValue (b) Datatype (c) Object (b) Return
44.A datatype element cannot have child elements.
*a) True (b) False (c) Cannot be determined
TWO mark questions:
45.By using Namespace
(i) Can reduce the conflicts between the elements having the same name.
(ii) To ensure that two elements that have the same name
(a) i only (b) ii only (c) Both (d) None
46. A schema is useful for
(i) Validating the document content (ii) Describing the document grammar
(a) i only (b) ii only (c) Both (d) None
47.Within schema element, data types can be specified on
(i) dataype attribute (ii)
(a) i only (b) ii only (c) Both (d) Cannot be determined
48.The datatypes supported by the parser and DOM
(i) String (ii) Idref (iii) nmtoken (iv) Entity (v) Ennumeration
(a) i,ii,iii only (b) iii,iv,v only (c) i,iii,v only (d) All*
49.In Internet Explorer 5.01,we can use simple datatypes like
(i) Int (ii) Boolean (iii) Float (iv) Varchar
(a) i,ii,only (b) iii,ii only (c) i,iii only (d) All
50.(i)XML Schemas are extensible
(ii)DTD are extensible
(a) i only *(b) ii only (c) Both (d) Cannot be determined
51.The following are true about namespace
(i) Multiple namespaces can be declared on a single element
(ii) Can use several prefixes to refer the same namespace
(a) i only (b) ii only *(c) Both (d) Cannot be determined
52.In Open Content Model, it is possible to include elements not mentioned in the previous schema provided
(i) They are assigned to a specific namespace
(ii) The attribute is qualified by a prefix
(a) i only (b) ii only *(c) Both (d) Cannot be determined
FOUR marks questions :
53.Schema defines
(i) The elements that can appear with the document and the attributes that can be associated with it.
(ii) The sequence of the child elements.
(iii) Whether an element is empty or include text
(iv) Default values for attributes
(a) i,ii,only (b) iii,ii,iv only (c) i,ii,iii only (d) All
54.____ are the constraints for Open Content model
(i) You cannot add/remove content that will break the existing content model
(ii) You can add undeclared elements so long as they are defined in namespace
(iii) You can add other elements in the same schema
(a) i,ii,only (b) iii,ii only (c) i,iii only (d) All
Key For Unit 3
1 a 2 a 3 a 4 d 5 a
6 b 7 b 8 b 9 a 10 a
11 b 12 c 13 c 14 b 15 c
16 d 17 a 18 c 19 d 20 b
21 b 22 b 23 d 24 a 25 a
26 a 27 a 28 c 29 d 30 c
32 c 32 c 33 c 34 a 35 c
36 d 37 d 38 a 39 b 40 b
41 d 42 c 43 b 44 c 45 a
46 c 47 b 48 c 49 c 50 a
51 b 52 c 53 b 54 a
UNIT- IV ( Introduction to XSL and CSS)
ONE mark questions:
1. W3C is an abbreviation for
(a) World Wide Web Consotorium
(b) World Wide Web Concert
(c) World Widest Web Consotorium
(d) World Wide Webbed Consotorium
2.XSL is an abbreviation for
(a) Extensible Stylesheet Language
(b) Extended Stylesheet Language
(c) Exterior Stylesheet Language
(d) Extensible Style Language
3.XSL enables display of XML by transforming XML into grammar and structure.
a) True (b) False (c) Cannot be determined
4.XML transforms the data by
(i) Quering (ii) Filtering (iii) Sorting (iv) Summarizing Data
(a) i,iii only (b) iii,iv,i only (c) i,iii,iv only (d) All
5.An XSL transformation results in the creation of ________
(a) XML tree (b) XML schema (c) XML DTD (d) XML document
6.XSL is equivalent to ______ feature of MS-Word
(a) AutoContent (b) Mail merge (c) Font (d) Table
7.The model for merging data and templates is referred to as
(a) Open Content Model
(b) Template-Driven model
(c) Mixed Content Model
(d) Closed Content Model
8. The model in which each template fragment declares the type and context of source nodes is _____
(a) Open Content Model
(b) Template-Driven model*
(c) Mixed Content Model
(d) Data-driven Model
9.The child operator that indicates that the sub elements should be selected from the root node is ____
(a) / (b) // (c) @ (d) @*
10.The filter pattern operators (the brackets) have higher precedence than the path operators(the slash
characters).
(a) True (b) False (c) Cannot be determined
11.The collection of elements of certain type can be determined using ______
(a) Special characters (b) Path operators (c) Child operators (d) None
12.XSL patterns denotes attributes with _____ symbol
(a) * (b) & (c) @ (d) //
13. XSL provides _____ capabilities for handling the data
(i) Irregular (b) Recurrsive (c) Both (d) None
14. The _____ element in XML locates a set of elements in the XML data and repeats the portion of the template for each one.
(a) < xsl : value-of>
(b)
(c)
(d) None
15. The ____ attribute describes how to find the set of elements in the source document.
(a) When (b) Value-of (c) select (d) None
16.____ element indicates that this document is a style sheet file and provides location for declaring the XSL namespace.
(a) < xsl : value-of>
(b)
(c)
(d)
17.In XML, the processing instruction is given as __________
(a)
(b) # xml version=”1.0”
(c)
(d) None
18. Attributes in the source document can be accessed in a pattern by preceding the attribute name with _____ symbol
(a) * (b) & (c) @ (d) //
19. The ______ attribute allows you to sort the selected items before iterating over the templates.
(a) When (b) Value-of (c) select (d) Order-by
20.______ is a default namespace for XSL
(a)
(b)
(c)
(d)
21.The value of the node pointed to by the order-by pattern is sorted according to
(a) Data (b) Datatype (c) namespace (d) Attributes
22.____ eleemnt provides mechanism for “either/or” processing
(a) < xsl : value-of>
(b)
(c)
(d)
23. The
(a) < xsl : value-of>
(b)
(c)
(d)
24._____ element used to insert a template where no match is found.
(a) < xsl : otherwise>
(b)
(c)
(d)
25._____ provides the descriptions how XML should display the data
(a) XSL (b) XML DSO (c) CSS (d) None
26 We can test XSL stylesheets and XML Schema documents in _______
(a) Internet Explorer 5.0 (b) Internet Explorer 4.0 (c) None.
27.For XML, the default formatting behaviour is ______
(a) “display : line”
(b) “display : inline”
(c) “display”
(d) None
TWO mark questions:
28.XSL divides the language into two main parts
(i) A transformation language for XML documents
(ii) XML vocabulary for formatting semantics
(a) i only (b) ii only (c) Both (d) None
29.XML transforms the data by
(i) Quering (ii) Filtering (iii) Sorting (iv) Summarizing Data
(a) i,iii only (b) iii,iv,i only (c) i,iii,iv only (d) All
30 Check whether the following are true with respect to the Attribute.
(i) Attributes cannot contain child elements
(ii) Index cannot be applied to the attributes.
(a) i only (b) ii only (c) Both (d) None
31. Filter pattern can contain
(i) Boolean expressions
(ii) Comparision expressions
(a) i only (b) ii only (c) Both (d) None
32.Boolean operators which perform logical-and & Logical-or operations are
(i) And (ii) Or (iii) If (iv) When
(a) i,iii only (b) iii,iv,i only (c) i,ii only (d) All
33. Conditional templates are defined with _____ elements
(i)
(a) i only (b) ii only (c) Both (d) None
34.The _____ element provides a mechanism for conditionally inserting structure into the output tree.
(i)
(a) i only (b) ii only (c) Both (d) None
35. Microsoft supports the stylesheets written in _______
(i) XSL (ii) CSS
(a) i only (b) ii only (c) Both (d) None
FOUR mark questions
36. ______ is true with XSl
(i) Enabling Display
(ii) Direct browsing of XML files
(iii) Schema Translation
(iv) Content delivery to downlevel browsers
(v) Converting XML through aqueries, sorting & filter
(a) i,iii,iv only (b) iii,v,i only (c) ii,iii,iv,i only (d) All
37.Features of XSL include
(i) Generated text labels for many data items
(ii) More sophisticated layout using HTML tables
(iii) Access to information stored in Attribute values
(iv) Dynamic display behaviours
(a) i,iii,iv only (b) iii,v,i only (c) ii,iii,iv,i only (d) All
38. Match the following
(i) Child Operator (A) /
(ii) Recurrsive Operator (B) *
(iii) Wildcard (C) //
(iv) Namespace separator (D) [ ] *
(v) Subscript separator (E) :
(a) i – A, ii – C, iii – B, iv – E , v – D*
(b) i – B, ii – C, iii – A, iv – E , v – D
(c) i – C, ii – A, iii – B, iv – E , v – D
(d) i – A, ii – C, iii – B, iv – D , v – E
39. Match the following
(i) Grouping (A) / //
(ii) Path operations (B) ( )
(iii) Filters (c) [ ]
(a) i – C, ii – B, iii- A
(b) i – B, ii – A, iii- C*
(c) i – C, ii – A, iii- B
(d) i - A, ii – B, iii- C
40.Match the following alternative syntax
(i) and (A) $ not $
(ii) or (B) $ or $
(iii) not (C) $ and $
(iv) Equal (D) $ eq $
(v) any (E) $ any $
(a) i – C, ii – B, iii – A, iv – D , v – E*
(b) i – B, ii – C, iii – A, iv – E , v – D
(c) i – C, ii – A, iii – B, iv – E , v – D
(d) i – A, ii – C, iii – B, iv – D , v – E
Key For Unit 4
1 a 2 a 3 a 4 d 5 a
6 b 7 b 8 b 9 a 10 a
11 b 12 c 13 c 14 b 15 c
16 d 17 a 18 c 19 d 20 b
21 b 22 b 23 d 24 a 25 a
26 a 27 a 28 c 29 d 30 c
33 c 32 c 33 c 34 a 35 c
36 d 37 d 38 a 39 b 40 a