July 18, 2008

MCTS 70-528

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.