Posted by: Pdfprep
Post Date: February 27, 2021
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
Answer: A
Leave a Reply