PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which approach should you recommend?

You are planning a feature upgrade for a SharePoint 2010 farm. The original feature with a
version number of 1.0.0.0 is activated in numerous scopes within the farm. You have
designed a new version of the feature, 2.0.0.0, which has been deployed and activated in
many locations but not all. You need to recommend a way to use the object model to
determine if the version number of each feature instance is less than the 2.0.0.0 version in
all of the locations. Which approach should you recommend?

You need to ensure that the variable is not visible to developers when they are debugging any of the Web appli

You are designing a class library that will be used by all of your company’s ASP.NET Web
applications. A specific variable in a helper class within the library holds very sensitive

information. You need to ensure that the variable is not visible to developers when they are
debugging any of the Web applications. Which two actions should you recommend (Each
correct answer presents part of the solution. Choose two.)

Which code segment should you add at line 03?

You have a SharePoint site collection that contains 100 subsites. You plan to create a Web Part.
The Web Part will be deployed to each subsite. You need to ensure that the Web Part retrieves all
of the files in the root directory of the current subsite. You write the following code segment. (Line
numbers are included for reference only.) 01Dim site As SPSite = SPContext.Current.Site 02Dim
web As SPWeb = SPContext.Current.Web 03 Which code segment should you add at line 03?

Which code segment should you add at line 03?

You are creating an application. You develop a custom control that renders a contextual tab. The
control contains the following code segment. (Line numbers are included for reference only.)
01Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs) 02 Dim curRibbon
As SPRibbon = SPRibbon.GetCurrent(Me.Page) 03 04

curRibbon.MakeContextualGroupInitiallyVisible (“SP.Ribbon.ContextualGroup”, String.Empty) 05
MyBase.OnPreRender(e) 06 End Sub You need to ensure that when the custom control is
rendered, the custom contextual tab appears in the Ribbon. Which code segment should you add
at line 03?