nerdexam
GIAC

GSSP-NET · Question #151

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 names…

The correct answer is C. [hc]at. 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 names for the application with three characters that are either "hat" or "cat". Which of the GIAC GSSP-.NET Exam following regular expressions will you use to accomplish the task?

Options

  • A[hc]at$
  • B^[hc]at
  • C[hc]at
  • D.at

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    76% (25)
  • D
    15% (5)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice