nerdexam
GIAC

GSSP-NET · Question #266

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application for the company. You need to validate the…

The correct answer is D. Regular expressions. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application for the company. You need to validate the phone number passed to a class as a parameter in the application. Which of the following is the most effective way to verify that the format of the data matches a phone number?

Options

  • AA try/catch block
  • BUse the String.Length property
  • CNested If statements
  • DRegular expressions

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    4% (1)
  • D
    80% (20)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice