Our team has conducted extensive research to compile a set of WCF (Windows Communication Foundation) MCQs. We encourage you to test your WCF (Windows Communication Foundation) knowledge by answering these 40 multiple-choice questions provided below.
Simply scroll down to begin!
A. SOAP
B. WSDL
C. XML
A. 1, 2, 4, 3, 5
B. 1, 2, 5, 4, 3
C. 2, 5, 4, 3, 1
D. 2, 3, 4, 1, 5
A. It is used to restrict the addition of binding elements to an endpoint.
B. It allows the objects to release/free resources before they are reclaimed by garbage collection.
C. It restricts the creation of a shallow copy of the current instance/object.
A. The grouping of operations in a service.
B. The location of the operations.
C. The specific protocols and serialization formats that are used to support successful communication with the service.
D. All of the above.
A. A contract mismatch existing between the client and the service.
B. Client using an incorrect address.
C. The service host not listening for incoming messages.
D. Unavailability of a network
A. System.ServiceModel.Channels
B. System.ServiceModel.ComIntegration
C. System.ServiceModel.Activation
D. System.ServiceModel.Activities
A. Interfaces, Methods
B. Classes, Interfaces
C. Classes, Methods
D. Methods, Interfaces
E. Interfaces, Classes
A. MsmqIntegrationBinding
B. WSFederationHttpBinding
C. NetPeerTcpBinding
D. NetDualMsmqBinding
A. ISecurityContextSecurityTokenCache
B. IIssuanceSecurityTokenAuthenticator
C. RenewedSecuriTyTokenHandler
D. ILogonTokenCacheManager
A. IssuerSerial
B. MatchesKeyIdentifierClause
C. SubjectKeyIdentifier
D. ResolveKeyIdentifierClause
E. RawDataKeyIdentifier
A. Contract
B. Binding
C. Set of behaviors
D. Address
A. XML 1.0
B. MTOM
C. Binary
D. DIME
A. Encoded
B. Literal
C. Decoded
D. Remote
A. Using fault contracts
B. Implementing the IErrorHandler interface
C. Directly handling the exception thrown
D. Handling ServiceHost events
A. ConcurrencyMode
B. ServiceDiscovery Mode
C. InstanceContextMode
D. ClietCredential Mode
A. RoutingBehavior
B. RoutingConfiguration
C. RoutingExtension
D. RoutingService
A. 5
B. 12
C. 20
D. Infinite
A. WCF supports self-hosting.
B. The namespace used for serialization in WCF 4 is "System.RunTime.Serialization".
C. In order to work with WCF it is not compulsory to run IIS.
D. WCF returns unhandled exceptions to the client as Simple Object Access Protocol(SOAP) faults.
A. discoveryEndpoint
B. dynamicEndpoint
C. mexEndpoint
D. udpDiscoveryEndpoint
A. Windows authentication
B. No authentication
C. X509 certificates
A. 1 and 3 only
B. 2 and 3 only
C. 1 and 3 only
D. 1, 2 and 3
A. WCF uses DataContractSerializer Class by default for serialization.
B. DataContractSerializer Class serializes the public members only.
C. DataContractSerializer Class also serializes the members in which there is i-dictionary implementation.
A. They define, for each parameter or return type, what data is serialized to be exchanged.
B. They define which operations the client can perform on the service.
C. They define which errors are raised by the service, and how the service handles and propagates errors to its clients
A. Windows service
B. IIS hosting
C. Windows Activation service
D. Self-hosting
E. All of the above
A. The applications built in Windows Communication Foundation (WCF) 4 can interoperate directly with other applications that are built in ASMX.
B. The applications built in Windows Communication Foundation (WCF) 4 can interoperate directly with non-WCF-based applications.
C. Windows Communication Foundation (WCF) 4 supports SOAP but not REST
A. It is a secure and inter-operable binding that is suitable for non-duplex service contracts.
B. It is a secure and inter-operable binding that is suitable for duplex service contracts or communication through SOAP intermediaries.
C. It is a secure and optimized binding that is suitable for cross-machine communication between WCF applications.
D. It is a queued binding that is suitable for cross-machine communication between WCF applications.
A. mexEndpoint
B. webHttpEndpoint
C. dynamicEndpoint
D. webScriptEndpoint
A. WSHttpBinding
B. NetMsmqBinding
C. NetNamedPipeBinding
D. NetTcpBinding
A. BasicHttpBinding
B. WSHttpBinding
C. NetTcpBinding
D. WSDualHttpBinding
A. $top
B. $filter
C. $select
D. $expand
A. 1 only
B. 2 only
C. Both 1 and 2
A. Yes
B. No
A. True
B. False
A. READ UNCOMMITTED
B. READ COMMITTED
C. SNAPSHOT
D. REPEATABLE READ
E. SERIALIZABLE
A. True
B. False
A. BasicHttpBinding
B. WSHttpBinding
C. WSDualHttpBinding
D. NetNamedPipeBinding
E. NetTcpBinding
F. WSFederationHttpBinding
A. The calling application explicitly initiates and terminates the sessions.
B. A group of messages is correlated into a conversation by the sessions.
C. Processing of the messages delivered during a session is done in the order in which they are received.
D. There is a general data store associated with a WCF session.
A. It is a class through which a service client and the service can interact.
B. It is a method exposed by a service during a call.
C. It is a service that is used to combine WCF and WPF
A. The response will be the first two product entries from the collection of all products after sorting the collection in descending order of Rating.
B. 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.
C. The response will be the second and third product entries from the collection of all products after sorting the collection in descending order of Rating.
A. .asmx
B. .cs
C. .svc
D. .aspx
A. Windows 98
B. Windows Vista
C. Windows 7
D. All of the above
A. 1 and 2 only
B. 2 and 3 only
C. 1 and 3 only
D. All of the three
E. None of the three
A. 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.
B. It is an integer value that indicates the maximum number of retry cycles.
C. It is the time delay between retry cycles
A. .asp file
B. .axd file
C. .svc file
D. .net file