Microsoft
70-573 · Question #195
70-573 Question #195: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #195. The question stem and answer options stay visible for context.
Question
You have a helper method named CreateSiteColumn that contains the following code segment. Private Shared Sub CreateSiteColumn (ByVal web As SPWeb, ByVal columnName As String) web.Lists(0).Views(0).ViewFields.Add(columnName) End Sub 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
- ADim field As SPField = New SPFieldChoice
- Bweb.Fields.Add(columnName, SPFieldType.Choice, True)
- Cweb.Lists(0).Fields.Add
- 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.