Microsoft
MB-500 · Question #242
MB-500 Question #242: Real Exam Question with Answer & Explanation
The correct answer is B. No. See the full explanation below for the reasoning.
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You must create a new attribute class in which to mark other classes in the ISV solution and their respective methods with the error levels Warning and Error. You have the following class: (Line numbers are included for reference only.) You need to ensure that the compiler will report an error if code calls the bike method. Solution: Create the following attribute class: Insert the following code at line 01: [ISVObsoleteAttribute(ErrorWarning::Warning, "This class will be deprecated in future releases, please use the Transportation class instead.")] Insert the following code at line 04: [ISVObsoleteAttribute(ErrorWarning::Error, "Deprecated. Please use the bicycle class instead.")] Does the solution meet the goal?
Options
- AYes
- BNo
Community Discussion
No community discussion yet for this question.