0% found this document useful (0 votes)
12 views4 pages

XML and Web Services Concepts Explained

The document contains a series of questions and answers related to XML, XSL, SOAP, and web services. It covers concepts such as XML structure, navigation, and transformation, as well as the differences between SOAP and REST. Additionally, it discusses the purpose of UDDI and WSDL in web services architecture.

Uploaded by

a.pavansai2004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

XML and Web Services Concepts Explained

The document contains a series of questions and answers related to XML, XSL, SOAP, and web services. It covers concepts such as XML structure, navigation, and transformation, as well as the differences between SOAP and REST. Additionally, it discusses the purpose of UDDI and WSDL in web services architecture.

Uploaded by

a.pavansai2004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

WEB PROGRAMMING

Assignment-5
[Link] sai
22B61A6603
AI&ML – 4A
1) XML permits?
A) user defined tags
B) only vendor defined tags
C) only HTML compatible tags
D) only English tags
Answer: A
Explanation: XML is meta language → tags are not predefined. They are domain defined.

2) XML is ___
A) case insensitive
B) case sensitive
Answer: B
Explanation: <Customer> and <customer> are completely different elements.

3) XML well formed requirement NOT mandatory:


A) one root element
B) attribute values in quotes
C) end tags mandatory
D) schema existence
Answer: D
Explanation: Schema is optional. Only validity requires XSD/DTD. Well formed does not.

4) XML Navigation in DOM is:


A) tree based
B) stream based
C) token based
D) packet based
Answer: A
Explanation: DOM loads full XML → tree → random access.

5) SAX model is:


A) push
B) pull
C) stateful messaging
D) graph only
Answer: A
Explanation: Parser pushes events to callbacks. DOM is random access. SAX is stream push.

6) XSL =
A) XML Stylesheet Language
B) XML Structural Language
Answer: A
Explanation: XSL = XSLT + XSL-FO + XPath.

7) XSLT works on:


A) binary compiled SAX format
B) XML source tree + produces result tree
C) HTML only
D) SGML only
Answer: B
Explanation: XSLT transforms one XML document to another output (XML/HTML/Text).

8) XPath returns:
A) only nodes
B) nodes / Boolean / Number / String
Answer: B
Explanation: XPath return types are 4.

9) XSLT template match selects node set using:


A) CSS
B) XPath
Answer: B
Explanation: match=" " uses XPath.

10) Web Service SOA original classical stack uses:


A) XML SOAP + WSDL + UDDI
B) REST + JWT
Answer: A

11) SOAP envelope must have:


A) body
B) header only
C) body optional
D) fault mandatory
Answer: A
Explanation: Body required. header optional.

12) UDDI main purpose:


A) execute SOAP request
B) registry / discovery
C) define binding syntax
D) authenticate WS-Security
Answer: B
Explanation: UDDI = yellow pages discovery registry.

13) WSDL is:


A) interface definition
B) runtime log store
C) transport encryption
D) REST schema marker
Answer: A
Explanation: WSDL defines operations / portType / bindings.

14) WSDL portType contains:


A) concrete binding
B) abstract operations
C) HTTP URL address
Answer: B

15) WSDL binding contains:


A) abstract operation signature
B) transport + format mapping
Answer: B
Explanation: binding maps abstract → SOAP/HTTP transport.

16) Java JAX-WS is primarily for:


A) REST only
B) SOAP WS
C) browser JS only
D) JSON only
Answer: B

17) REST vs SOAP correct:


A) REST always requires XML
B) SOAP always requires XML
C) REST always requires JSON
D) SOAP can be JSON only
Answer: B
Explanation: SOAP envelope spec is XML.

18) XML namespace objective:


A) compress XML
B) avoid naming collision
C) encrypt tags
D) define XML version
Answer: B

19) XML Schema datatype richness vs DTD:


A) DTD richer
B) XSD richer
C) equal
Answer: B
Explanation: XSD has typed datatypes, DTD does not.

20) XSLT processor behavior is:


A) non declarative → procedural
B) declarative pattern based
C) imperative sequence controlled only
Answer: B
Explanation: template matching declarative transformation. Control flow is pattern driven not loop
imperative.

You might also like