Đề thi lý thuyết dwsj aptech

22
1. Which of the fllowing method of Stub interface accepts the property name and retrieves the value of the configuration property? (Phương thức nào dưới đây của giao diện Stub chấp nhận tên thuộc tính và khôi phục các giá trị ) a. _setProperty b. _getProperty c. _getPropertyNames d. All of the above 2. Which of the following SOAP properties, Services tend to use a small number of operations with relatively large and complex messenges? a. Logical view b. Granularity c. Network Oritation d. Plarform neutral 3. JAXP allows marshaling of data to a variety output targets like an XML file, an InputStream object, a DOM node or transformed data object a. True b. False

Upload: nhan-chau-kp

Post on 15-Feb-2017

151 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Đề thi lý thuyết DWSJ Aptech

1.      Which of the fllowing method of Stub interface accepts the property name and retrieves the value of the configuration property?

(Phương thức nào dưới đây của giao diện Stub chấp nhận tên thuộc tính và khôi phục các giá trị )

a.       _setProperty

b.      _getProperty

c.       _getPropertyNames

d.      All of the above

2.      Which of the following SOAP properties, Services tend to use a small number of operations with relatively large and complex messenges?

a.       Logical view

b.      Granularity

c.       Network Oritation

d.      Plarform neutral

3.      JAXP allows marshaling of data to a variety output targets like an XML file, an InputStream object, a DOM node or transformed data object

a.       True

b.      False

Page 2: Đề thi lý thuyết DWSJ Aptech

4.      SOAP provides a clean, decentralized, and modular support for intermediaries

a.       True

b.      False

5.      ConverterStaticClient is a stand – alone program that calls the convertToFahrenheit() method of the TemperatureConverter Web Service

a.       True

b.      False

6.      J2EE 1.4 provides a tool called wscomplied.bat, which generates the WSDL file for the service

a.       True

b.      False

7.      SAX is an event – driven methodology which allows serial processing of XML document

a.       True

b.      False

8.      Client application an communicate with Web Service endpoint using which of the following different modes?

Page 3: Đề thi lý thuyết DWSJ Aptech

1.      Static Stub

2.      Synamic Proxy

3.      Dynamic Skeleton

4.      Dynamic Invocation Interface

a.       1, 2, 3

b.      2, 3, 4

c.       1, 2, 4

d.      1, 2, 3, 4

9.      Which of the following are the methods of SOAPFaultException?

1.      getFaultCode()

2.      getDetailString()

3.      getFaultActor()

4.      getDetail()

a.       1, 2, 3

b.      2, 3, 4

c.       1, 3, 4

d.      1, 2, 3, 4

Page 4: Đề thi lý thuyết DWSJ Aptech

10.  The Service interface consits of which of the following methods?

1.      getPort()

2.      getCalls()

3.      createCall()

4.      getPorts()

a.       1, 2, 3

b.      2, 3, 4

c.       1, 3, 4

d.      1, 2, 3, 4

11.  Which of the following statements related to Web Service Client are correct?

a.       JAX – RPC runtime mechanism exceptions throw JAXRPCException

b.      Client application can dynamically invoke a service endpoint using the Call interface

c.       The javax.xml.rpc package?s ServiceFactory class is an abtract class that acts as a factory for creating instances of the Service interface.

d.      All of the above

Page 5: Đề thi lý thuyết DWSJ Aptech

12.  Which of the following statements related to XML Processing API’s are correct?

ü  JAXB do not allows unmarshalling of XML data from a number of sources like a file, InputStream object, a URL, a DOM node or a transformes source object

ü  JAXB is also capable of accepting events generated by a SAX parser to handle the unmarshalling on its own

ü  JAXB allows access to XML data without unmarshalling it

ü  None of the above

13.  Which of the following statements related to SOAP are correct?

a.       There are two perspectives of SAAJ, namely Message and Connections

b.      In Base64 encoding mechanism, the encoded data consits of characters only

c.       The compound SOAP data types are a combination of simple data types that include structures and arrays

d.      All of the above

14.  Which of the following SAAJ API class is an object that stores a MIME header name and its value?

a.       MimeHeader

b.      MimeValue

c.       MimeHeaderValue

Page 6: Đề thi lý thuyết DWSJ Aptech

d.      Any of the above

15.  Which of the folowing are the Java primitive types?

ü  short

ü  String

ü  byte

ü  All of the above

16.  Which of the following are the properties  of System Oriented Architecture?

a.       logical view

b.      message orientation

c.       platform neutral

d.      All of the above

17.  Which of the following Intermediaries processing may modify outbound message by undertalking processing not described by header blocks in the incoming message?

a.       Forwarding Intermediaries

b.      Back – warding Intermediaries

c.       Active Intermediaries

d.      All of the above

Page 7: Đề thi lý thuyết DWSJ Aptech

18.  Which of the following are serialized in the same manner as compound data types?

a.       Structure serialization

b.      Array serialization

c.       Data – type serialization

d.      All of the above

19.  Which of the following are the advantages of using Web Service?

1.      Cross Business Integration

2.      Facilitages just-in-time intergration

3.      Increased Complexity

4.      Reusability

a.       1, 2, 3

b.      2, 3, 4

c.       1, 2, 4

d.      1, 2, 3, 4

20.  Which of the following syntax for loadService() method is not correct?

Page 8: Đề thi lý thuyết DWSJ Aptech

a.       public abstract Service loadService(Class serviceInterface) throw ServiceException

b.      public abstract Service loadService(URL wsdlDocumentLocation, Class serviceInterface, Properies properties) throw ServiceException

c.       public abstract Service loadService(URL wsdlDocumentLocation, QName serviceName , Properies properties) throw ServiceException

d.      public abstract Service loadService() throw ServiceException

Lý thuyết DWSJ Aptech Đề 2

1 Which one of the following APIs provides a single set of API's to access a variety of XML registries, such as UDDI and ebXML Registry? M1-25

JAXP

JAXR               

JAX-RPC

JAXB

 

2 Which one of the following data structures of the UDDI represents a relationship between two business entities or service providers? M4-13

bussinessEntity

bussinessService

publisherAssertion         

Page 9: Đề thi lý thuyết DWSJ Aptech

3 Which data structure of the UDDI represents a relationship between two business entities or service providers? M4-13

bussinessEntity

bussinessService

publisherAssertion     

 

4 Which one of the following components of the ebXML architecture contains information about a business and the way it exchanges information with other businesses? M4-20

Collaboration - Protocol Profile and Collaboration-Protocol Agreement                       

Business Processes

Messaging service

Core Components

 

5 Which component of the ebXML architecture provides the message exchange functionality? M4-21

Collaboration- Protocol Profile and Collaboration-Protocol Agreement

Business Processes

Messaging service     

Core Components

Page 10: Đề thi lý thuyết DWSJ Aptech

 

6 Which of the following Web Service APIs are provided by J2EE? M1-24

JAX-RPC         

SAAJ               

JAXR                

JAXP     

7 Which of the folowing things are performed by the JAXB API? M2-42-1

1. Generate Java classes from an XML schema2. Read and write XML using Java classes generated from an XML

schema3. Parse XML using SAX and DOM

1       

2

1 and 2

3

 

8 Which of the following APIs are included in the JAXP API? M2-03

SAX          

DOM         

Page 11: Đề thi lý thuyết DWSJ Aptech

StAX (Streaming API for XML)

TrAX (Transforming API for XML)

JDOM

 

9 Which of the following elements are created by a new SOAPMessage object by default? M3-22

SOAPHeader            

SOAPAttachment

SOAPBody               

SOAPEnvelope                 

SOAPPart <50/50>                      

AttacthmentPart

 

10 Which of the following modes of operations are supported by JAX-RPC? M2-17

Synchronous request-response mode              

One-way RPC mode                                       

Non-blocking RPC invocation mode                

Asynchronous request-response mode.

 

11 Following is a series of steps required in the JAXB data binding process: M2-42

Page 12: Đề thi lý thuyết DWSJ Aptech

1. Generate classes2. Marshal3. Unmarshal4. Compile classes5. Generate content tree6. Validate7. Process content

Which of the following indicates the correct sequence of the steps?

1, 2, 3, 4, 5, 6, 7

1, 4, 3, 5, 6, 7, 2                  

2, 1, 3, 4, 5, 6, 7

 

12 Following is a series of steps for accessing a Web Service: M5-21

1. Bind with the service provider <liên kết service>2. Discover the service definition interface(SDI) <tìm service trên giao

diện>3. Discover the service implementation <cài đặt service>

Which of the following indicates the correct sequence of the steps?

1, 2, 3

2, 1, 3

2, 3, 1

13 Following are the steps to access a Web Service using the DII method: M6-07

1. Invoke web service using proxy object.

Page 13: Đề thi lý thuyết DWSJ Aptech

2. Create a Service object.3. Create a QName class instance using the generated interface class.4. Set the Call object properties.5. Set the Web Service operation name.6. Create the Call object and set its address.

Which of the following indicates the correct sequence of the steps?

1, 2, 3, 4, 6, 5

2, 5, 4, 1, 3, 6

2, 3, 6, 4, 5, 1            

2, 6, 3, 1, 4, 5

 

14 Which of the following statements are true about the SOAP Fault? M3-36

All faults need to be reported in a singe SOAP fault element within the SOAP body.

All faults need to be reported as separate SOAP fault elements within the SOAP body.

The faultcode and faultstring sub-elements of a SOAP Fault are mandatory.    

The faultactor and detail sub-elements of a SOAP Fault are mandatory.

 

15 Which of the following are valid fault code values defined in SOAP M3-37

Server        

Page 14: Đề thi lý thuyết DWSJ Aptech

ClientFault     

VersionMismatch    

CannotUnderstand

MustUnderstand     

MessageError

Client     

16 What is the interaction layer responsible for? >’’<

1. Managing the handling of requests so that the service endpoint serves as the initial point of contact.

2. Invoking security services, including authentication and authorization3. Validating and transforming incoming XML documents and mapping

XML documents to domain objects.4. Validating and transforming outgoing XML documents.5. Delegating to existing business logic6. Handling errors

1, 2, 3, 6

1, 2, 3, 5, 6

2, 3, 4, 6

1, 2, 4, 5, 6     

17 Following are the steps to access a Web Service using a Static Stub: M6-09

Page 15: Đề thi lý thuyết DWSJ Aptech

1. Retrieve the service endpoint interface implementation in a stub object.

2. Access Web Service methods using stub object.3. Set the endpoint address for the stub object.4. Typecast the stub as an interface.

Which of the following indicates the correct sequence of the steps?

1, 2, 3, 4

1, 4, 3, 2     

2, 4, 3, 1

2, 3, 1, 4

 

18 Which of the following situations are best suited for a SAX-based parser? K

To modify the XML document directly.

To process XML document in a sequential order only.     

To have random access to the components of the document.

To process very large document and the performance and/or memory is an issue

19 Which of the following factors influence the design of a remote interface of a Web Service? M5-06

Choice of interface endpoint.     

Granularity of service.        

Page 16: Đề thi lý thuyết DWSJ Aptech

Parameter types for Web Service operations.      

None of the above.

 

20 Which one of the following describes information about the Web Service in XML format? M4-03

SOAP

UDDI

JAX-RPC

WSDL    

 

21 In which mode of JAX-RPC does a client invoke a remote procedure and continue in its thread without blocking? M2-17

Synchronous

One-way RPC

Non-blocking RPC invocation

22 The XML-based registry that allows remote clients to access, and search the Web Services is ________.  M4-12

UDDI  

Windows Registry

UDI

deXML

Page 17: Đề thi lý thuyết DWSJ Aptech

 

23 Which one of following classes is the root class for all SOAP messages? M2-33

SOAPConnection

SOAPConnectionFactory

SOAPMessage    

AttachmentPart

 

24 Which one of the following packages provides the API for creating and building SOAP messages? M2-33

javax.xml.rpc

javax.xml.soap   

java.xml.soap

java.xml.rpc

 

25 Identify the top-level elements of a WSDL document from the following? M4-05

part

message  

port

portType 

binding

Page 18: Đề thi lý thuyết DWSJ Aptech

service

types

26 Which one of the following is the process of converting an XML document into a content tree? M2-43

Marshalling

Unmarshalling   

Compiling

Validating

 

27 What is the purpose of UDDI bindingTemplate? M4-13

It represents the binding of a Web Service with its URL and its tModels.    

It contains the information for invoking a registered business API.

It contains information about the service running behind a firewall.

It processes the runtime bindingTemplate information to retrieve the logic token.

 

28 Which one of the following lightweight protocols provides a way for programs to interact with each other, even if using different operating systems and located behind a firewall? M3-04

CORBA

Page 19: Đề thi lý thuyết DWSJ Aptech

SOAP    

RMI

DCOM

29 Which of the following statements are true about SOAP? M3-04

1. SOAP messages use XML to describe messages exchanged by applications.

2. SOAP uses HTTP protocol to transfer messages between applications.3. SOAP messages are language independent

1, 3

2

3

 

30 Which of the following are the ways in which an SDI can be obtained from the service provider by a client? M5-22

Direct   

Indirect

HTTP GET Request  

Dynamic Discovery          

Static Discovery

 

Page 20: Đề thi lý thuyết DWSJ Aptech

31 Following are the steps to access a Web Service using a Dynamic Proxy? M6-05

1. Invoke Web Service using proxy object.2. Create a Service object.3. Type cast the proxy as an interface.4. Create a proxy using the service object's getPort() method.

Which of the following indicates the correct sequence of the steps?

1, 2, 3, 4

2, 3, 4, 1

2, 3, 1, 4

2, 4, 3, 1         

32 Which of the following statements about ebXML Registry are true? M4-18

It is a superset of UDDI.      

It is a subset of UDDI.

It stores the business process documents of the service provider.

It stores the information about the service provider and the Web Service.

33 Which one of the following elements of WSDL describes the various operations or methods provided by a Web Service? M4-05-4

binding

portType    

Page 21: Đề thi lý thuyết DWSJ Aptech

message

types

 

34 Which one of the following elements of WSDL defines the message format and protocol details for each port? M4-07

binding

port

message

types

 

35 Which one of the following API calls is used to register or update complete information about a businessService exposed by a specified businessEntity? M4-14

1. <save_service>2. <save_binding>3. <save_business>4. <find_service>

 

36 Which one of the following layers in the Web Service implementation is the only layer always receiving a SOAP request message first? hic

SOAP Processing layer

Processing layer

Interaction layer   

Page 22: Đề thi lý thuyết DWSJ Aptech