Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
70-541 Microsoft Windows SharePoint Services 3.0 - Application Development Sample Test

70-541 Microsoft Windows SharePoint Services 3.0 - Application Development Sample Test

Ratings: (0)|Views: 472 |Likes:
Published by Kamran Ayyub
Microsoft 70-541 exam is also known as TS: Microsoft Windows SharePoint Services 3.0 - Application Development. Exam Sheets is the industry leader known for quality and reliability of its 70-541 practice exam and other resources.
Microsoft 70-541 exam is also known as TS: Microsoft Windows SharePoint Services 3.0 - Application Development. Exam Sheets is the industry leader known for quality and reliability of its 70-541 practice exam and other resources.

More info:

Published by: Kamran Ayyub on Aug 28, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/26/2012

pdf

text

original

 
 
Exam Sheets is well-established name relating IT certifications resources andtest materials to ensure your success in
,
,
,
,
and more certifications by
,
IBM
,
,
HP
,
,
,etc.
Global Leader in IT Certification Resources
 
Exam Code
Exam Name
 
Sample Questions and Answers
 
Exam Name:TS: Microsoft Windows SharePoint Services 3.0 - Application DevelopmentExam Type:
 
MicrosoftExam Code:70-541Total Questions:110
Page 1 of 53
Microsoft 70-541 (C#)
Question: 1
 
You create a Microsoft Windows SharePoint Services application. A SharePoint site has a listnamed MyList. You write the following code segment. (Line numbers are included for referenceonly.)01 SPWeb site = SPControl.GetContextWeb(context);02 SPList li st = site.Lists["MyList"];03 ...You need to bind the list to a DataGrid control. You also need to ensure that all the fields in thelist are available in the DataTable object. Which code segment should you insert at line 03?A. SPListItemCollection listItems = list.Items;DataTable table = listItems.GetDataTable();B. SPListItemCollection listItems = list.Items;foreach (SPListItem item in listItems) {item.Properties["Visible"]=true;}DataTable table = listItems.GetDataTable();C. SPListItemCollection listItems = list.Items;DataTable table=new DataTable();foreach (SPListItem item in listItems) {DataColumn col= new DataColumn(item.Name);col.ExtendedProperties["Visible"]=true;table.Columns.Add(col);}D. Guid dataViewGuid = list.Views["DataView"].ID;SPView srcView = list.GetView(dataViewGuid);SPViewFieldCollection viewFields = srcView.ViewFields;SPListItemCollection listItems = list.GetItems(srcView);DataTable table = listItems.GetDataTable();
Answer: AQuestion: 2
 You create a Microsoft Windows SharePoint Services site.You need to update the first item in a SharePoint list named MyList without triggering any alerts.Which code segment should you use?A. SPSite site = SPControl.GetContextSite(context);SPList destList = site.AllWebs[0].Lists[0];SPListItemCollection listItems = destList.Items;SPListItem item = listItems[0];item["Type"] = "Important";item["Assigned"] = "No";item.UpdateOverwriteVersion();B. SPSite site = SPControl.GetContextSite(context);SPList destList = site.AllWebs["MySite"].Lists["MyList"];SPListItemCollection listItems = destList.Items;
 
Exam Name:TS: Microsoft Windows SharePoint Services 3.0 - Application DevelopmentExam Type:
 
MicrosoftExam Code:70-541Total Questions:110
Page 2 of 53
SPListItem item = listItems[0];item["Type"] = "Important";item["Assigned"] = "No";item.Recycle();C. SPSite site = SPControl.GetContextSite(context);SPList destList = site.AllWebs["MySite"].Lists["MyList"];SPListItemCollection listItems = destList.Items;SPListItem item = listItems[0];item["Type"] = "Important";item["Assigned"] = "No";item.SystemUpdate();D. SPWeb mySite = SPControl.GetContextWeb(context);SPListItemCollection listItems = mySite.Lists["MyList"].Items;SPListItem item = listItems.Add();item["Type"] = "Important" ;item["Assigned"] = "No";item.Update();
Answer: CQuestion: 3
 You are writing a console application that displays information about attachments for list items.You need to display the name and length of each attachment for an item.Which code segment should you use?A. public static void DisplayAttachments ( SPListItem item){foreach (string name in item.Attachments ){string fullName = item.Attachments.UrlPrefix + name;FileInfo fi = new FileInfo ( fullName );Console.WriteLine ("{0} has a length of {1}",fullName , fi.Length );}}B. public static void DisplayAttachments ( SPListItem item){foreach (string name in item.Attachments ){SPFile spFile = item.Web.GetFile (name);Console.WriteLine ("{0} has a length of {1}", name, spFile.Length );}}C. public static void DisplayAttachments ( SPListItem item){foreach (string name in item.Attachments ){string fullName = item.Attachments.UrlPrefix + name;SPFile spFile = item.Web.GetFile ( fullName );Console.WriteLine ("{0} has a length of {1}",fullName , spFile.Length );}}D. .public static void DisplayAttachments ( SPListItem item){

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Elham Sarikhani liked this
Pankaj Garg liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->