070-515 無料問題集「Microsoft TS: Web Applications Development with Microsoft .NET Framework 4」
You are developing an ASP.Net web application.
The application includes a master page named CustomerMaster.master that contains a public string
property name EmployeeName application also includes a second master page named
NestedMaster.master that is defined by the following directive.
<%@ Master Language="C#"
MasterPageFile="~/CustomMaster.Master"
CodeBehind="NestedMaster.Master.cs"
Inherits="MyApp.NestedMaster"%>
You add a content page that uses the NestedMaster.master page file.The content page contains a label
control named lblEmployeeName.
You need to acces the EmployeeName value and display the value within the lblEmployeeName label.
What should you do?
The application includes a master page named CustomerMaster.master that contains a public string
property name EmployeeName application also includes a second master page named
NestedMaster.master that is defined by the following directive.
<%@ Master Language="C#"
MasterPageFile="~/CustomMaster.Master"
CodeBehind="NestedMaster.Master.cs"
Inherits="MyApp.NestedMaster"%>
You add a content page that uses the NestedMaster.master page file.The content page contains a label
control named lblEmployeeName.
You need to acces the EmployeeName value and display the value within the lblEmployeeName label.
What should you do?
正解:C
解答を投票する
You are developing an ASP.NET web application.
The application includes the following Entity Data Model (EDM): You instantiate an ObjectContext for the EDM named context.

You need to find the total number of addresses that are associated with customers that have a non-null middle name.
Which LINQ to Entities query should you use?
The application includes the following Entity Data Model (EDM): You instantiate an ObjectContext for the EDM named context.

You need to find the total number of addresses that are associated with customers that have a non-null middle name.
Which LINQ to Entities query should you use?
正解:D
解答を投票する
You are creating an ASP.NET web page that contains several FileUpload controls.
The page will be posted to the server after one or more image files are selected for upload.
You need to ensure that all uploaded files are saved to the server within one call to a single event handler.
What should you do?
The page will be posted to the server after one or more image files are selected for upload.
You need to ensure that all uploaded files are saved to the server within one call to a single event handler.
What should you do?
正解:A
解答を投票する
You create an ASP.NET page that contains the following tag.
<h1 id="hdr1" runat="server">Page Name</h1>
You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
<h1 id="hdr1" runat="server">Page Name</h1>
You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
正解:C、D
解答を投票する
You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0.
Now, you are deploying the ASP.NET Web application to a remote server.
You are required to select a deployment method that will make sure that all Internet Information Services
(IIS) settings, in addition to the Web content, are deployed to the remote server.
Which of the following deployment methods will you select to accomplish this?
The company uses Visual Studio .NET 2010 as its application development platform.
You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0.
Now, you are deploying the ASP.NET Web application to a remote server.
You are required to select a deployment method that will make sure that all Internet Information Services
(IIS) settings, in addition to the Web content, are deployed to the remote server.
Which of the following deployment methods will you select to accomplish this?
正解:D
解答を投票する
You are implementing a method in an ASP.NET application that includes the following requirements.
Store the number of active bugs in the cache.
The value should remain in the cache when there are calls more often than every 15 seconds.
The value should be removed from the cache after 60 seconds.
You need to add code to meet the requirements. Which code segment should you add?
Store the number of active bugs in the cache.
The value should remain in the cache when there are calls more often than every 15 seconds.
The value should be removed from the cache after 60 seconds.
You need to add code to meet the requirements. Which code segment should you add?
正解:D
解答を投票する
You create a Web page that contains drop-down menus that are defined by using div tags in the following code.
<div class="dropdown-menu"> <div class="menu-title">Menu One</div> <div class="menu-items" style="display:none;">
<div><a href="#">Item One</a></div>
<div><a href="#">Item Two</a></div>
</div> </div> <div class="dropdown-menu">
<div class="menu-title">Menu Two</div>
<div class="menu-items" style="display:none;">
<div><a href="#">Item Three</a></div>
<div><a href="#">Item Four</a></div>
</div> </div>
You need to write a JavaScript function that will enable the drop-down menus to activate when the user
positions the mouse over the menu title.
Which code segment should you use?
<div class="dropdown-menu"> <div class="menu-title">Menu One</div> <div class="menu-items" style="display:none;">
<div><a href="#">Item One</a></div>
<div><a href="#">Item Two</a></div>
</div> </div> <div class="dropdown-menu">
<div class="menu-title">Menu Two</div>
<div class="menu-items" style="display:none;">
<div><a href="#">Item Three</a></div>
<div><a href="#">Item Four</a></div>
</div> </div>
You need to write a JavaScript function that will enable the drop-down menus to activate when the user
positions the mouse over the menu title.
Which code segment should you use?
正解:B
解答を投票する