WCF MCQ – Windows Communication Foundation

WCF MCQ – Windows Communication Foundation




WCF MCQ contain set of 10 WCF MCQ questions with answers which will help you to clear beginner level quiz.



 
1. 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.
a.       Hyphen
b.       Backslash
c.        Double slash
 d.        Slash
 

 2. Which is the default Transfer mode in WCF?

a.      Streamed
b.      Buffered
c.       StreamedRequest
d.      StreamedResponse
 
3. Which of the following binding supports Communication with callback?

a.      wsHttpBinding
b.      wsDualHttpBinding
c.       Both a and b
d.      None

 
4. Which namespace is used in WCF for data serialization?

a.      System.Xml.Serialization
b.      System.Runtime.Serialization
c.       System.ServiceModel
d.      None

 
5. Which of the following WCF binding does not support reliable session?

a.      wsHttpBinding
b.      netTcpBinding
c.       basicHttpBinding
d.      wsDualHttpBinding

 
6. WCF attribute used to serialize Data Contract member variables?

a.      Serialize
b.      DataMember
c.       Data
d.      None

 
7. WCF Contract used to send information in soap message header?

a.      DataContract
b.      ServiceContract
c.       MessageContract
d.      None

 
8. WCF supports Operation overloading by setting following operation contract attribute?

a.      Action
b.      Name
c.       Overload
d.      None of the above

 
9. WCF attribute to define REST full Service?

a.      HttpGet
b.      WebGet
c.       Rest
d.      None of the above

 
10. Which contract supports Transaction Flow?

a.      Service
b.      Operation
c.       Message
d.      Data