Issuu on Google+

Exam 70-564 study material Made available by Aonetesting.com

Free 70-564 Exam Preparation Questions Exam 70-564: Pro: Designing and Developing ASP.NET Applications Using the Microsoft .NET Framework 3.5

For Latest 70-564 Exam Questions and study guides- visit- http://www.aonetesting.com/70-564.html


Question:1 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. The same physical Web server will host the application. Your company posts some requirements for page layout: a common page layout that applies to all the ASP.NET pages across the Web applications; all pages to automatically reflect changes that are made to the common page layout. A master page which provides the page layout is created. You have to implement a solution which meets the layout requirements. So which additional tasks should you perform? (choose more than one) A. You should set the MasterPageFile property on each ASP.NET page to the virtual path of the master page file. B. A @ MasterType directive should be added to each ASP.NET page. C. A ContentPlaceholder control should be added to each ASP.NET page. D. You should configure a virtual directory within each Web application, and point the virtual directory to the folder that contains the master page. E. You should configure a virtual directory within the default Web site, and point the virtual directory to the folder that contains the master page. F. You should copy the master page into a single folder on the Web server. Answer: A, D, F Question:2 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. There are two tables in the application. The two tables are respectively named Commodities and CommodityPrice. The application modifies and updates the data that is retrieved by using the DataSet object. By using a SqlCommandBuilder object, the update command for the related SqlDataAdapter class is generated automatically. Now your company asks you to retrieve and modify data from the Product and CommodityPricetables as a unit. You must make sure that the application can update the data in the tables. So what action should you perform? A. After the UpdateCommand property of the SqlDataAdapter class is set to a SqlCommand object, you should use a custom UPDATE statement and call the Update method of the SqlDataAdapter class. B. Before calling the Update() method of the SqlDataAdapter class, you should call the SqlCommandBuilder.RefreshSchema() method. C. After the DataAdapter property of the SqlCommandBuilder class is set to the SqlDataAdapter object, you should use a custom UPDATE statement and call the Update method of the SqlDataAdapter class. D. Before calling the Update() method of the SqlDataAdapter class, you should call the SqlCommandBuilder.GetUpdateCommand() method. Answer: A Question:3 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. Performance problems occur in the application. You intend to collect sample timing information for each page. When you collect the information, you must make sure that the application keeps online, the trace output contains the rendering time for all controls on all the pages and is invisible to end users. So what action should be performed? A. The enabled attribute should be set to true and the pageOutput attribute should be set to false for the trace element in the Web.config file. B. In the OnLoad event of each page, the Trace.IsEnabled property should be set to true. C. In the BeginRequest event handler, the HttpContext.Current.Trace.IsEnabled property should be set to true. D. The enabled attribute and the pageOutput attribute should be set to true for the trace element in the Web.config file. Answer: A Question:4 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. The application is created for users to share photos across the Internet. Users must be able to access each photo in different sizes and formats. The application can be accessed from different browsers and operating systems. Now your company assigns a task to you. You have to develop a download feature that can be easily maintained, besides this, you must make sure that only a single version of each photo is stored on the server. So what action should you perform to accomplish the task? For Latest 70-564 Exam Questions and study guides- visit- http://www.aonetesting.com/70-564.html


A. In order to achieve your goal, you need to create an ActiveX control, the original photo can be converted to the required format and size by the ActiveX control. B. First you need to ascertain the request for the photo download by creating an HttpHandler class, and then you should process the original photo for format and size requirements and return the processed photo in the response. C. First you need to ascertain the request for the photo download by creating an HttpModule class, and then you have to process the original photo for format and size requirements and return the processed photo in the response. D. In order to achieve your goal, you need to create a User control, the original photo can be converted to the required format and size by the User control. Answer: B Question:5 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. A Microsoft SQL Server 2008 database must be available to the application. The database and the ASP.NET application respectively reside on two different servers. The two servers reside on networks that are separated by a firewall. You know that only port 80 and port 443 are open through the firewall. Now the company assigns a task to you, you have to make sure that the database can be accessed by the application. So what action should you perform? A. On the Web server, you should create a SQL client alias. B. You should use stored procedures to perform all database access. C. After you create a Web service, you should deploy it to the same network as the database server. D. After you create a Web service, you should deploy it to the same network as the Web server. Answer: C Question:6 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. The company requires the application must create e a tracking number to identify errors and when an error occurs, display the tracking number to the user. You must make sure that all the exceptions that contain the tracking number are logged, besides this, the exceptions to new pages that are added to the application must also be logged in the same manner. So what action should you perform to make sure of this? A. You should add the <error statusCode="500" redirect="customError.aspx?trackingNumber" /> element in the <customError> section of the Web.config file. Then you should log the exception in the Application_Error event of the Global.asax file. B. After the exception is logged in the Page_Error event of each page, you should redirect to the customError.aspx page, and pass the tracking number in the query string. C. After the exception is logged in the Application_Error event of the Global.asax file, you should redirect to the customError.aspx page, and pass the tracking number in the query string. D. You should add the <error statusCode="500" redirect="customError.aspx" /> element in the <customError> section of the Web.config file. In the customError.aspx page, obtain the exception by calling the Server.GetLastError() method and display the tracking number. Answer: C Question:7 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. You design a Web application which uses Forms-based authentication. The application provides authenticated users with interactive content, and subscribers with Expensecontent. There is a subdirectory named Expense in the application. All authenticated users are assigned the Siteuser role by default. Users who pay a subscription fee are assigned to the Subscriber role. The company requires that the Expense subdirectory can only be accessed by users who are assigned to the Subscriber role. Since you are the technical support for the company, your company asks you to make sure of this. So what action should be performed to accomplish this task? A. The following code fragment should be added to the Web.config file in the Expense subdirectory. <deny users="Siteuser" /> B. The following code fragment should be added to the Web.config file in the Expense subdirectory. <allow roles="Subscriber" /><deny users="*" /> C. The following code fragment should be added to the Web.config file in the Expense subdirectory. <deny users="*" /><allow roles="Subscriber" /> D. The following code fragment should be added to the Web.config file in the application root directory. <allow For Latest 70-564 Exam Questions and study guides- visit- http://www.aonetesting.com/70-564.html


user="Siteuser; Expense\Subscriber" /> Answer: B Question:8 You are an application developer and you have about two years experience in developing ASP.NET-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. According to the company requirement, you are using the .NET Framework 3.5 to create an ASP.NET application. An ASP.NET AJAX clientcomponent class is created in the Web form. The class will be used in a JavaScript function in the Web form. Your company wants you to debug the JavaScript function. According to the company requirement, you have to display all the fields of the AJAX client-component object in the trace console in the Web form, but you should use as little code as possible. Of the following methods, which one should you choose to use? A. You should choose to use Sys.Debug.assert B. You should choose to use Sys.Debug.traceDump C. You should choose to use Sys.Debug.fail D. You should choose to use Sys.Debug.trace Answer: B

For Latest 70-564 Exam Questions and study guides- visit- http://www.aonetesting.com/70-564.html


For complete Exam 70-564 Training kits and Self-Paced Study Material Visit: http://www.aonetesting.com/70-564.html

http://www.aonetesting.com

For Latest 70-564 Exam Questions and study guides- visit- http://www.aonetesting.com/70-564.html


Exam 70-564 Preparation Questions