Xml(Computer Science ) Questions and Answers

Question 1. Which one of the following is any application developed and distributed among more than one layer
  1.    User interface layer
  2.    Business logic layer
  3.    Multi-layer applications
  4.    Data-access layer
Explanation:-
Answer: Option C. -> Multi-layer applications

Question 2. What is the correct declaration syntax for the version of an XML document?
Explanation:-
Answer: Option C. -> Multi-layer applications

Question 3. How can you quickly get pre-made design elements and color schemes for your Web site?
  1.    By hiring a graphic designer
  2.    By using a theme
  3.    By purchasing them onlin
  4.    Noneofthese
Explanation:-
Answer: Option B. -> By using a theme

Question 4. What does the XMLHttpRequest object accomplish in Ajax?
  1.    It's the programming language used to develop Ajax applications.
  2.    It provides a means of exchanging structured data between the Web server and client.
  3.    It provides the ability to asynchronously exchange data between Web browsers and a Web server.
  4.    It provides the ability to mark up and style the display of Web-page text.
Explanation:-
Answer: Option C. -> It provides the ability to asynchronously exchange data between Web browsers and a Web server.

Question 5. XML elements can contain
  1.    other elements
  2.    attributes
  3.    text
  4.    All Of above
Explanation:-
Answer: Option D. -> All Of above

Question 6. Which Statement about xml is true?
  1.    Elements may have multiple atrribute with the same name
  2.    Quoting attribute is optional.
  3.    Elements may nest but not overlap
  4.    All of the above.
Explanation:-
Answer: Option C. -> Elements may nest but not overlap

Question 7. Hich of the following instruct the browser which stylesheet to use
Explanation:-
Answer: Option C. -> Elements may nest but not overlap

Question 8. Which is a correct name for an XML element?
Explanation:-
Answer: Option C. -> Elements may nest but not overlap

Question 9. 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
Explanation:-
Answer: Option B. -> 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

Question 10. What is Xquery used for in XML file?
  1.    Data Store
  2.    Data Display
  3.    Data Create
  4.    Data Fetch
Explanation:-
Answer: Option D. -> Data Fetch