GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 145 Topic 15 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 145 Topic 15 Discussion

GSSP-NET-CSHARP Exam Topic 15 Question 145 Discussion:
Question #: 145
Topic #: 15

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?


A.

Regular expressions


B.

Nested If statements


C.

Use the String.Length property


D.

A try/catch block


Get Premium GSSP-NET-CSHARP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.