Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

The technology used to distribute service requests to resources is referred to as

A. load performing
B. load scheduling
C. load balancing
D. all of the mentioned
Answer» D. all of the mentioned
2.

Which of the following software can be used to implement load balancing?

A. apache mod_balancer
B. apache mod_proxy_balancer
C. f6’s bigip
D. all of the mentioned
Answer» C. f6’s bigip
3.

Which of the following type of virtualization is also characteristic of cloud computing?

A. storage
B. application
C. cpu
D. all of the mentioned
Answer» E.
4.

Point out the correct statement.

A. a client can request access to a cloud service from any location
B. a cloud has multiple application instances and directs requests to an instance based on conditions
C. computers can be partitioned into a set of virtual machines with each machine being assigned a workload
D. all of the mentioned
Answer» E.
5.

Every call to publish() will return a class that conforms to the                      interface.

A. batch
B. client
C. server
D. future
Answer» E.
6.

What is the time elapsed after a batch is created?

A. 0.5 seconds
B. 0.05 seconds
C. 1.5 seconds
D. 1 second
Answer» C. 1.5 seconds
7.

When the batch is created, it begins a countdown that publishes the batch once sufficient time has elapsed.

A. true
B. false
Answer» B. false
8.

When you publish a message                  is automatically created?

A. client
B. server
C. batch
D. server
Answer» D. server
9.

What do we call string in python 2?

A. str
B. unicode
C. strs
D. unicades
Answer» C. strs
10.

                 error will show if we try to send text string instead of bytes.

A. typeerror
B. error
C. linker error
D. compiler error
Answer» B. error
11.

The message in pub/sub is an opaque blob of

A. bits
B. bytes
C. word
D. nibble
Answer» C. word
12.

Does publish() method accepts arbitrary arguments.

A. true
B. false
Answer» B. false
13.

The topic in the publish method is in which form?

A. binomial form
B. canonical form
C. nominal form
D. message form
Answer» C. nominal form
14.

How many arguments are accepted by publish()?

A. 5 arguments
B. 3 arguments
C. 1 argument
D. 2 arguments
Answer» E.
15.

                 method publishes messages to pub/sub.

A. client()
B. publish()
C. server()
D. batch()
Answer» C. server()
16.

client() class provides                  to create topics.

A. software
B. classes
C. methods
D. batch
Answer» D. batch
17.

Factory to use our Spring bean as the implementation:-

A. jaxws:end
B. jaxws:endpoint
C. all of the mentioned
D. none of the mentioned
Answer» C. all of the mentioned
18.

CXF represents the consolidation of the Celtix and XFire projects, which each had useful SOAP support.

A. true
B. false
Answer» B. false
19.

Spring provides a factory that can export beans annotated with:-

A. javax.jws.webservice
B. javax.jws.webserviceprovider
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
20.

Exposing a stand-alone SOAP endpoint using the:-

A. simplejaxwsserviceexporter
B. jax-ws
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
21.

If you are using the JAX-RS Reference Implementation, this intermediary step will involve a tool called wsgen.

A. true
B. false
Answer» B. false
22.

If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with:-

A. javax.jws.webservice
B. javax.jws.webserviceprovider
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
23.

Tomcat doesn’t support JAX-WS by itself.

A. true
B. false
Answer» B. false
24.

The standard for deploying web services on the Java EE platform as of Java EE 1.4:-

A. jax-rpc
B. jax
C. rpc
D. none of the mentioned
Answer» B. jax
25.

3 WEB SERVICES

A. true
B. false
Answer» C.
26.

Service exporters that can export a bean as a remote service based on the :-

A. rmi
B. hessian
C. burlap
D. all of the mentioned
Answer» E.
27.

To send objects across the wire, beans need to be encoded using the Java Architecture for XML Binding (JAXB).

A. true
B. false
Answer» B. false
28.

In some cases, it’s also hard to map an object to XML (e.g., an object graph with cyclic references) because there’s actually an impedance mismatch between an object model and an XML model.

A. true
B. false
Answer» B. false
29.

In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-

A. xml
B. xml schema(.xsd)
C. wsdl
D. all of the mentioned
Answer» E.
30.

There are two approaches to developing a web service, depending on whether you define the contract first or last.

A. true
B. false
Answer» B. false
31.

A web service contract is described using :-

A. web services description language
B. web services description
C. all of the mentioned
D. none of the mentioned
Answer» B. web services description
32.

XML tag which represents information related to a REST service request.

A. result
B. title
C. none of the mentioned
D. all of the mentioned
Answer» E.
33.

REST service end point comprises an address.

A. starts with http:// and ends with ?
B. starts with http:// and ends with &
C. no certain url is specified
D. depends upon the platform used
Answer» B. starts with http:// and ends with &
34.

Accessing a third-party REST service inside a Spring application.

A. resttemplate class
B. viewresolver
C. internalviewresolver
D. view
Answer» B. viewresolver
35.

In the case of classesToBeBound, the classes assigned to this property, indicate the class (i.e., object) structure that is to be transformed into XML.

A. true
B. false
Answer» B. false
36.

To configure Jaxb2Marshaller marshaller we require.

A. classestobebound
B. contextpath
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
37.

The marshaller used by MarshallingView belongs to one of a series of XML marshallers.

A. jaxb2marshaller
B. xmlbeansmarshaller
C. castormarshalle
D. all of the mentioned
Answer» E.
38.

Marshalling is the process of transforming an in-memory representation of an object into a data format.a

A. true
B. false
Answer» B. false
39.

General-purpose class that allows a response to be rendered using a marshaller.

A. marshallingview
B. marshalling
C. view
D. all of the mentioned
Answer» B. marshalling
40.

Notation for defining REST endpoints.

A. { }
B. *
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
41.

Spring supports a series of mechanisms to generate a REST service payload.

A. true
B. false
Answer» B. false
42.

Annotation added as an input parameter to the handler method.

A. @pathvariable
B. @path
C. @pathlocale
D. none of the mentioned
Answer» B. @path
43.

Publishing an application’s data as a REST service requires.

A. @requestmapping
B. @pathvariable
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
44.

To publish a REST service with Spring.

A. publishing an application’s data as a rest service
B. accessing data from third-party rest services
C. none of the mentioned
D. all of the mentioned
Answer» E.
45.

Which of the following is used as middleware layer in the following figure?

A. xml
B. esb
C. uddi
D. none of the mentioned
Answer» C. uddi
46.

Which of the following provides commands for defining logic using conditional statements?

A. xml
B. ws-bpel
C. json
D. none of the mentioned
Answer» C. json
47.

Which of the following is commonly used to describe the service interface, how to bind information, and the nature of the component’s service or endpoint?

A. wsdl
B. scdl
C. xml
D. none of the mentioned
Answer» B. scdl
48.

Which of the following is used to define the service component that performs the service?

A. wsdl
B. scdl
C. xml
D. none of the mentioned
Answer» C. xml
49.

Which of the following describes a message-passing taxonomy for a component- based architecture that provides services to clients upon demand?

A. soa
B. ebs
C. gec
D. all of the mentioned
Answer» B. ebs
50.

Which of the following is a repeatable task within a business process?

A. service
B. bus
C. methods
D. all of the mentioned
Answer» B. bus