Web Services Development MCQs with Answers
Practice important Web Services Development MCQs with answers and explanations.
Multiple Choice Questions
Q321: When generating XML from a database in ASP, which language is used for querying the database?
- A: JavaScript
- B: SQL
- C: XQuery
- D: XPath
View Answer
B
Q322: What does the fragment xmlns="http://www.vu.edu.pk" specify in an XML schema?
- A: The schema uses VU's data types
- B: The schema uses default data types
- C: The schema uses a default namespace
- D: The schema references VU's elements
View Answer
C
Q323: Which method is used to transform XML to XHTML on the server with XSLT in ASP?
- A: xml.transform()
- B: xml.transformNode()
- C: xml.convert()
- D: xml.write()
View Answer
B
Q324: Fill in the blank: An attribute value in XML must be tested against ________ to ensure validity.
- A: Schema
- B: DTD
- C: XSLT
- D: XQuery
View Answer
B
Q325: Fill in the blank: A server response with XML content must have its content type set to ________.
- A: text/html
- B: text/plain
- C: text/xml
- D: application/xml
View Answer
C
Q326: Fill in the blank: In ASP, ________ is used to create an instance of the Microsoft XML parser.
- A: CreateObject("Microsoft.XMLDOM")
- B: CreateObject("XMLParser")
- C: new XMLDOM()
- D: setParser("Microsoft.XMLDOM")
View Answer
A
Q327: Which of the following is NOT a valid method of generating XML?
- A: Using a database
- B: Writing XML files manually
- C: Transforming XML with XSLT
- D: Using JSON to convert XML
View Answer
D
Q328: What is the correct way to declare an external entity in a DTD?
- A:
- B:
- C:
- D:
View Answer
A
Q329: Fill in the blank: In the second XML example provided, the date is represented as a ________.
- A: Child element
- B: Attribute
- C: Comment
- D: Schema element
View Answer
A
Q330: What does DOM stand for?
- A: Data Object Model
- B: Document Object Model
- C: Dynamic Object Model
- D: Direct Object Model
View Answer
B