nerdexam
Microsoft

70-573 · Question #103

70-573 Question #103: Real Exam Question with Answer & Explanation

Sign in or unlock 70-573 to reveal the answer and full explanation for question #103. The question stem and answer options stay visible for context.

Question

You have a helper method named CreateSiteColumn that contains the following code segment. static void CreateSiteColumn ( SPWeb web, string columnName ) { } You need to add a new site column of type Choice to a SharePoint site by using the helper method. Which code segment should you include in the helper method?

Options

  • ASPField field = new SPFieldChoice(System.web.Lists[0].Fields,
  • Bweb.Fields.Add(columnName, SPFieldType.Choice, true);
  • Cweb.Lists[0].Fields.Add(columnName, SPFieldType.Choice, True);
  • Dweb.Lists[0].Views[0].ViewFields.Add(columnName);

Unlock 70-573 to see the answer

You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-573 Practice