nerdexam
GIAC

GSSP-NET · Question #422

Allen works as a Software Developer for Mansoft Inc. He develops a Web application using Visual Studio .NET. He adds a Web reference to an XML Web service named MyWebService in the application…

The correct answer is A. System.Web.Services.Protocols.SoapException. See the full explanation below for the reasoning.

Question

Allen works as a Software Developer for Mansoft Inc. He develops a Web application using Visual Studio .NET. He adds a Web reference to an XML Web service named MyWebService in the application. MyWebService includes a method named MyMethod, which takes user identification number as a parameter and returns a DataSet object containing user information. The System.ArgumentException is thrown if the user identification number does not lie between 1 and 500. Allen writes a try and catch block to capture the exception thrown by the Web service. Which of the following exceptions will the try and catch block catch if a user calls MyMethod passing 501 as a parameter?

Options

  • ASystem.Web.Services.Protocols.SoapException
  • BSystem.Web.Services.Protocols.SoapHeaderException
  • CSystem.ApplicationException
  • DSystem.ArgumentNullException

How the community answered

(33 responses)
  • A
    73% (24)
  • B
    18% (6)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice