Google News
logo
Web Services - Quiz(MCQ)
A)
WSDL
B)
UDDI
C)
SOAP
D)
All of the above

Correct Answer :   All of the above


Explanation : All of the above options are components of a web service architecture.

A)
Web Services Description
B)
Web Services Description Language
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Web Services Description Language


Explanation : In contract-last, you expose an existing service interface as a web service whose service contract is generated automatically.

A)
XML
B)
WSDL
C)
XML Schema(.xsd)
D)
All of the above

Correct Answer :   All of the above


Explanation : In contrast, the contract-first approach encourages you to think of the service contract first, in terms of XML, using XML schema (.xsd) and WSDL.

A)
Service Description
B)
XML Messaging
C)
Service Transport
D)
Service Discovery

Correct Answer :   Service Description


Explanation : Service Description is responsible for describing the public interface to a specific web service.

A)
Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI).
B)
This layer is responsible for centralizing services into a common registry and providing easy publish/find functionality.
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)

A)
Remote procedures expose input and output parameters that a web service must support.
B)
Web services allow clients to invoke procedures, functions, and methods on remote objects using an XML-based protocol.
C)
A web service supports RPC by providing services of its own, equivalent to those of a traditional component, or by translating incoming invocations into an invocation of an EJB or a .NET component.
D)
All of the above

Correct Answer :   All of the above


Explanation : All of the above options are true about Web Services RPC.

A)
SOAP is platform independent.
B)
SOAP is a format for sending messages.
C)
SOAP is designed to communicate via Internet.
D)
All of the above

Correct Answer :   All of the above

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : Just like that between an object model and a relational model.

A)
RMI
B)
Burlap
C)
Hessian
D)
All of the above

Correct Answer :   All of the above


Explanation : Spring comes with several service exporters that can export a bean as a remote service based on the RMI, Hessian, Burlap, or HTTP Invoker remoting technologies.

A)
RPC
B)
JAX-RPC
C)
JAX
D)
None of the above

Correct Answer :   JAX-RPC


Explanation : The standard for deploying web services on the Java EE platform as of Java EE 1.4 was called JAX-RPC. It supported SOAP 1.0 and 1.1, but didn’t support message-oriented web services.

A)
javax.jws.WebService
B)
javax.jws.WebServiceProvider
C)
All of the above
D)
None of the above

Correct Answer :   All of the above


Explanation : If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with javax.jws.WebService or javax.jws.WebServiceProvider and deploy that into a container in your web application.

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : It will generate the configuration (a file called sun-jaxws.xml) and wrapper beans required to expose your service.

A)
javax.jws.WebService
B)
javax.jws.WebServiceProvider
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : Spring provides a factory that can export beans annotated with javax.jws.WebService or javax.jws.WebServiceProvider inside the Spring context and then publishes the services using the JAX-WS runtime.

A)
UDDI is seen with SOAP and WSDL as one of the three foundation standards of web services.
B)
UDDI is an open industry initiative enabling businesses to discover each other and define how they interact over the Internet.
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : You can build a Java-based web service on Solaris that is accessible from your Visual Basic program that runs on Windows.

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : The web service interface can change over time without compromising the client's ability to interact with the service.

A)
JAX-WS
B)
SimpleJaxWsServiceExporter
C)
Both (A) and (B)
D)
All of the above

Correct Answer :   Both (A) and (B)


Explanation : Exposing a stand-alone SOAP endpoint using the SimpleJaxWsServiceExporter or the support for JAX-WS in a Java EE container in conjunction with Spring is simple, but these solutions ignore the largest cross-section of developers—people developing on Tomcat.

A)
jaxws:end
B)
jaxws:endpoint
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   jaxws:endpoint

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : For our example, we’ll embed CXF since it’s robust, fairly well tested, and provides support for other important standards like JAX-RS, the API for REST-ful endpoints.

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : Tomcat doesn’t support JAX-WS by itself, so we need to help it by embedding a JAX-WS runtime. There are many choices, and you’re free to take your pick. Two popular choices are Axis2 and CXF, both of which are Apache projects.

A)
Network protocol
B)
Communication protocol
C)
Data Transfer protocol
D)
None of the above

Correct Answer :   Communication protocol

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : The service provider implements the service and makes it available on the Internet.

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : Service Discovery is responsible for centralizing services into a common registry and providing easy publish/find functionality.

A)
Web services use SOAP over HTTP protocol, so you can use your existing low-cost internet for implementing web services.
B)
All the four layers (Service Transport, XML Messaging, Service Description, and Service Discovery layers) use well-defined protocols in the web services protocol stack.
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)

A)
Service Registry
B)
Service Provider
C)
Service Requestor
D)
None of the above

Correct Answer :   Service Provider


Explanation : The service Provider implements the service and makes it available on the Internet.

A)
Service Discovery
B)
Service Description
C)
Service Transport
D)
XML Messaging

Correct Answer :   XML Messaging


Explanation : XML Messaging is responsible for encoding messages in a common XML format so that messages can be understood at either end.

A)
Big Extensible Exchange Protocol
B)
Blocks Exchange Extensible Protocol
C)
Blocks Extensible External Protocol
D)
Blocks Extensible Exchange Protocol

Correct Answer :   Blocks Extensible Exchange Protocol

A)
A Java client can speak XML-RPC to a Perl server.
B)
XML-RPC is the easiest way to get started with web services.
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)

A)
Web Services
B)
Java Service
C)
Browser Action
D)
Struts Services

Correct Answer :   Web Services

A)
JavaScript Object Notation
B)
Big Web Services
C)
JavaScript Entity Notation
D)
Representation State Transfer

Correct Answer :   Big Web Services

A)
XML
B)
UDDI
C)
SOAP
D)
WSDL

Correct Answer :   XML


Explanation : The service Provider implements the service and makes it available on the Internet.

A)
CSS + HTTP
B)
CSS + JAVA
C)
XML + HTML
D)
XML + HTTP

Correct Answer :   XML + HTTP

A)
Authentication
B)
Network Security
C)
Confidentiality
D)
All of the above

Correct Answer :   All of the above

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : XML Messaging is responsible for encoding messages in a common XML format so that messages can be understood at either end.

A)
True
B)
False
C)
--
D)
--

Correct Answer :   True


Explanation : Web services allow various applications to talk to each other and share data and services among themselves.

A)
It uses a standardized XML messaging system.
B)
It is available over the Internet or private (intranet) networks.
C)
It is not tied to any one operating system or programming language.
D)
All of the above

Correct Answer :   All of the above

A)
A consumer of a web service is not tied to that web service directly.
B)
Web Services uses XML at data representation and data transportation layers.
C)
Businesses and the interfaces that they expose should be coarse-grained. Web services technology provides a natural way of defining coarse-grained services that access the right amount of business logic.
D)
All of the above

Correct Answer :   All of the above


Explanation : All of the above options are true about behavioral characteristics of web services.

A)
Currently, this layer includes XML-RPC and SOAP.
B)
This layer is responsible for encoding messages in a common XML format so that messages can be understood at either end.
C)
Both of the above
D)
None of the above

Correct Answer :   Both of the above

A)
HTTP, WSDL
B)
SOAP, UDDI, WSDL
C)
SOAP, UDDI, XML
D)
UDDI, XML, SOAP

Correct Answer :   SOAP, UDDI, WSDL

40 .
A)
Remote Procedure Calls
B)
Regional Procedure Calls
C)
Regional Protection Control
D)
Registered Procedure Counselor

Correct Answer :   Remote Procedure Calls

A)
Entity State Transfer
B)
JavaScript Entity Notation
C)
JavaScript Object Notation
D)
Representation State Transfer

Correct Answer :   Representation State Transfer

A)
Secure Object Access Protocol
B)
Simplified Object Arbitary Protocol
C)
Simple Object Access Protocol
D)
None of the above

Correct Answer :   Simple Object Access Protocol

A)
Server
B)
Browsers
C)
Different platforms
D)
None of the above

Correct Answer :   Different platforms

A)
RPC/encoded
B)
RPC/literal
C)
Document/literal
D)
Document/encoded

Correct Answer :   RPC/literal

A)
XML and SOAP
B)
XML and UDDI
C)
HTML and SOAP
D)
HTML and HTTP

Correct Answer :   XML and SOAP

A)
Open protocols
B)
Close protocols
C)
Open and Close protocols
D)
None of the above

Correct Answer :   Open protocols

A)
Web Services Design Language
B)
Web Services Development Language
C)
Web Services Dividing Language
D)
Web Services Description Language

Correct Answer :   Web Services Description Language

A)
Universal Development, Design and Integration
B)
User Development, Description and Integration
C)
Universal Description, Discovery and Integration
D)
Universal Description, Development and Integration

Correct Answer :   Universal Description, Discovery and Integration