Java XML MCQ Question-3

1. What does XML stand for?
a) eXtra Modern Link
b) eXtensible Markup Language
c) Example Markup Language
d) X-Markup Language
Ans. b

2. What is the correct syntax of the declaration which defines the XML version?:
a) b) c) d) None of the above 
Ans. b 

3. Which statement is true?
 a) All the statements are true 
b) All XML elements must have a closing tag 
c) All XML elements must be lower case 
d) All XML documents must have a DTD 
Ans. b 

4. Is it easier to process XML than HTML? 
a) Yes 
b) No 
c) Sometimes 
d) Can’t say 
Ans. a 

5. Which of the following programs support XML or XML applications?:
 a) Internet Explorer 5.5 
b) Netscape 4.7 
c) RealPlayer. 
d) both 1 and 2 
Ans. d 

6. Kind of Parsers are 
a) well-formed 
b) well-documented 
c) non-validating and validating 
d) none of the above 
Ans. c 

7. Well formed XML document means 
a) it contains a root element 
b) it contain an element 
c) it contains one or more elements 
d) must contain one or more elements and root element must contain all other elements 
 Ans. d 

8. Comment in XML document is given by a) b) c) d)
Ans. c

9. When processing an output XML, "new line" symbols
a) are copied into output "as is", i.e. "CR+LF" for Windows, CR for Macintosh, LF for Unix.
b) are converted to single LF symbol
c) are converted to single CR symbol
d) are discarded
Ans. b

10. Which of the following strings are a correct XML name?
a) _myElement
 b) my Element
c) #myElement
d) None of the above
 Ans. a

11. Which of the following strings are a correct XML name?
a) xmlExtension
b) xslNewElement
c) XMLElement#123
d) All
Ans. b

12. Which of the following XML fragments are well-formed?
a) b) c) d)
Ans. b

13. What are the predefined attributes
a) xml:lang
b) xml:space
c) both
d) none.
Ans. c

14. Kind of Parsers are
a) well-formed
b) validating
c) non-validating
d) Both 2 & 3
Ans. d

15. Valid XML document means (most appropriate)
a) the document has root element
b) the document contains at least one or more root element
c) the XML document has DTD associated with it & it complies with that DTD
d) Each element must nest inside any enclosing element property
Ans. c

16. XML uses the features of
a) HTML
b) XHTML
c) VML
d) SGML
Ans. d

17. XML document can be viewed in
a) IE 3.0
b) IE 2.0
c) IE 6.0
d) IE X.0
Ans. c

18. There is a way of describing XML data, how?
 a) XML uses a DTD to describe the data
b) XML uses XSL to describe data
c) XML uses a description node to describe data
d) Both 1 and 3
 Ans. d

19. What does DTD stand for?
a) Direct Type Definition
b) Document Type Definition
c) Do The Dance
d) Dynamic Type Definition
Ans. b

20. DTD includes the specifications about the markup that can be used within the document, the specifications consists of all EXCEPT
a) the browser name
 b) the size of element name
c) entity declarations
d) element declarations
Ans. a

21. Which of the following XML documents are well-formed?
a) some text goes here another text goes here
b) some text goes here another text goes here
c) some text goes here another text goes here
d) some text goes here another text goes here> >
 Ans. a

22. Which of the following XML fragments are well-formed? a) b) c) d)  
b) c) 
d) attributes cannot have multiple values Ans. d 

24. Which of the following XML fragments are well-formed?
 a) b) c) 
d) None of the above 
Ans. c 

25. The use of a DTD in XML development is: 
a) required when validating XML documents 
b) no longer necessary after the XML editor has been customized 
c) used to direct conversion using an XSLT processor 
d) a good guide to populating a templates to be filled in when generating an XML document automatically 
Ans. a 

26. Parameter entities can appear in 
a) xml file 
b) dtd file 
c) xsl file 
d) Both 1 and 2 

Ans. (b) 

27. Attribute standalone="no" should be included in XML declaration if a document: 
a) is linked to an external XSL stylesheet 
b) has external general references 
c) has processing instructions 
d) has an external DTD 
Ans.(d) 

 28. In XML
 a) the internal DTD subset is read before the external DTD
 b) the external DTD subset is read before the internal DTD
 c) there is no external type of DTD 
d) there is no internal type of DTD 
Ans.(a) 

29. Disadvantages of DTD are 
(i)DTDs are not extensible 
(ii)DTDs are not in to support for namespaces 
(iii)there is no provision for inheritance from one DTDs to another 
 a) (i) is correct 
b) (i),(ii) are correct 
c) (ii),(iii) are correct 
d) (i),(ii),(iii) are correct 
Ans. d 

30. To use the external DTD we have the syntax 
a) <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?> 
b) <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?> 
c) <! DOCTYPE DOCUMENT “order.dtd”?> 
d) <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?> 
Ans. a 

31. To add the attribute named Type to the tag the syntax will be 
a)  
b) c) d) Ans. d 32. The syntax for parameter entity is a) <! ENTITY % NAME DEFINITION> b) < ENTITY % NAME DEFINITION> c) <! ENTITY $ NAME DEFINITION> d) < ENTITY % NAME DEFINITION> Ans. a 33. You can name the schema using the name attribute like a) b) c) d) Ans. d 34. The default model for complex type, in XML schemas for element is a) textOnly b) elementOnly c) no default type d) both 1 & 2 Ans. b 

35. Microsoft XML Schema Data types for Hexadecimal digits representating octates 
a) UID 
b) UXID 
c) UUID 
d) XXID 
Ans. c 

36. A schema describes 
(i) grammer 
(ii) vocabulary 
(iii) structure 
(iv) datatype of XML document 
a) (i) & (ii) are correct 
b) (i),(iii) ,(iv) are correct 
c) (i),(ii),(iv) are correct 
d) (i),(ii),(iii),(iv) are correct 
 Ans. d 

37. Microsoft XML Schema Data Type “ boolean” has values 
a) True ,False 
b) True ,False or 1,0 
c) 1,0 
d) any number other then zero and zero 
 Ans. b 

38. Simple type Built into Schema “ data’ represent a data in 
a) MM-DD-YY 
b) Dd-MM-YY 
c) YY-MM-DD 
d) YYYY-MM-DD 
Ans. d 

39. In simple Type Built into XML schema Boolean type holds 
a) True, False 
b) 1,0 
c) both (1) & (2)
d) True/False and any number except 0 
Ans. c 

40. In simple type built into XML schema type flat has single precision of ________ floating point 
a) 16 bit 
b) 32 bit 
c) 8 bit 
d) 4 bit 
Ans. c 

41. The XML DOM object is 
a) Entity 
b) Entity Reference
c) Comment Reference 
d) Comment Data 
Ans. b 

42.Attribute of the document interface in DOM is/are 
(i)doctype (ii)implementation (iii)documentElement which are read only attributes 
a) (i) only b) (ii) only 
c) (ii),(iii) only 
d) all 
 Ans. d 

43. The default model for complex type, in XML schemas for element is 
a) textOnly 
b) elementOnly 
c) no default type 
d) both a & b 
Ans. b 

44. To create a choise in XML schemas, we use the 
a) element 
b) element 
c) element 
d) element 
 Ans. c 

45. The XML DOM object is 
a) Entity 
b) Entity Reference 
c) Comment Reference 
d) Comment Data 
Ans. b 

46. To create a data island we use the _____________HTML element 
a)  
b)  
c)  
d)  
Ans. a 

47. To Bind the HTML elements with DSO we use _________ attribute 
a) DATASOURCE 
b) DATAFIELD 
c) DATASRC 
d) DATAFLD 
Ans. a,c 

48. To bind the HTML element Type in text with the datasource “ dsoCustomer” we use a) b) c) d)  
Ans. c 

49. XML DSOs has the property for the number of pages of data the recordset contains 
a) Count 
b) Number 
c) pageCount 
d) pageNumber 
Ans. c 

50. Whats so great about XML? 
a) Easy data exchange 
b) High speed on network 
c) Only (2)is correct 
d) Both (1) & (2) 
  Ans. d 

51. For XML document to be valid 
a) document need to be well formed also
 b) document need not to be well formed 
c) document need to be well formed & valid 
d) document validity has no relationship with well formedness 
Ans.c 

52. A textual object is a well formed XML document if 
(i) Taken as a whole it matches the production labeled document. 
(ii) Each of the parsed entity which is referenced directly or indirectly within the document can be well formed 
 a) (i) is correct 
b) (ii)is correct 
c) both are correct 
Ans.c 

53. Which one is correct?
a) it shows that the version is 1.0 
b) shows thatit is standalone 
c) the standalone is wrong 
d) version attribute is not in XML 
Ans.c 

54. The attribute used to define a new namespace is 
a) XMLNS 
b) XmlNameSpace 
c) Xmlns 
d) XmlNs 
Ans. c 

55. To match the root node in XMLT transform the syntax will be 
1.  
2.  
3.  
4.  
Ans. 4 

56. To match the specific XML elements child like of parent element is the syntax will be 
1.  
2. 
3.
4.  
Ans.2

 57. PI in XML specification stands for 
1. 3.14 
2. priceless instruction 
3. processing instruction 
4. polymorphic inheritance 
Ans.3 

58. A validating XML application should be used when: 
1. the design demands that all elements use both start and end tags 
2. missing or out-of-place elements could cause application errors 
3. attribute values cannot refer to external entity references 
4. High performance is an important architectural constraint 
Ans.2 

59. A DSO operates like 
(a) data simulation object at server side 
(b) dynamic source object at client side 
(c) data source object at client side 
(d) data simulation object at client side 
 Ans.c 

60. The XSL formating object use to format a list is 
1. list-block 
2. list-item 
3. list-item-body 
4. list-item-label 
 Ans.1 

61. The attribute used to define a new namespace is 
1. XMLNS 
2. XmlNameSpace 
3. Xmlns 
4. XmlNs 
 Ans.4 

62. Identify the most accurate statement about the application of XML: 
1. XML must be used to produce XML and HTML output. 
2. XML cannot specify or contain presentation information. 
3. XML is used to describe hierarchically organized information. 
4. XML performs the conversion of information between different e-business applications. 
Ans.3 

63. The XSl formatting object which formats the data and caption of a table is 
(1) table 
2) table-content 
(3) table-text 
(4) none of the above 
Ans.4 

64. The XSL formating object which holds the content of the table body 
(1) table 
(2) table-body 
(3) table-content 
(4) table-footer 
Ans.2 

65. The XSL formatting object which formats the data in a table 
(1) table 
(2) table-body 
(3) title 
(4) table-content 
Ans.1 

66. The XSL formating object use to hold the content of the label of a list item is 
(1) list-block 
(2) list item 
(3) list-item-body 
(4) list-item-label 
Ans.4 

67. The XSL formating object use to hold the contents of the body of a list item is 
(1) list-block 
(2) list item 
(3) list-item-body 
(4) list-item-label 
Ans. 3 

68. XSL has formatting object “ block” 
(1) is not supported in XSL 
(2) generates a block level reference area 
(3) create a display block 
(4) groups global declarations for a style sheet 
Ans. 2 

69. XSL has “ block container” for formating the document 
(1) to create a display block to format the titles 
(2) to create a display block to format the paragraphes 
(3) to create a display block to format the headlines & figures 
(4) to create a block level reference area 
 Ans. 4 

70. The syntax for writing the minimum occurrence for an element is 
(1)  
(2)  
(3) 
(4)  
Ans.4 

71. The syntax for writing default values for element is 
(1) 
(2) 
(3) 
(4) 
Ans.3 

72. To use XSLT in an XML system: 
1. the input and output of the XSLT processor must be unparsed XML documents 
2. the input and output of the XSLT processor must be a hierarchical tree representing an XML document 
3. the XSLT processor must be called from a web agent 
4. the XSLT processor must be given the DTD as well as the XML document instance 
Ans.4 

73. What is the role of the XPath language in XSL processing? 
1. XPath identifies the order or path of processing to be followed as the XSL language is processed 
2. XPath identifies locations in XML data to be transformed in the source tree and the locations to be generated in output tree specified in XSL translation prescriptions 
3. XPath identifies the path to be followed in the execution of XSL translation prescriptions 
4. XPath specifies which XSL transform files are to be used in the translation of XML 
Ans.2 

 74. Which statement correctly describes the capabilities of the XSLT language? 
1. XSLT uses the DTD to determine how XML documents will be translated 
2. XSLT specifies how a hierarchical trees, representable by an XML document may be translated into non-hierarchical formats 
3. XSLT specifies how a hierarchical tree, representable by an XML document, may be translated into another hierarchical tree, also representable by an XML document 
4. XSLT specifies the formatting style to be used to render an XML document 
Ans.3 

75. XSLT processors accept as input: 
1. an XML conforming document file and an XSLT specification file 
2. only an XML document 
3. only an XSLT specification 
4. either an XML document or an XSLT specification 
Ans. 1 

76. The transformation of XML document in to another type of document by XSLT can be done by (i)In the server 
(ii)In the client 
(iii)With a separate program 
(1) only(i) & (ii) 
(2) only (ii) & (iii) 
(3) all are correct 
(4) only (i) & (iii) 
 Ans.3 

77: To match the root node in XMLT transform the syntax will be 
(1)  
(2)  
(3)  
(4)  
Ans.4 

78: To match the specific XML elements in XMLT the syntax for given name “ rootnode” is 
 (1)  
(2)  
(3)  
(4)  
Ans. 3 

79. To match the specific XML elements child like of parent element is the syntax will be 
(1) 
(2) 
(3)  
(4)  
Ans. 2 

80. InXSLT style sheet we have syntax to match elements with id as (if id is “ change” ) 
 (1) 
(2) 
(3)  
(4)  
Ans.1 

81. To match the text node (in XSLT) the syntax will be 
(1)  
(2)  
(3)  
(4)  
Ans.4 

82. An element declaration specifies 
 1. a single markup element 
2. zmarkup elements 
3. markup data 
4. the document data 
 Ans. 1 

83. Well formed XML document means(most appropriate) 
1. it contains a root element 
2. it contain an element 
3. it contains one or more elements 
4. must contain one or more elements and root element must contain all other elements 
 Ans.4 

84: Which of the following specify that the order and content of "membership" is not important 
 1. 
2. 
3. 
4. 
Ans. 4 

85: Which of the following is used to specify the attribute list of an element 
1. ATTLIST 
2. ?ATTLIST 
3. !ATTLIST 
4. #ATTLIST 
Ans. 2 

86: Which of the following instruct the browser which stylesheet to use 
1.  
2.  
3. 
4. 
Ans.3 

88: Which of the following XSLT Patterns is used to match any descendant nodes 
1) / 
2) // 
3) . 
4) .. 
 Ans. 2 

89: Which of the following XSLT Patterns is used to match the parent node 
1) / 
2) // 
3) . 
4) .. 
Ans.4 

 90: Which of the following is a valid XSLT iteration command 
1) for 
2) for-all 
3) for-each 
4) in-turn 
Ans.3 

91.What is an advantage of XML compared to HTML? 
1) XML works on more platforms. 
2) XML is suited to using Web pages as front ends to databases. 
3) XML was designed for portable phones.
4) XML is simpler to learn than HTML. 
Ans.2 

92.The following best describes the development of XML. 
1. XML developed from HTML because WEB browsers became more powerful. 
2. XML is designed as a replacement because SGML can not be used for document development. 
3. XML builds on HTMLs ability to provide content to virtually any audience by adding the power of intelligent content. 
4. XML is the modern replacement for HTML and SGML, taking the good points from each, making both of those languages obsolete. 
Ans.3 

93) The correct priority for implementing XML based IETMs is : 
1. Develop DTD, conduct a pilot project, create a modular library, train staff. 
2. Train staff, convert legacy documents, develop DTD, create modular library. 
3. Conduct pilot program, train staff, create modular library, develop DTD 
4. Conduct pilot program, train staff, develop DTD, convert documents, purchace XML tools. 
 Ans.3 

94. Which of the following statements is true: 
 1. XML is a direct subset of SGML 
2. SGML is an application of HTML 
3. XML is a kind of dynamic HTML 
4. XHTML is XML rewritten in HTML 
5. SGML and XML are the same thing 
 Ans.1 

95. What is a qualified name? 
1. Any name conforming to the XML Names specification 
2. A name having prefix and local name separated by a colon 
3. A name applying only to qualified elements and attributes 
4. None of the above 
Ans.2 

96. What is a NCName 
 1. A Non-Common Name 
2. A Non-Conforming Name 
3. A Non-Colonized Name 
4. None of the above 
Ans.3 

 97. If a namespace is attached to an element by prefix, what is the effect on non-prefixed child elements 
1. Nothing 
2. The namespace affects the immediate nonprefixed child elements, but no others 
3. The namespace affects all child elements of the element to which the namespace is attached no matter what level. 
4. None of the above 
Ans. 

 98. What is the default namespace 
 1. The namespace used by default when no namespace is declared 
2. The namespace used when two or more namespaces are referenced 
3. A namespace that is referenced with the xmlns attribute, but without a prefix
4. None of the above 
Ans. 3 

99.What is an XML namespace? 
 1. A set of names applied to specific spaces within an XML document, such as the head and body 
2. A set of names representing a specific XML vocabulary 
3. A set of names for XML documents pertaining to a particular vocabulary 
4. None of the above. 
Ans.2 

100. From what set of names do NCNames derive? 
1. Any combination of characters allowable in XML 
2. Any names conforming to XML Names, minus the colon 
3. Any names for elements and attributes within the DTD to which the namespace refers 
4. None of the above. 
 Ans.2

Web School BD

বাংলাদেশের প্রথম অনলাইন ভিত্তিক ট্রেনিং সেন্টার "Web School BD". ওয়েব স্কুল বিডি : https://www.webschool.com.bd

Post a Comment

আপনার কোন কিছু জানার থাকলে কমেন্টস বক্স এ লিখতে পারেন। আমরা যথাযত চেস্টা করব আপনার সঠিক উত্তর দিতে। ভালো লাগলে ধন্যবাদ দিতে ভুলবেন না। শিক্ষার্থীরা নোট ,সাজেশান্স ও নতুন নতুন ভিডিও সবার আগে পেতে আমাদের Web School BD চ্যানেলটি সাবস্ক্রাইব SUBSCRIBE করতে পারো।
- শুভকামনায় ওয়েব স্কুল বিডি

Previous Post Next Post