exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 77 discussion

Actual exam question from Microsoft's 70-483
Question #: 77
Topic #: 1
[All 70-483 Questions]

You are developing a C# application that includes a class named Product. The following code segment defines the Product class:

You implement System.ComponentModel.DataAnnotations.IValidateableObject interface to provide a way to validate the Product object.
The Product object has the following requirements:
✑ The Id property must have a value greater than zero.
✑ The Name property must have a value other than empty or null.
You need to validate the Product object. Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ptarasov
Highly Voted 5 years, 5 months ago
It is IValidatableObject instead of IValidateableObject. https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.ivalidatableobject
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...