XML Web Services and Java XML APIs

Quiz covering XML specifications, Java XML APIs (JAX-R, JAX-RPC, JAXP, JAXB), and web service protocols (SOAP, WSDL, UDDI)

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The schema is converted to a set of schema – driven program elements by

  1. Schema compiler
  2. Schema generator
  3. Runtime Framework
  4. None of the above
Question 2 Multiple Choice (Single Answer)

In JAXBUnmarshalling, the xml document is converted to JAXB-Driven

  1. Java Instances
  2. Java Objects
  3. XML tags
  4. Java Interfaces
Question 3 Multiple Choice (Single Answer)

The default encoding for jaxb marshalling is

  1. ISO – 8859 -1
  2. ISO – 8860 – 1
  3. UTF – 8
  4. UTF – 16
Question 4 True/False

It is mandatory that client applications have to be validated before marshalling.

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

The default data type mapping from xml to java for xsd:base64binary is

  1. int
  2. double
  3. byte
  4. byte[]
Question 6 Multiple Choice (Single Answer)

when XML element information can not be inferred by the derived Java representation of the XML Content,

  1. Null Point Exception at run time
  2. Compilation error
  3. Program terminates without warning
  4. A JAXBElement object is provided
Question 7 Multiple Choice (Single Answer)

How is JAXB different from other parsers?

  1. Stateless event driven
  2. Streaming API Driven
  3. Static binding of XSD to Java components
  4. All the above
Question 8 Multiple Choice (Single Answer)

JAXB is which type of parser?

  1. Low Level Language
  2. Assembly Language
  3. High level Language
  4. Any of the above
Question 9 Multiple Choice (Single Answer)

JAXB uses memory efficiently as

  1. The Content tree is specific to schema
  2. Content tree is not created dynamically
  3. As there is no extra tree manipulation functionality
  4. As it allows data access through accessor methods
Question 10 Multiple Choice (Single Answer)

Which of the following does not come under Run time operations in JAXB?

  1. Unmarshall the XML Document
  2. Process( Access or Modify) the XML content tree
  3. Compile the JAXB classes
  4. Validate XML Content tree
Question 11 Multiple Choice (Single Answer)

What does SOAP define

  1. The overall structure of the XML message
  2. The conventions representing the remote procedure call in the XML message
  3. A binding to HTTP
  4. The conventions to wrap and send an error back to the seder
  5. All of the above
Question 12 Multiple Choice (Single Answer)

In WSDL a refers to

  1. TCP/IP or UDP port on the server
  2. Reprsents the actual service inv used
  3. Exposes a <service> using a specific protocol binding
  4. None of the above
Question 13 True/False

UDDI is a registry and a repository

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Java API for XML based RPC (JAX-RPC)

  1. Can be used to generate server side and client side Java (Web Service) code from a WSDL
  2. Can be used to generate a WSDL from Java (Web Service) code
  3. Both A and B
  4. one of the above
Question 15 Multiple Choice (Single Answer)

Java API for XML Parsing (JAXP) is

  1. A new XML parser implementation
  2. A standard XML API that can be used by developers with over an XML parser
  3. A standard XML parsing technique
  4. none of the above
Question 16 True/False

Java Web Services developed with JAX-RPC interoperate with .Net

  1. True
  2. False
Question 17 Multiple Choice (Single Answer)

Java API for XML Registries (JAX-R) is an API

  1. To read and write to-from a UDDI registry using SOAP messages
  2. To read and write to-from an ebXML registry using SOAP messages
  3. A and B
  4. None of the above
Question 18 Multiple Choice (Single Answer)

Canonical XML specification is used to

  1. Digitally encrypt an XML document
  2. Determine if two XML documents are logically equivalent
  3. Digitally sign an XML documents
  4. None of the above
Question 19 Multiple Choice (Single Answer)

XML Digital Signature specification is used to

  1. Digitally sign an XML document
  2. Include a signature using the senders private key in the XML
  3. Is used for non-repudiation
  4. 1 & 2
  5. All of the above
Question 20 Multiple Choice (Single Answer)

XML Encryption specification is used to

  1. Extend SSL for XML
  2. Encrypt specific elements or a complete XML document.
  3. Encrypts XML using a public key that can only be decrypted with a secret private key
  4. B and C