Microsoft
70-573 · Question #223
You have a list named Projects that contains a column named ClassificationMetadata. You need to create a Web Part that updates the ClassificationMetadata value to NA for each item in the Projects…
The correct answer is A. currentItem("ClassificationMetadata") = "NA". See the full explanation below for the reasoning.
Question
You have a list named Projects that contains a column named ClassificationMetadata. You need to create a Web Part that updates the ClassificationMetadata value to NA for each item in the Projects list. You write the following code segment. (Line numbers are included for reference only.) 01For Each currentItem As SPListItem In SPContext.Current.Web.Lists("Projects").Items 02 03Next Which code segment should you add at line 02?
Options
- AcurrentItem("ClassificationMetadata") = "NA"
- BcurrentItem.Fields("ClassificationMetadata").DefaultFormula = "NA"
- CcurrentItem.Fields("ClassificationMetadata").DefaultValue = "NA"
- DcurrentItem("Value") = "ClassificationMetadata/NA"
How the community answered
(16 responses)- A81% (13)
- C13% (2)
- D6% (1)
Community Discussion
No community discussion yet for this question.