Webservice
1. Which of the following Web Service generic architecture layer interacts, accepts, requests from and parses client applications ?(choose one) (knowledge of session 1 page 26/51 of CD)
- Data access Layer
- Web Service façade Layer
- 3. Listener Layer
- Web Service Logic Layer
2. Which of the following is design technique wherein the modules of an application communicate with each other without being concerned with each other’s internal implementation ?(choose one)(knowledge of session 2, page 4/51 of CD)
- 1. Loose couping
- Light couping
- Loose conesion
- Light conesion
3. Which one of the following statements of WSDL defines the message format and protocol details for each port ?(knowledge of session 3,page 12/32 of CD)
- 1. Binding
- Port
- MessageUser
- Types
4. Which of the following Web Service implementation layers always recieves SOAP requests message first ?
- SOAP processing Layer
- Processing Layer
- Interaction Layer
- Binding Layer
5. Which data structure of the UDDI represents a relationship between two business entities or service providers ?(knowledge of session 5, page 19/29 of CD)
- businessEntity
- businessService
- 3. publisherAssertion
- businessProtocol
6. The ……… option of the wsdl.exe tool specifies the programming language used the generating the proxy class (knowledge of session 7, page 08/31 of CD)
- url
- 2. language
- protocol
- out
7. Which of the following are the ways in which an SDI can be obtained from the service provider by a client ? (chooes more)
- Direct
- Indirect
- HTTP Get request
- Dynamic Discovery
- Static Discovery
8. Following is a series of steps to consume a Web Service which of the following indicates the correct sequence of the steps to achieve it ?(lnowledge of session 7, page 04/31 of CD)
- Include the namespace of the proxy to the client code
- Locate the XML Web Service
- Access the XML Web Service using the proxy object
- Create an instance of the proxy class in the client code
- Create a proxy class by adding a Web Reference to the application
2-1-5-4-3
9. Which of the following are the ways of broadcasting errors thrown by Web Services to the client?(knowledge of session 8, page 26/37 of CD)
- Throw a SoapException exception
- Throw a SoapHeaderException exception
- Throw an exception specific to the problem
- Allow ASP.NET to throw the exception
1-2-3-4
10. The … configuration option of the <WebServices> element determines whether exceptions should be returned to the client for debugging. (knowledge of session 06,page 16/24 of CD)
- 1. Diagnostics
- Configuration
- Protocols
- soapExtensionTypes
11. Following is a series of steps to debug a Web Service which of the following indicates the correct sequence of the steps to achieve it ?(knowledge of session 9, page 22/35 of CD)
- Open the deployed Web Service’s .asmx file in Microsoft Visual Studio 2005
- Open the code-behind file of the Web Service
- Set breakpoint(s) in the code by clicking on the left margin next to the line number…
- Test the Web Service The debugger halfs the execution at the breakpoint
- Use the appropriate Debug Windows for debugging.
1-2-3-4-5
12. Following is a series of steps to exchange data using Remote Proceduce Call (RPC) Which of the following indicates the correct sequence of the step to achieve it ?(Knowledge of session 1,page 14/51 of CD)
- Unmarshall the data by the server stub and invoke the actual method
- Marshall the data by the client stub and transmit over the network
- Connect to a RPC server and send the arguments for invoking remote methods
- Marshall the return values by the server stub and transmit over the network to the …
- Unmarshall the return values by the client stub
3-2-1-4-5
13. Following is a series of tasks involved in the life cycle of Web Service . Which of the following indicates the correct sequence of the steps to achieve it ?(knowledge of session 1, page 27/51 of CD)
- Call the Web Service
- Register the Web Service on some central network node
- Locate the Web Service on the Web
- Define the service interface and Web Service methods
- Design a Web Service
5-4-2-3-1
14. Which of the following are the advantages of a Web Service ?(Knowledge of session 01,page 35/51 of CD)
- Allows cross business intergration and legacy applications
- Keep track of the activities
- Reduces cost for deploying Web Service
- Reduces complexity by providing encapsulation
- Provides increased efficiency, scalability, and maintainability
1-4-5
15. The XML-base registry that allows remote clients to access and search the Web Service is …………
- 1. UDDI
- Windows registry
- UDI
- deXML
16. Which one of the following describes information about the Web Service in XML format ?(knowledge of session 3,page 1/32 of CD)
- SOAP
- UDDI
- JAX-RPC
- 4. WSDL
17. Which one of the following elements of WSDL describes the various operations as methods provided by a Web Service ?(knowledge of session 03,page 12/32 of CD)
- binding
- 2. portType
- Message
- types
18. Which one of the following lightweight protocols enables programs to interface irrespective of the undertying operating systems and firewalls involved ?(knowledge of session 04,page 13/40 of CD)
- CORBA
- 2. SOAP
- RMI
- DCOM
19. What is the purpose of UDDI bindingTamplate ?
- It represents the binding of a Web Service with its URL and its Moders
- 2. It contains the information for invoking a registerred business API
- It contains information about the service running behind a firewall
- It processes the runtime bindingTamplate information to retrieve the logic token.
20. The feature of dividing and delegating the computing tasks to different interconnected machines on the network is termed as ………
- 1. Distributing
- Decentralization
- Decomposition
- Degradation
WEB SERVICE
Q1/ ___________ is a set of modular services by a single or group of companies to collectively define a business process.?
a/ web service
b/ modular service
c/ business serivece
d/ web site
e/ web applicastion
Q2/ In _____the encoding of the input and output messages for the web service is defined
a/ bindings
b/ output
c/ operations
d/ message
Q3/ ________ is alight-weight protocoal which is standard messageing format over the web service communication.
a/ HTTP
b/ UDP
c/ SOAP
d/ messaging protocol
Q4/ What is the function of a HTTP GET operation.?
a/ The page is called and the string and value of simple parameters are passed.
b/ An operation to call the web service.
c/ The parameters are passed in the standar url encoded form variables.
Q5/ Which of the following are the advanteages of web service es?
1/ Straight business interation
2/ Improved evfficiency
3/ Facilitates just-in-time integration
4/ Slow buiness decisions
a/ 1 – 2 – 3 – 4 b/ 2 – 3 – 4 c/ 1 – 2 – 3 d/ 1 and 4 e/ 2 and 3
Q6/ Every wsdl file has a root element.______ elemente has the default namespaces declaration for the wsdl document .other parts of the wsdl document also appear within it.
a/ declarion. b/ default c/ namespaces d/ definitions
Q7/ _______file acts as a contract between a web service consumer and a web service it also defines an xml grammar used for describing a web service.
a/ service description language
b/ web service description language
c/ network accessible service specification Language
Q8/ What is the function of a http get operation.?
a/ The page is called and the string and value of simple parameters are passed
b/ An operation to call the web service
c/ The parameters are passed in the standard url encoded form variables
Q9/ Is a technique that calls remote methods and procedures and is suitable for applications that are lossely coupled.?
a/ Remote procedure calls
b/ Messaging
c/ Method procedure calls
d/ Coupled procedure calls
Q10/ Apart from advantages the web services technology has som disadvantuges too which of the following are its disadvantages.?
1/ Any web user can use the services thus exposed causing substantial network secutiry risks
2/ Xml support is necessary
3/ The cost of deploying the web service hight
4/ Time-consuming
5/ A standalone application
a/ Only 1 and 4 b/ Only 3 and 4 c/ 3 – 4 – 5 d/ 1 – 2 – 3
Q11/ ___atrtribute declares a namespace to which all names declared in a element will belong.?
a/ xml version
b/ xmlns
c/ definitions
d/ targetnamespaces
Q12/ What is the function of message component in a WSDL file.?
1/ defines datea types used by the service’s messages
2/ specifies an input parameter to the operaration using a previously defined message
3/ optionlally specifies an error message returned from the operation
4/ specifies the return values from the operations using a previously defined message
5/ defines the datea transferred by a web service operation, typically the name and data type of input parameter and retrun values
a/ 3 b/ 2 c/ 4 d/ 1 e/ 6 f/ 5
Q13/ What happens when a soap operation requires an input parameter and this parameter is not included in the soap request.?
1/ No value is passed to the called stored procedure
2/ The parameter is passed tho the stored procedure with an empty strin g as its values
3/ the data is exchanged between ht client application and the web service
4/ all the data is the passed to the called stored procedure
a/ Only 3 b/ 1 and 2 c/ 2 d/ 1 – 2 – 3 – 4 e/ 1
Q14/ When a web service is consumed, a copy of the wsdl file residing on the web server is copied onto the client . This WSDL file is known as_______
a/ WSDL file proxy
b/ web service procxy
c/ web service copy
d/ WSDL file copy
e/ proxy
Q15/ ______dectdects errors or lost data and resumes transmission until the data is correctly and completely received.
a/ UDP
b/ HTTP
c/ TCP
d/ ICMP
Q16/ After checking the coherency of the xml document, the xml parser sends the soap
message using HTTP. This is known as_____
a/ SOAP response
b/ SOAP request
c/ coherent request
d/ SOAP document
Q17/ ________is a kind of error which arises whenb the message was incorrectyle formed or contained incorrect information.
a/ versionMismatch
b/ MustUnderstand
c/ Client
d/ Server
e/ formMismatch
Q18/ The open specification developed to integrate electronic commerce sites is known as______
a/ UDDI
b/ UDDI service registry
c/ UDDI sites registry
d/ UDDI business registry
Q19/ What is the function of keyedReference.?
1/ Gives a reference to the first businessEntytity for which the first publisher arssertion is made
2/ Gives a reference eference to the first businessEntyyity for which the second publisher arssertion is made.
3/ identifies the relationship type for which the assertion is made.
4/ Creates a key.
a/ 2 b/ 1 c/ 3 d/ 4
Q20/ ________is a set of modular services by a single or group companies to collectively define a business process.
a/ web service
b/ modular service
c/ business service
d/ web site
e/ web application
Q21/ What is the function of a HTTP GET opearaion.?
a/ The page is called and the striung and value of simple parameters are passed
b/ An operation to call the web servie
c/ The parameters are passed in the standard URL l encoded form variables
Q22/ Which of the following are the advantages of web services.?
1/ straight business integration
2/ improved efficienty
3/ facilitates just-in-time integration
4/ slow business decisions
a/ 1 – 2 – 3 – 4 b/ 2 – 3 – 4 c/ 1 – 2 – 3 d/ 1 – 4 e/ 2 – 3
Q23/ ______specifies the functionlality of a service and also exposes the parameters required by the methods of the service.
a/ service description language
b/ describe service language
c/ service funtiionlity language
d/ interface description language
Q24/ An interface is designed for every createaion of a web service. Which of the following will best explain the need for an interface
1/ placement of the web service
2/ single point contact
3/ evffective communication between the web services
4/ overcome secutity issues
a/ 4 b/ 3 c/ 1 d/ 2
Q25/ The _______ element in w3c WSDL specification sends a message but will not wait for a response.
a/ solicit – response
b/ notification
c/ one -way
d/ request – response
Answer: b
Q26/ SOAP is a lightweight protocol, which allows components and applications to communicate with each other. Which of the following is the disadvantage of soap1.1.?
1/ SAME processing agents function as different actors
2/ cannot distinguish between an xml document and a soap message
3/ shows the addresses for each of the access methods
4/ specifies the representation of parameters of a web method
a/ 1 and 2 b/ 3 and 4 c/ Only 4 d/ Only 3 c/ Only 1
Answer: a
Q27/ After checking the coherency of the xml document, the xml parser sends theo SOAP message using HTTP . this is known as________.
a/ SOAP response
b/ SOAP request
c/ coherent request
d/ SOAP document
Answer: b
Q28/ _____element holds application-specific error information related to the body element.
a/ detail
b/ faultcode
c/ faultstring
d/ faultactor
Answer: a
Q29/ There are many fields in a tModel._____can be used to record identification numbers for tModels.
a/ identifierList
b/ identifierBag
c/ identifierContainer
d/ categoryBag
Answer: b
Q30/ Which of the following are the requirements needed for creating a web service.?
1/ data representation in a standard format
2/ common extensible message format
3/ common, extensible , service description language
4/ list of service providers and the services offered by them
5/ number of companies having access rights
6/ Number of month that the application will be available
a/ 1 – 2 – 3 – 4 – 5 – 6
b/ 1 – 6
c/ 5 – 6
d/ 3 – 4
e/ 2 – 3 – 4 – 5
Answer: unknown-the answer is conflict with the theory in the book.
Reference: page 8
Q31/ Apart from advantages the web services technology has some disadvantages too.
Which of the following are its disadvantages.?
1/ any web user can use the services thus exposed, causing substantial network security risks
2/ xml support is necessary
3/ the cost of deploying the web service high
4/ time consuming
5/ standalone applications
a/ 1 – 4 b/ 3 – 4 c/ 3 – 4 – 5 d/ 1 – 2 – 3
Answer: d
Q32/ Which of the following components of a wsdl file are abstract definition?
1/ bindings
2/ services
3/ types
4/ messages
5/ portTypes
6/ sOutput
a/1 – 2 – 3 – 4 b/ 4 – 5 – 6 c/ 1 – 2 d/ 2 – 3 – 6 e/ 3 – 4 – 5
Answer: e
Q33/ _____is a kind of error which arises when the message was incorrectly formed or contained incorrect information.
a/ versiconMismatch
b/ MustUnderstand
c/ client
d/ server
e/ FormMismatch
Answer: c
Q34/ What is the pupose of registering the web service on the internet.?
1/ Logging het users of the web service
2/ To identify and share the services
3/ To trach theu user of the web service
4/ To track the operations of the web service
a/ 1
b/ 2
c/ 3
Answer: b



