nerdexam
GIAC

GSSP-NET · Question #324

GIAC GSSP-.NET Exam You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows application using…

The correct answer is C. Use a MaskedTextBox control and create a mask to validate the format. See the full explanation below for the reasoning.

Question

GIAC GSSP-.NET Exam You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows application using .NET Framework 3.5. The application captures account information. The account number has the following specifications:

  • It holds literal and input characters of the alphanumeric type.
  • It has a predefined format.

You must ensure that the account number is in the correct format. You must also ensure that only input characters are accepted from users. What will you do?

Options

  • AUse a RichTextBox control and create a regular expression to validate the format.
  • BUse a TextBox control and bind it to a string that has the required format.
  • CUse a MaskedTextBox control and create a mask to validate the format.
  • DUse a TextBox control and create a regular expression to validate the format.

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    7% (2)
  • C
    75% (21)
  • D
    14% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice