Microsoft TS: Office SharePoint Server, Application Development (available in 2010) - 070-573무료 덤프문제 풀어보기
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?
You need to perform a Representational State Transfer (REST) query that returns products 30 to 39.
Which URL should you use?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
You created a custom ASPX page that updates a list. The page is deployed to the _layouts folder.
The page contains the following code segment. (Line numbers are included for reference only.)
01 <form id="Form1" runat="Server"> 02 <asp:Button id="btnUpdate" runat="server" Text="Update"></asp:Button>03 </form>
A user attempts to update the list by using the page and receives the following error message: "The
security validation for this page is invalid".
You need to prevent the error from occurring.
Which control should you include in Form1?
The page contains the following code segment. (Line numbers are included for reference only.)
01 <form id="Form1" runat="Server"> 02 <asp:Button id="btnUpdate" runat="server" Text="Update"></asp:Button>03 </form>
A user attempts to update the list by using the page and receives the following error message: "The
security validation for this page is invalid".
You need to prevent the error from occurring.
Which control should you include in Form1?
정답: D
설명: (Fast2test 회원만 볼 수 있음)
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?
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?
정답: C
설명: (Fast2test 회원만 볼 수 있음)
You need to programmatically add a user named User1 to a group named Group1.
You write the following code segment. (Line numbers are included for reference only.)
01 string login = "User1";
02 string grpName = "Group1";
03 SPUser user = SPContext.Current.Web.EnsureUser(login);
04 SPGroup group = SPContext.Current.Web.Groups[grpName];
05
06 group.Update();
Which code segment should you add at line 05?
You write the following code segment. (Line numbers are included for reference only.)
01 string login = "User1";
02 string grpName = "Group1";
03 SPUser user = SPContext.Current.Web.EnsureUser(login);
04 SPGroup group = SPContext.Current.Web.Groups[grpName];
05
06 group.Update();
Which code segment should you add at line 05?
정답: C
설명: (Fast2test 회원만 볼 수 있음)
You plan to develop a Web Part that displays a SharePoint list.
The Web Part will verify the list permissions when users access by using the web.CurrentUser.DoesUserHavePermissions method.
You need to ensure that when users do not have permissions to the list, the Web Part displays the company's logo.
Which code segment should you add to the Web Part?
The Web Part will verify the list permissions when users access by using the web.CurrentUser.DoesUserHavePermissions method.
You need to ensure that when users do not have permissions to the list, the Web Part displays the company's logo.
Which code segment should you add to the Web Part?
정답: C
설명: (Fast2test 회원만 볼 수 있음)
You are creating a custom workflow action to be used in Microsoft SharePoint Designer reusable workflows.
The action programmatically creates a SharePoint site named Site1 at a specific URL. The workflow actions schema file contains the following code segment.
<WorkflowInfo> <Actions Sequential="then" Parallel="and">
<Action Name="Create Site" ClassName="SPDActivityDemo.CreateSite"Assembly="SPDActivityDemo, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=1a4a7a2c3215a71b"AppliesTo="all"Category="Test">
<Parameters> <Parameter Name="Url" Type="System.String, mscorlib" Direction="In" /><Parameters> </Action></Actions></WorkflowInfo>
You need to ensure that users can specify the URL property of the action in SharePoint Designer.
What should you add to the schema of the action?
The action programmatically creates a SharePoint site named Site1 at a specific URL. The workflow actions schema file contains the following code segment.
<WorkflowInfo> <Actions Sequential="then" Parallel="and">
<Action Name="Create Site" ClassName="SPDActivityDemo.CreateSite"Assembly="SPDActivityDemo, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=1a4a7a2c3215a71b"AppliesTo="all"Category="Test">
<Parameters> <Parameter Name="Url" Type="System.String, mscorlib" Direction="In" /><Parameters> </Action></Actions></WorkflowInfo>
You need to ensure that users can specify the URL property of the action in SharePoint Designer.
What should you add to the schema of the action?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
You have a Microsoft .NET Framework console application that uses the SharePoint client object model.
The application contains the following code segment. (Line numbers are included for reference only.)
01 ClientContext cCtx = new ClientContext("http://intranet/hr");
02 List sharedDocList = cCtx.Web.Lists.GetByTitle("Shared Documents");
03 CamlQuery camlQuery = new CamlQuery();
04 camlQuery.ViewXml =
05 @"<View>
06 <Query>
07 <Where>
08 <Eq>
09
10 <Value Type='Text'>Doc1.docx</Value>
11 </Eq>
12 </Where>
13 </Query>
14 </View>";
15 ListItemCollection docLibItems = sharedDocList.GetItems(camlQuery);
16 cCtx.Load(sharedDocList);
17 cCtx.Load(docLibItems);
18 cCtx.ExecuteQuery();
You need to ensure that the application queries Shared Documents for a document named Doc1.docx.
Which code element should you add at line 09?
The application contains the following code segment. (Line numbers are included for reference only.)
01 ClientContext cCtx = new ClientContext("http://intranet/hr");
02 List sharedDocList = cCtx.Web.Lists.GetByTitle("Shared Documents");
03 CamlQuery camlQuery = new CamlQuery();
04 camlQuery.ViewXml =
05 @"<View>
06 <Query>
07 <Where>
08 <Eq>
09
10 <Value Type='Text'>Doc1.docx</Value>
11 </Eq>
12 </Where>
13 </Query>
14 </View>";
15 ListItemCollection docLibItems = sharedDocList.GetItems(camlQuery);
16 cCtx.Load(sharedDocList);
17 cCtx.Load(docLibItems);
18 cCtx.ExecuteQuery();
You need to ensure that the application queries Shared Documents for a document named Doc1.docx.
Which code element should you add at line 09?
정답: D
설명: (Fast2test 회원만 볼 수 있음)
You have a Web Part that causes an error.
You need to ensure that you can view the trace history in the Trace.axd file.
What should you configure in the web.config file?
You need to ensure that you can view the trace history in the Trace.axd file.
What should you configure in the web.config file?
정답: C
설명: (Fast2test 회원만 볼 수 있음)
You deploy a custom Web Part named WebPart1 to a SharePoint site.
WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)02 {
03 04 05 06 07 08
SPSite site = null;try{ SPSite site = new SPSite("http://www.contoso.com/default.aspx");SPWeb web = site.OpenWeb();
09
...
10
11
}catch
12
13
{
14
15
16
17
}finally{
18
}
19 }
After you deploy WebPart1, users report that the pages on the site load slowly.
You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly.
What should you do?
WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)02 {
03 04 05 06 07 08
SPSite site = null;try{ SPSite site = new SPSite("http://www.contoso.com/default.aspx");SPWeb web = site.OpenWeb();
09
...
10
11
}catch
12
13
{
14
15
16
17
}finally{
18
}
19 }
After you deploy WebPart1, users report that the pages on the site load slowly.
You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly.
What should you do?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
You create a SharePoint farm solution that contains a Web Part.
You need to debug the Web Part by using Microsoft Visual Studio 2010.
To which process should you attach the debugger?
You need to debug the Web Part by using Microsoft Visual Studio 2010.
To which process should you attach the debugger?
정답: C
설명: (Fast2test 회원만 볼 수 있음)