1. Which type of file must be provided while hosting a Windows Communication Foundation (WCF) service under the Internet Information Services (IIS) or the Windows Process Activation Service (WAS)?
Answer
Correct Answer:
.svc file
Note: This Question is unanswered, help us to find answer for this one
2. In WCF, what is the significance of the ReceiveRetryCount property of a Poison message in the .Net Framework 4.0?
Answer
Correct Answer:
It is an integer value that indicates the maximum number of times to retry delivery of a message from the application queue to the application.
Note: This Question is unanswered, help us to find answer for this one
3. Which of the following is/are the address format(s) in WCF (Windows Communication Foundation) 4.0? 1. http://localhost: 2. net.msmq://localhost: 3. net.tcp://localhost:
Answer
Correct Answer:
All of the three
Note: This Question is unanswered, help us to find answer for this one
4. Which of the following operating systems supports the Message Queuing functionality of WCF?
Answer
Correct Answer:
Windows Vista
Note: This Question is unanswered, help us to find answer for this one
5. Extension of a WCF 4 service is _______.
Answer
Correct Answer:
.svc
Note: This Question is unanswered, help us to find answer for this one
6. Suppose your WCF service root URL is "http://examples.svc". What will be the response when you request a WCF data service URL with a $skip system query option, as shown below, in the .Net Framework 4.0? http://examples.svc/Products?$skip=2&$top=2&$orderby=Rating
Answer
Correct Answer:
The response will be the third and fourth product entries from the collection of all products after sorting the collection in ascending order of Rating.
Note: This Question is unanswered, help us to find answer for this one
7. What is meant by a proxy for WCF service?
Answer
Correct Answer:
It is a class through which a service client and the service can interact.
Note: This Question is unanswered, help us to find answer for this one
8. Which of the following statements is false about WCF sessions?
Answer
Correct Answer:
There is a general data store associated with a WCF session.
Note: This Question is unanswered, help us to find answer for this one
9. State True/False. The WCF service can send and receive a message only through the Simple Object Access Protocol (SOAP).
Answer
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
10. Which of the following options is not an isolation level provided in WCF 4?
Answer
Correct Answer:
SNAPSHOT
Note: This Question is unanswered, help us to find answer for this one
11. State True/False. In WCF 4, the DataContractSerializer translates the hash table into XML format.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
12. State True/False. Can you host a Windows Communication Foundation 4 service on two different protocols on a single server?
Answer
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
13. In WCF 4, which of the following file(s) is/are used to define contract(s)? 1. IService.cs 2. Service.cs
Answer
Correct Answer:
1 only
Note: This Question is unanswered, help us to find answer for this one
14. Which of the following OData system query options is used to determine the maximum number of records to be returned in the .Net Framework 4.0?
Answer
Correct Answer:
$top
Note: This Question is unanswered, help us to find answer for this one
15. Which of the following is the default binding used in WCF 4?
Answer
Correct Answer:
WSHttpBinding
Note: This Question is unanswered, help us to find answer for this one
16. Which of the following bindings in WCF 4 is used to connect to other WCF endpoints on the same machine/computer?
Answer
Correct Answer:
NetNamedPipeBinding
Note: This Question is unanswered, help us to find answer for this one
17. From the following options, select the correct endpoint that is used to expose Ajax services?
Answer
Correct Answer:
webScriptEndpoint
Note: This Question is unanswered, help us to find answer for this one
18. Which of the following statements is correct about the WSHttpBinding of WCF in the .Net framework 4.0?
Answer
Correct Answer:
It is a secure and inter-operable binding that is suitable for non-duplex service contracts.
Note: This Question is unanswered, help us to find answer for this one
19. Which of the following is an incorrect statement regarding Windows Communication Foundation (WCF) 4.
Answer
Correct Answer:
Windows Communication Foundation (WCF) 4 supports SOAP but not REST
Note: This Question is unanswered, help us to find answer for this one
20. Which of the following is/are the way(s) of hosting the WCF service?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
21. What is the function of the WCF Data contracts in the .Net Framework 4.0?
Answer
Correct Answer:
They define, for each parameter or return type, what data is serialized to be exchanged.
Note: This Question is unanswered, help us to find answer for this one
22. Which of the following about WCF is false?
Answer
Correct Answer:
DataContractSerializer Class serializes the public members only.
Note: This Question is unanswered, help us to find answer for this one
23. Each WCF endpoint contains: 1.address 2.binding 3.contract
Answer
Correct Answer:
1, 2 and 3
Note: This Question is unanswered, help us to find answer for this one
24. In which type of authentication does the service host check and validate the caller certificate information for service authentication that was sent by the client to the service communication?
Answer
Correct Answer:
X509 certificates
Note: This Question is unanswered, help us to find answer for this one
25. Which of the following endpoints in Windows Communication Foundation 4 describes a standard endpoint that is configured to use Windows Communication Foundation discovery in the application of a Windows Communication Foundation client?
Answer
Correct Answer:
dynamicEndpoint
Note: This Question is unanswered, help us to find answer for this one
26. Which of the following is false about WCF?
Answer
Correct Answer:
WCF returns unhandled exceptions to the client as Simple Object Access Protocol(SOAP) faults.
Note: This Question is unanswered, help us to find answer for this one
27. How many columns can you select by the $orderby OData system query option in the .Net Framework 4.0?
Answer
Correct Answer:
12
Note: This Question is unanswered, help us to find answer for this one
28. A generic Windows Communication Foundation (WCF) routing implementation that can be used within your applications is provided by the _________ Class in WCF 4.
Answer
Correct Answer:
RoutingService
Note: This Question is unanswered, help us to find answer for this one
29. The internal threading model that provides support for multi-threaded services is controlled by ____?
Answer
Correct Answer:
ConcurrencyMode
Note: This Question is unanswered, help us to find answer for this one
30. Which of the following error handling methods is not used by WCF to handle application errors?
Answer
Correct Answer:
Directly handling the exception thrown
Note: This Question is unanswered, help us to find answer for this one
31. Which of the following forms of serialized XML is supported by the DataContractSerializer?
Answer
Correct Answer:
Literal
Note: This Question is unanswered, help us to find answer for this one
32. Which of the following encoding mechanisms is not used by WCF 4?
Answer
Correct Answer:
DIME
Note: This Question is unanswered, help us to find answer for this one
33. Which of the following properties of the endpoints of the WCF service helps to identify the operations available?
Answer
Correct Answer:
Contract
Note: This Question is unanswered, help us to find answer for this one
34. From the following options, select the interface that is used to clear the Windows token cache on demand.
Answer
Correct Answer:
ILogonTokenCacheManager
Note: This Question is unanswered, help us to find answer for this one
35. Which of the following pre-defined bindings is incorrect with regards WCF 4?
Answer
Correct Answer:
NetDualMsmqBinding
Note: This Question is unanswered, help us to find answer for this one
36. In WCF 4, the service contracts are like ________ and the operation contracts are like __________.
Answer
Correct Answer:
Interfaces, Methods
Note: This Question is unanswered, help us to find answer for this one
37. Which of the following namespaces contains classes through which we can send and receive messages from workflows?
Answer
Correct Answer:
System.ServiceModel.Activities
Note: This Question is unanswered, help us to find answer for this one
38. Which of the following situations can cause a proxy/channel error?
Answer
Correct Answer:
A contract mismatch existing between the client and the service.
Note: This Question is unanswered, help us to find answer for this one
39. Which of the following pieces of information is provided by the WCF service contract in the .Net Framework 4.0?
Answer
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
40. What is the use of the "Finalize" method of "SoapProcessingBehavior" class in WCF 4?
Answer
Correct Answer:
It allows the objects to release/free resources before they are reclaimed by garbage collection.
Note: This Question is unanswered, help us to find answer for this one
41. Following are the disarranged steps for the programming life cycle of Windows Communication Foundation (WCF). 1. Build the client application. 2. Define the Service Contract. 3. Host the service in an application. 4. Configure the Service by specifying endpoint information and other behavior information. 5. Implement the Service Contract. Which of the given answer options is the correct arrangement of the steps?
Answer
Correct Answer:
2, 5, 4, 3, 1
Note: This Question is unanswered, help us to find answer for this one
42. For which of the following options it is an advantage that data is transmitted in a text format rather than a binary format?
Answer
Correct Answer:
XML
Note: This Question is unanswered, help us to find answer for this one
WCF (Windows Communication Foundation) MCQs | Topic-wise