I just passed MCTS 70-528 on July 09, 2008 with 1000/1000. It was 2:45 hour test having total 40 questions. While I was preparing for the exam I came across some of the questions which really make any one confusing. I saw different answer from different post. Here are some of them. Question:1 You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You add the following code segment to the Web.config file. <membership defaultProvider="MySqlProvider"> <providers> <add name="MySqlProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="MySqlProviderConnection"/> </providers> </membership> Which two additional actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Use Aspnet_regsql.exe to create the Microsoft SQL Server database. B. Set Login1's MembershipProvider property to MySqlProviderConnection. C. Add the following code segment to the Web.config file. <connectionStrings> <add name="MySqlProviderConnection" connectionString="valid connection string" /></connectionStrings> D. Add the following code segment to the Web.config file. <appSettings><add key="MySqlProviderConnection" value="valid connection string" /></appSettings> E. In the ASP.NET configuration settings within IIS, ensure that Role Management Enabled is selected. F. Use the Web Site Administration Tool to select AspNetSqlMembershipProvider as the membership provider for your application. Answer: A, C Question2: You create a Web Form that displays a GridView. The GridViews data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.) 01 dtOrders = dsOrders.Tables["Orders"]; 02 dtOrderDetails = dsOrders.Tables["OrderDetail"]; 03 colParent = dtOrders.Columns["OrderID"]; 04 colChild = dtOrderDetails.Columns["ParentOrderID"]; 05 dsOrders.Relations.Add("Rell", colParent, colChild, false); You need to find the cause of the exception being raised in line 05. What should you do? A. Ensure that the child column and the parent column have the same names. B. Ensure that the child table and the parent table have the same names. C. Ensure that the child column and the parent column have the same data types. D. Ensure that each row in the child table has a corresponding row in the parent table. E. Ensure that the tables have an explicit relationship defined by a foreign key constraint in the database. Answer: C Question3: You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. (Choose two.) A. Add custom controls that emit XHTML to the Web Form. B. Add custom controls that emit WML to the Web Form. C. Add mobile controls to the Web Form. D. Add Web server controls to the Web Form. Answer: I think the answer is A, B. [I am not 100% sure but its my view. I don't feel C and D can be the answer. - C can't be an answer as you can't add a mobile control in webform. - Why I say A: Check this http://msdn.microsoft.com/en-us/library/67276kc5(VS.80).aspx ] Hope this may help some one.
July 18, 2008
MCTS 70-528
Labels:
Asp.Net,
Microsoft Certification
Subscribe to:
Post Comments (Atom)
1 comment:
I've passed this one with 982 score and for sure i can tell that answers for questions 1 and 2 are correct, but question 3 the correct answers are C and D. I know that some places and here said that you can't add mobile controls to webform, but you can add them manually through code. Also just to point out that this was correct answer, in mobile section of exam i didn't had any wrong answer. People that made this exam with me chose different answers and they had it wrong and some that chose C and D were correct.
Post a Comment