|
Braindumps of
70-528
MS.NET Framework
2.0-Web-based Client Development
Exam Questions, Answers,
Braindumps (70-582)
Completed my paper, It was bcuz of
www.exams.ws . All the questions in the exam are
from their study guide.
Goodluck to u too.
Question: 1
You create a Web
application to process XML documents. The Web
application receives XML
document files from
several sources, reads them, and stores them in a
Microsoft SQL Server
database. The Web
application parses all incoming data files to ensure
that they conform to an
XML schema. You need
to find all validation errors in the XML document. What
should you do?
A. Load the XML data
by using an instance of the XmlDocument class and
specify a location for
the application
schema.
B. Configure the
ValidationEventHandler in the XmlReaderSettings of the
XmlReader object.
C. Read the XML file
into a DataSet object and set the EnforceConstraints
property to True.
D. Read the XML file
into a DataSet object. Handle the DataSet.MergeFailed
event to parse the
data that does not
conform to the XML schema.
Answer: B
Question: 2
You load an
XmlDocument named doc with the following XML.
<bookstore>
<books>
<book
genre="reference" >
<title>Dictionary</title>
</book>
<book
genre="reference" >
<title>World
Atlas</title>
</book> </books>
</bookstore>
You need to change
the value for the genre attribute to NA for all book
attributes.
First, you add the
following code segment to your class.
XmlElement root =
doc.DocumentElement;
XmlNodelist nodes =
root.SelectNodes(“books/book”);
Which additional two
code segments can you use to achieve this goal? (Each
correct answer
presents a complete
solution. Choose two.)
A. foreach (XmlNode
node in nodes){ node.Attributes[0].Value = “NA”;}
B. foreach (XmlNode
node in nodes){ node.Attributes[1].Value = “NA”;}
C. foreach (XmlNode
node in nodes){XmlNode genre = node.SelectSingleNode(“/genre”);
genre.Value = “NA”;}
D. foreach (XmlNode
node in nodes){XmlNode genre = node.SelectSingleNode(“@genre”);
genre.Value = “NA”;}
E. foreach (XmlNode
node in nodes){XmlNode genre =
node.SelectSingleNode(“genre”);
genre.Value = “NA”;}
Answer: A, D
Question: 3
You are developing a
Web application. The Web application uses a GridView
control to display
data. You build your
Web Forms for the Web application by dragging and
dropping tables from
the Data Connections
tree in Server Explorer. You need to add a connection to
your data by
using the Add
Connection dialog box as shown in the exhibit.
During the process,
you need to configure the .NET Data Provider that you
use to create the data
source objects. What
should you do?
A. Right-click the
connection, and click Properties. Modify the Provider
property of the data
connection.
B. Click the Change
button, and change the data provider for the selected
data source.
C. Click the Advanced
button, and change the Data Source property to the
target provider.
D. Click the Advanced
button, and change the Application Name property to the
target provider.
Question: 4
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.)
A. Add a
SiteMapDataSource control to the Web Form and bind the
TreeView control to it.
B. Add a SiteMapPath
control to the Web Form and bind the TreeView control to
it.
C. Embed the site map
XML within the SiteMap node of a Web.sitemap file.
D. Embed the site map
XML within the AppSettings node of a Web.config file.
E. Set the
StartingNodeUrl property of the SiteMapDataSource
control to ~/Marketing.aspx.
F. Set the
SkipLinkText property of the SiteMapPath control to
Sales.
Answer: A, C, E
Question: 5
Your Web site
processes book orders. One of the application methods
contains the following
code segment.
XmlDocument doc =
newXmlDocument();
doc.LoadXml(“<book><discount>10</discount>”+”
<title>Dictionary</title></book>”);
You need to remove
the discount element from XmlDocument. Which two code
segments can
you use to achieve
this goal? (Each correct answer presents a complete
solution. (Choose two.)
A. XmlNode root =
doc.DocumentElement;root.RemoveChild(root.FirstChild);
B. XmlNode root =
dec.DocumentElement;root.RemoveChild(root.SelectSingleNode(“discount”));
C.
doc.RemoveChild(doc.FirstChild);
D.
doc.DocumentElement.RemoveChild(doc.FirstChild);
Answer: A, B
|