Microsoft TS: Office SharePoint Server, Application Development (available in 2010) - 70-573 FREE EXAM DUMPS QUESTIONS & ANSWERS

You have the following event receiver. (Line numbers are included for reference only.)
01 public override void FieldDeleting(SPListEventProperties properties)02 {
03 04
base.FieldDeleting(properties);
05 06 07
if (properties.FieldName == "Status"){
08
09
}
10 }
You need to cancel the operation and redirect the user to a custom error page if the name of the deleted field is Status.
Which code segments should you add at lines 07 and 08?
Correct Answer: C Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You need to create a Web Part that displays all of the content created by a specific user. You write the following code segment. (Line numbers are included for reference only.)
01 private void keywordQueryExecute(string searchAuthor)
02 {
03 KeywordQuery kRequest = new KeywordQuery(ServerContext.Current);
04
05 kRequest.QueryText = strQuery;
06 ResultTableCollection resultTbls = kRequest.Execute();
07 }
Which code segment should you add at line 04?
Correct Answer: C Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You use a third-party 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?
Correct Answer: D Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You create a Web Part named WP1.
You need to ensure that the name of the Web Part displays as Corporate in SharePoint.
What should you do?
Correct Answer: B Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You create a custom Web Part.
You need to verify whether the Web Part causes any memory leaks.
Which tool should you use?
Correct Answer: D Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You are creating two Web Parts named WPMaster and WPDetails.
You need to ensure that when an item is selected from WPMaster, the details of the item are displayed in
WPDetails.
What should you implement in WPMaster?
Correct Answer: A Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You create a client application that remotely calls the Business Connectivity Services (BCS) object model.
You need to create the context that will be used to request a cache refresh.
Which code segment should you use?
Correct Answer: C Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You have a document library named Documents. Minor and major version management is enabled for the document library.
You plan to add a document named MyFile.docx to Documents.
You create a console application that contains the following code segment. (Line numbers are included for reference only.)
01 using (SPSite site = new SPSite("http://intranet"))
02 {
03 SPList documents = site.RootWeb.Lists["Documents"];
04 FileStream fstream = File.OpenRead(@"MyFile.docx");
05 byte[] content = new byte[fstream.Length];
06 fstream.Read(content, 0, (int)fstream.Length);
07 fstream.Close();
08 site.RootWeb.Files.Add(documents.RootFolder.Url + "/MyFile.docx", content,
true);
09 SPFile file = site.RootWeb.GetFile(documents.RootFolder.Url + "/
MyFile.docx");
10 file.CheckIn(string.Empty);
11
12 }
You need to ensure that all users can see the document.
Which code segment should you add at line 11?
Correct Answer: A Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
0
0
0
10