70-541CSharp TS Braindump
ExamSoon 70-541CSharp Exams
Microsoft TS:MS Windows SharePoint Srvcs 3.0 Application Development
O rder : 70-541CSharp Exam
Practice Exam: 70-541CSharp
Exam Number/Code: 70-541CSharp
Exam Name: TS:MS Windows SharePoint Srvcs 3.0 Application
Development
Questions and Answers: 55 Q&As
Free 70-541CSharp Braindumps
Exam : Microsoft 70-541(C#)
Title : TS:MS Windows SharePoint Srvcs 3.0 Application Development
1. You create a Microsoft Windows SharePoint Services list named Books. The list has a column named Stock that
stores the total number of available books.
You write the following code segment. (Line numbers are included for reference only.)
01 protected override void CreateChildControls()
02 {
03 SPWeb myWeb = SPControl.GetContextWeb(Context);
04 SPList myList = myWeb .Lists["Books"];
05 ...
06 DataGrid myGrid = new DataGrid();
07 myGrid.DataSource = results;
08 myGrid.DataBind();
09 this.Controls.Add(myGrid);
10 }
You need to render a list of books for which the value in the Stock column is less than 100.
Which code segment should you insert at line 05?
A. SPQuery query = new SPQuery();
query.Query = "<Where><Leq><FieldRef Name='Stock'/><Value
Type='Number'>100</Value></Leq></Where>";
SPListItemCollection results = list.GetItems(query);
B. SPQuery query = new SPQuery();
query.Query = "<Where><Leq><FieldRef Name='Stock'/><Value
Type='Number'>100</Value></Leq/Where>";
SPListItemCollection results = list.GetChanges(query);
C. SPQuery query = new SPQuery();
query.Query = "<Where><Lt><FieldRef Name='Stock'/><Value
Type='Number'>100</Value></Lt></Where>";
SPListItemCollection results = list.GetItems(query);
D. SPQuery query = new SPQuery();
query.Query = "<Where><Lt><FieldRef Name='Stock'/><Value
Type='Number'>100</Value></Lt></Where>";
SPListItemCollection results = list.GetChanges(query);
Answer: C
2. You create a records repository for a Microsoft Windows SharePoint Services farm.
You need to enable the Send To menu for a SharePoint site within the farm.
Which code seg