You need to ensure that the clickButton button appears
You create a Web Part that contains the following code segment. (Line numbers are included for
reference only.) 01 public class HebPart1: WebPart 02 { 03 public VebPart1() {} 04 05 protected
override void CreateChildControlst) 06 { 07 Button clickButton = new Button(); 08 09
base.CreateChildControls(); 10 ] 11 12 protected override void BenderContents(HtrolTextWriter
writer) 13 { 14 15 base.RenderContents(writer); 16 } 17 } You discover that the clickButton button
does not appear. You need to ensure that the clickButton button appears. What should you do?
Which URL should you use?
You create a custom list named Products. You need to perform a Representational State Transfer
(REST) query that returns products 30 to 39. Which URL should you use?
Which line of code should you identify?
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 override void
CreateChildControls () 02 { 03 base.CreateChildControls (); 04
SPSecurity.FunWithElevatedPrivileges ( 05 delegate 06 { 07 Label ListCount = new Label (); 08
ListCount.Text = String.Format (“There are {0> Lists”, SPContext.Current.Heb.Lists.Count ); 09
Controls.Add ( ListCount ) ; 10 }} 11 } 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?
Which element should you configure in the Feature definition file?
You have a Feature that contains an image named ImageVl.png. You plan to create a new
version of the Feature. You need to ensure that when the Feature is upgraded, the image is
renamed as ImageV2.png. You must achieve this goal by using the minimum amount of
development effort. Which element should you configure in the Feature definition file?
Which file should you modify?
You use a custom site definition to create SharePoint sites. You need to add a Web Part to the
home page of the site definition. Which file should you modify?
You need to ensure that Feature1 is always activated before Feature2
You create a SharePoint solution that contains two Features named Feature1 and Feature2. You
need to ensure that Feature1 is always activated before Feature2. You must achieve this goal by
using the minimum amount of development effort. What should you do?
You need to add an image to the Web Part
You create a Visual Web Part. You need to add an image to the Web Part. The image must be
deployed to the 14\TEMPLATE\IMAGES folder. What should you do in Microsoft Visual Studio?
Which class should you use in FeatureReceiver1?
You have a Web application named WebApp1. You have a Feature receiver named
FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of
WebApp1. You need to ensure that when FeatureReceiver1 makes configuration changes to
web.config, the changes are automatically replicated to all Web servers in the farm. Which class
should you use in FeatureReceiver1?
Which code segment should you add at line 04?
You need to disable the CriticalExceptionCount measure for all sandboxed solutions. You write
the following code segment. (Line numbers are included for reference only.) 01
SPUserCodeService userCode = SPUserCodeSecvi.ee. Local; 02 SPResourceHeasureCollection
measures = userCode.ResourceHeasures ; 03 SPResourceHeasure measure = measures [“
CriticalExc eptionCounc “] ; 04 05 measure.Update (); Which code segment should you add at line
04?
You need to add a new field to a provisioned content type
You need to add a new field to a provisioned content type. You must propagate the field to child
lists and child content types. What should you use?