nerdexam
Microsoft

70-513 · Question #273

You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the internal implementation at the service layer. You need to expose the following class as a service…

The correct answer is C. <ServiceContract(Name:="Arithmetic")>. See the full explanation below for the reasoning.

Question

You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the internal implementation at the service layer. You need to expose the following class as a service named Arithmetic with an operation named Sum. Public Class Calculator Public Function Add (ByVal x As Integer, ByVal y As Integer) As Integer End Function End Class Which code segment should you use?

Options

  • A<ServiceContract(Namespace:="Arithmetic")>
  • B<ServiceContract(ConfigurationName:="Arithmetic")>
  • C<ServiceContract(Name:="Arithmetic")>
  • D<ServiceContract(Name:="Arithmetic")>

How the community answered

(56 responses)
  • A
    2% (1)
  • B
    11% (6)
  • C
    84% (47)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice