nerdexam
Microsoft

70-511 · Question #51

70-511 Question #51: Real Exam Question with Answer & Explanation

The correct answer is A. [UserScopedSettingO ]. See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Forms application. You write the following code segment. (Line numbers are included for reference only.) 01 sealed class FormSettings : ApplicationSettingsBase 02 { 04 public String Description 05 { 06 get {return (String)this["Description"]; } 07 set {this["Description"] = value;} 08 } 09 } You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting." Which code segment should you insert at line 03?

Exhibit

70-511 question #51 exhibit

Options

  • A[UserScopedSettingO ]
  • B[UserScopedSetting() ]
  • C[ApplicationScopedSetting() ]
  • D[ApplicationScopedSetting() ]

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice