WCF Multiple Choice Questions and Answers

TOP 37 WCF Multiple Choice Questions and Answers, WCF Multiple Choice Questions and Answers pdf free download
1. Which of the following is NOT true?
2. WCF services can communicate with _______.
3. The standard method for storing data that can be transferred easily from one machine or platform to another is _______.
4. One of the advantages of using _______ is that data are transmitted in a text format rather than a binary format.
5. Data that is in _______ format can pass through many firewalls that _______ cannot penetrate.
6. _______ is a popular standard that includes a set of rules for handling requests and responses including class names, method names, and parameters.
7. The information about the names of the methods, the parameters that can be passed, and the values that are returned from the functions is controlled in some Web services by a description specified in _______.
8. Always end your URI (or URL) with a ________ to avoid an extra trip to the server to determine that it is a site rather than a directory.
9. A resource on the Web is uniquely identified by its URI, which means _______.
10. To add a WCF Service, select the solution name in the Solution Explorer and select _______ from File menu.
11. You have created a new service based on Windows Communication Foundation and also a client application to test the service. You want add an endpoint in the web.config file of the client application to use the new service. Which values should you include in you service element of the web.config file?
12. A service contract specifies what an endpoint communicates to the outside world. At a more concrete level, it is a statement about a set of specific messages organized into basic message exchange patterns (MEPs), such as request/reply, one-way, and duplex. Which of the following is NOT part of the Service Contract specification:
13. Services are groups of operations. To create a service contract you usually model operations and specify their grouping. In Windows Communication Foundation (WCF) applications, developers define the operations by creating a method and marking it with the which attribute?
14. You’ve created a new class in your .NET project that contains a wide variety of operations grouped together to form part of a Server Contract. You now need to add an attribute to the class to define it as a service contract. Which attribute should you use?
15. Both classes and interfaces represent a grouping of functionality and, therefore, both can be used to define a WCF service contract. However, it is recommended that you use interfaces because they directly model service contracts. Without an implementation, interfaces do no more than define a grouping of methods with certain signatures. Which of the following is a benefit of using interfaces to define Service Contracts?
16. You have created a new class which will be the basis for a Service Contract. You have used ServiceContractAttribute and OperationContractAttribute to decorate the class and the methods. Which of the following is NOT an advantage of using classes instead of interfaces for Service Contracts?
17. Which of the following is TRUE regarding service operations and references to objects?
18. You’ve created a new class and decorated it with the DataContractAttribute so that it forms a Data Contract for WCF. This class contains several attributes that you want to make available as part of the Data Contract. Currently these attributes are declared as private. What do you need to do to ensure these attributes are serializable?
19. A developer has designed a service that contains a method called TakeAction which is decorated with the following attribute:
[OperationContractAttribute(IsOneWay=true)]
Another client application will invoke the TakeAction operation and continue processing after WCF writes the message to the network. What must the developer of the TakeAction method do to ensure the client action can call this method?
20. The signature of a service operation dictates a certain underlying message exchange pattern (MEP) that can support the data transfer and the features an operation requires. You want to adopt a pattern that supports the sending and receiving of messages by both the service and client. Which patter should you choose?
21. Study the following line of code:
OperationContext.Current.GetCallbackChannel();
The ICalendarDuplexCallback interface is defined as the CallbackContract property in the Service Contract. In which class should you use this line of code?
22. A client application interacts with a new Service that calculates interest rates for the banks customers. The Service Contract contains BasicHttpBinding as the binding type in the endpoint configuration. The service contains some methods that return sensitive information such as customers names and addresses. You want to ensure that these methods are encrypted. What should you do?
23. Which of the following is FALSE regarding the WSHttpBinding class?
24. In Windows Communication Foundation (WCF) applications, which of the following is FALSE regarding Sessions?
25. The instancing behaviour (set by using the System.ServiceModel.ServiceBehaviorAttribute.InstanceContextMode property) controls how the InstanceContext is created in response to incoming messages. You have created a new WCF service and set the InstanceContextMode to PerCall. What is the behaviour of the InstanceContext in this mode?
26. When configuring a WCF service using Visual Studio, you can use either a Web.config file or an App.config file to specify the settings. The choice of the configuration file name is determined by the hosting environment you choose for the service. Where does the endpoint configuration element lie in a .NET configuration file?
27. The System.ServiceModel.Channels namespace contains the DeliveryFailure enumeration. DeliveryFailure specifies the possible types of delivery failure for a message read from the queue. Which of the following elements is a valid DeliveryFailure?
28. Which class in WCF represents the unit of communication between endpoints in a distributed environment?
28. Windows Communication Formats (WCF) is Microsoft's technology for communicating between applications on the same computer system, on a network, or across the 
29. It is possible for a single application to be both a client and a service.
30. WCF cannot communicate with other platforms that support SOAP and simple XML.
31. An endpoint indicates where messages can be sent (address).
32. Data that is in binary format can pass through any firewall.
33. WSDL contains information about the names of the methods, the parameters that can be passed, and the values that are returned from the functions.
34. For technical specifications, the industry standard term URL is preferred to URI.
35. The transport protocol used by SOAP is HTTP.
36. To rename a Web Service you need to change only the name in the Solution Explorer.
37. When a new project is added to a WCF Service solution, the projects are saved independently.

0 comments: