70-515 Exam Questions
198 real 70-515 exam questions with expert-verified answers and explanations. Page 1 of 4.
- Question #1
You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in...
- Question #2
You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master. You add the following code to the Te...
- Question #3
You are implementing an ASP.NET page. You add asp:Button controls for Help and for Detail. You add an ASP.NET skin file named default.skin to a theme. You need to create and use a...
- Question #4
You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment. public partial cla...
- Question #5
You are implementing an ASP.NET Web site. The site allows users to explicitly choose the display language for the site's Web pages. You create a Web page that contains a DropDownLi...
- Question #6
You are implementing an ASP.NET application that includes the following requirements. Retrieve the number of active bugs from the cache, if the number is present. If the number is...
- Question #7
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 c...
- Question #8
You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code. public class Person { public string FirstName { get; set;}...
- Question #9
You create a Web page named TestPage.aspx and a user control named contained in a file named TestUserControl.ascx. You need to dynamically add TestUserControl.ascx to TestPage.aspx...
- Question #10
You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code. <uc:TestUse...
- Question #11
You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx. <uc:TestUserControl ID="testControl" runat="server"/>...
- Question #12
You create a custom server control named Task that contains the following code segment. (Line numbers are included for reference only.) 01 namespace DevControls 02 { 03 public clas...
- Question #13
You are implementing an ASP.NET page that includes the following drop-down list. <asp:PlaceHolder ID="dynamicControls" runat="server"> <asp:DropDownList ID="MyDropDown" runat="serv...
- Question #14
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...
- Question #15
You are implementing custom ASP.NET server controls. You have a base class named RotaryGaugeControl and two subclasses named CompassGaugeControl and SpeedGaugeControl. Each control...
- Question #16
You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers. You need to check whether the currently logged-on user is a member of...
- Question #17
You are creating an ASP.NET Web site. You create a HTTP module named CustomModule, and you register the module in the web.config file. The CustomModule class contains the following...
- Question #18
You are implementing an ASP.NET Web site. The root directory of the site contains a page named Error.aspx. You need to display the Error.aspx page if an unhandled error occurs on a...
- Question #19
You are implementing an ASP.NET Web site. The site uses a component that must be dynamically configured before it can be used within site pages. You create a static method named Si...
- Question #20
You create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project. The service includes a method named GetPeople that takes no arguments and retur...
- Question #21
You use the ASP.NET Web Site template to create a Web site that will be deployed to multiple locations. Each location will specify its SMTP configuration settings in a separate fil...
- Question #22
You deploy an ASP.NET application to an IIS server. You need to log health-monitoring events with severity level of error to the Windows application event log. What should you do?
- Question #23
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 applicati...
- Question #24
You ́re developing an ASP web page. The pages requires access to types that are defined in an assembly named Contoso.businessobjects.dll. You need to ensure that the page can acces...
- Question #25
You are developing an ASP.NET web page. The page includes functionality to make a web request and to display the responde in a specified HTML element. You need to add a client-side...
- Question #26
You are perfoming security testing on an existing asp.net web page. You notice that you are able to issue unauthorized postback requests to the page. You need to prevent unauthoriz...
- Question #27
You are developing an ASP.NET web application. Your designer creates a theme named General for general use in the application. The designer also makes page-specific changes to the...
- Question #28
You are implementing an ASP.NET application. You add the following code segment. public List<Person> GetNonSecretUsers() { string[] secretUsers = {"@secretUser", "@admin", "@root"}...
- Question #29
You are implementing an ASP.NET Web site. The Web site contains a Web service named CustomerService. The code-behind file for the CustomerService class contains the following code...
- Question #30
You are implementing a WCF service library. You add a new code file that contains the following code segment. namespace ContosoWCF { [ServiceContract] public interface IRateService...
- Question #31
You are implementing an ASP.NET Web site. The site contains the following class. public class Address { public int AddressType; public string Line1; public string Line2; public str...
- Question #32
You are implementing an ASP.NET Dynamic Data Web site. The Web site includes a data context that enables automatic scaffolding for all tables in the data model. The Global.asax.cs...
- Question #33
You are implementing a new Dynamic Data Web site. The Web site includes a Web page that has an ObjectDataSource control named ObjectDataSource1. ObjectDataSource1 interacts with a...
- Question #34
You create a new ASP.NET MVC 2 Web application. The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference only.) 01 public stati...
- Question #35
You create a new ASP.NET MVC 2 Web application. The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference only.) 01 public stati...
- Question #36
You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to e...
- Question #37
You are implementing an ASP.NET MVC 2 Web application that allows users to view and edit data. You need to ensure that only logged-in users can access the Edit action of the contro...
- Question #38
You are implementing an ASP.NET MVC 2 Web application. A controller contains the following code. public ActionResult Edit(int id) { return View(SelectUserToEdit(id)); } public Acti...
- Question #39
You are implementing an ASP. NET MVC 2 Web application. You add a controller named CompanyController. You need to modify the application to handle the URL path /company/info. Which...
- Question #40
You create an ASP.NET MVC 2 Web application. You implement a single project area in the application. In the Areas folder, you add a subfolder named Test. You add files named TestCo...
- Question #41
You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named Product to create a single project area. You add files named ProductController.cs...
- Question #42
You are implementing an ASP.NET MVC 2 Web application. You create a shared user control named MenuBar.ascx that contains the application's menu. You need to use the menu bar in all...
- Question #43
You are implementing an ASP.NET MVC 2 Web application that contains several folders. The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that perf...
- Question #44
You create an ASP.NET MVC 2 Web application that contains the following controller class. public class ProductController : Controller { static List<Product> products = new List<Pro...
- Question #45
You are implementing an ASP.NET MVC 2 Web application that contains the following class. public class DepartmentController : Controller { static List<Department> departments = new...
- Question #46
You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to c...
- Question #47
You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translat...
- Question #48
You are implementing an ASP.NET page in an e-commerce application. Code in a btnAddToCart_Click event handler adds a product to the shopping cart. The page should check the status...
- Question #49
You are implementing a read-only page that includes the following controls. <asp:Button ID="btnRefresh" runat="server" Text="Button" /> <asp:GridView ID="gvCustomers" runat="server...
- Question #50
You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the...