Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development - 070-528 Exam Practice Test
You are creating a Microsoft ASP.NET Web site.
You need to ensure that the Web site uses cookieless authentication.
Which code fragment should you add to the Web.config file of the Web site?
You need to ensure that the Web site uses cookieless authentication.
Which code fragment should you add to the Web.config file of the Web site?
Correct Answer: A
Vote an answer
You create a control named ContosoUI for a Web application.
You need to add the control to the toolbox of Microsoft Visual Studio .NET.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You need to add the control to the toolbox of Microsoft Visual Studio .NET.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: A,B
Vote an answer
You create a Microsoft ASP.NET Web site.
The SqlProvider configuration of the Web.config file contains the following code fragment.
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection"
applicationName="MyApplication" />
</providers>
</membership>
You need to ensure that the Web site can store passwords securely. You also need to ensure that passwords can be retrieved.
Which code fragment should you add to the Web.config file?
The SqlProvider configuration of the Web.config file contains the following code fragment.
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection"
applicationName="MyApplication" />
</providers>
</membership>
You need to ensure that the Web site can store passwords securely. You also need to ensure that passwords can be retrieved.
Which code fragment should you add to the Web.config file?
Correct Answer: B
Vote an answer
You create a Web site that is for members only. The Web site allows members to create lists of users that
have access to information about member profiles.
The name of the list is stored in the listName variable. The user name of the user to whom access is given
is stored in the username variable.
You need to enable members to manage their lists of users.
Which code segment should you use?
have access to information about member profiles.
The name of the list is stored in the listName variable. The user name of the user to whom access is given
is stored in the username variable.
You need to enable members to manage their lists of users.
Which code segment should you use?
Correct Answer: C
Vote an answer
You are creating a Microsoft ASP.NET Web site.
You need to store authorization-related information on each user's client computer.
Which code fragment should you use?
You need to store authorization-related information on each user's client computer.
Which code fragment should you use?
Correct Answer: A
Vote an answer
You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate
within the Marketing section of your Web site.
The following XML defines the site map for your site.
<siteMapNode url="~/default.aspx" title="Home" description="Site Home Page">
<siteMapNode url="Sales.aspx" title="Sales" description="Sales Home">
<siteMapNode url="SalesWest.aspx" title="West Region" description="Sales for
the West Region" />
<siteMapNode url="SalesEast.aspx" title="East Region" description="Sales for
the East Region" />
</siteMapNode>
<siteMapNode url="Marketing.aspx" title="Marketing" description="Marketing
Home">
<siteMapNode url="MarketNational.aspx" title="National Campaign"
description="National marketing campaign" />
<siteMapNode url="MarketMidwest.aspx" title="Midwest Campaign"
description="Midwest region marketing campaign" />
<siteMapNode url="MarketSouth.aspx" title="South Campaign" description="South
region marketing campaign" />
</siteMapNode>
</siteMapNode>
You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
within the Marketing section of your Web site.
The following XML defines the site map for your site.
<siteMapNode url="~/default.aspx" title="Home" description="Site Home Page">
<siteMapNode url="Sales.aspx" title="Sales" description="Sales Home">
<siteMapNode url="SalesWest.aspx" title="West Region" description="Sales for
the West Region" />
<siteMapNode url="SalesEast.aspx" title="East Region" description="Sales for
the East Region" />
</siteMapNode>
<siteMapNode url="Marketing.aspx" title="Marketing" description="Marketing
Home">
<siteMapNode url="MarketNational.aspx" title="National Campaign"
description="National marketing campaign" />
<siteMapNode url="MarketMidwest.aspx" title="Midwest Campaign"
description="Midwest region marketing campaign" />
<siteMapNode url="MarketSouth.aspx" title="South Campaign" description="South
region marketing campaign" />
</siteMapNode>
</siteMapNode>
You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
Correct Answer: A,D,F
Vote an answer
You are creating a Web application to process XML data. A section of the XML data is shown below.
<?xml version="1.0" encoding="utf-8" ?>
<Books>
<Book Price="9.99" NumPages="200" QtyAvailable="15" >
<Author>Fred</Author>
<Title>Fred's Book</Title>
</Book>
<Book Price="19.99" QtyAvailable="5" NumPages="400" >
<Author>Bob</Author>
<Title>Bob's Book</Title>
</Book>
</Books>
You are using an XmlReader object named reader to parse each element in the XML data.
You need to retrieve the QtyAvailable attribute for each book.
Which code segment should you use?
<?xml version="1.0" encoding="utf-8" ?>
<Books>
<Book Price="9.99" NumPages="200" QtyAvailable="15" >
<Author>Fred</Author>
<Title>Fred's Book</Title>
</Book>
<Book Price="19.99" QtyAvailable="5" NumPages="400" >
<Author>Bob</Author>
<Title>Bob's Book</Title>
</Book>
</Books>
You are using an XmlReader object named reader to parse each element in the XML data.
You need to retrieve the QtyAvailable attribute for each book.
Which code segment should you use?
Correct Answer: E
Vote an answer