Multiple choice technology web technology

Data Annotation Validator attributes include?

  1. Required

  2. Range

  3. StringLength

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Data Annotations provide a declarative way to validate model properties. Required ensures a field isn't empty, Range validates numeric ranges, and StringLength enforces character limits. These are commonly used in MVC models for automatic server and client-side validation.