nerdexam
Microsoft

70-513 · Question #98

70-513 Question #98: Real Exam Question with Answer & Explanation

Sign in or unlock 70-513 to reveal the answer and full explanation for question #98. The question stem and answer options stay visible for context.

Question

You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service. (Line numbers are included for reference only.) 01 BasicHttpBinding myBinding = new BasicHttpBinding(); 02 EndpointAddress myEndpointAddress = new 03 ... 04 ITaxService client = channelFactory.CreateChannel(); 05 string data = client.GetData(1); You need to consume the service. Which code segment should you insert at line 03?

Options

  • Avar channelFactory = new ChannelFactory<ITaxService>();
  • Bvar channelFactory = new ChannelFactory<ITaxService>(myBinding);
  • Cvar channelFactory = new ChannelFactory<ITaxService>(
  • Dvar channelFactory = new ChannelFactory<ITaxService>(

Unlock 70-513 to see the answer

You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-513 Practice