Microsoft TS: Office SharePoint Server, Application Development (available in 2010) (070-573) Free Practice Test
Question 1
You create a custom Web Part.
You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs.
What should you use?
You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs.
What should you use?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
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.)
01 SPSite site = SPContext.Current.Site;02 SPWeb web = SPContext.Current.Web;03
Which code segment should you add at line 03?
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.)
01 SPSite site = SPContext.Current.Site;02 SPWeb web = SPContext.Current.Web;03
Which code segment should you add at line 03?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
You have a Microsoft Office SharePoint Server 2007 site.
You upgrade the site to SharePoint Server 2010.
You need to create a Feature that prevents site collection administrators from upgrading the user interface
of the site to SharePoint Server 2010.
Which property should you use?
You upgrade the site to SharePoint Server 2010.
You need to create a Feature that prevents site collection administrators from upgrading the user interface
of the site to SharePoint Server 2010.
Which property should you use?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
You need to disable the CriticalExceptionCount measure for all user solutions.
You write the following code segment. (Line numbers are included for reference only.)
01 SPUserCodeService userCode = SPUserCodeService.Local;
02 SPResourceMeasureCollection measures = userCode.ResourceMeasures;
03 SPResourceMeasure measure = measures["CriticalExceptionCount"];
04
05 measure.Update();
Which code segment should you add at line 04?
You write the following code segment. (Line numbers are included for reference only.)
01 SPUserCodeService userCode = SPUserCodeService.Local;
02 SPResourceMeasureCollection measures = userCode.ResourceMeasures;
03 SPResourceMeasure measure = measures["CriticalExceptionCount"];
04
05 measure.Update();
Which code segment should you add at line 04?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
You have a Web page named ShowMessage.aspx.
You create a new Web page.
You need to display the content from ShowMessage.aspx in an IFRAME on the new Web page. You must
achieve this goal by using the minimum amount of effort.
What should you do?
You create a new Web page.
You need to display the content from ShowMessage.aspx in an IFRAME on the new Web page. You must
achieve this goal by using the minimum amount of effort.
What should you do?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
You create a custom site definition.
You need to modify the contents of the Quick Launch area.
Which file should you modify?
You need to modify the contents of the Quick Launch area.
Which file should you modify?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).