nerdexam
Microsoft

70-573 · Question #189

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

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

Question

You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following code segment. (Line numbers are included for reference only.) 01 Protected Overloads Overrides Sub CreateChildControls() 02 MyBase.CreateChildControls() 03 SPSecurity.RunWithElevatedPrivileges(ElevatedCode) 04 05 End Sub 06 Private Sub ElevatedCode() 07 Dim ListCount As New Label() 08 ListCount.Text = [String].Format ("There are {0} Lists", SPContext.Current.Web.Lists.Count) 09 Controls.Add(ListCount) 10 End Sub You need to identify which line of code prevents the Web Part from being deployed as a sandboxed solution. Which line of code should you identify?

Options

  • A02
  • B03
  • C08
  • D09

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