examsoon 70-528VB pdf dumps

Document Sample
examsoon 70-528VB pdf dumps Powered By Docstoc
					                                                       70-528VB MCTS Braindump




ExamSoon 70-528VB Exams
Microsoft MS.NET Framework 2.0-Web-based Client Development

                                    Practice Exam: 70-528VB
                                    Exam Number/Code: 70-528VB
                                    Exam Name: MS.NET Framework 2.0-Web-based Client Development
                                    Questions and Answers: 73 Q&As



                                    Free 70-528VB Braindumps
O rd e r : 70-528VB Exam



Exam : Microsoft 70-528VB
Title : MS.NET Framework 2.0-Web-based Client Development




1. You are creating a Web Form to report on orders in a database. You create a DataSet that contains Order and
OrderDetails tables. You add a relationship between the tables by using the following code segment.
Dim dtOrders As DataTable = dsOrders.Tables("Orders")
Dim dtOrderDetails As DataTable = _
dsOrders.Tables("OrderDetails")
Dim colParent As DataColumn = dtOrders.Columns("OrderID")
Dim colChild As DataColumn = _
dtOrderDetails.Columns("OrderID")
dsOrders.Relations.Add("Rel1", colParent, colChild, False)
You need to calculate the total quantity of items for each order by adding the values in the Quantity column in the
OrderDetails rows for each order.
Which code segment should you use?
A. Dim parentRow As DataRow
For Each parentRow In dtOrders.Rows
currQty = 0
Dim childRow As DataRow
For Each childRow In dtOrderDetails.Rows
currQty += Convert.ToInt32(childRow("Quantity"))
Next childRow
ShowQty(currQty)
Next parentRow
B. Dim parentRow As DataRow
For Each parentRow In dtOrders.Rows
currQty = 0
Dim childRow As DataRow
For Each childRow In parentRow.GetChildRows("Rel1")
currQty += Convert.ToInt32(childRow("Quantity"))
Next childRow
ShowQty(currQty)
Next parentRow
C. Dim childRow As DataRow
For Each childRow In dtOrders.Rows
currQty = 0
Dim parentRow As DataRow
For Each parentRow In childRow.GetParentRows("Rel1")
currQty += Convert.ToInt32(childRow("Quantity"))
Next parentRow
ShowQty(currQty)
Next childRow
D. Dim parentRow As DataRow
For Each parentRow In dtOrders.Rows
currQty = 0
Dim childRows As DataRow() = _
parentRow.GetChildRows("Rel1")
currQty += childRows.Length
ShowQty(currQty)
Next parentRow
Answer: B


2. You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a
DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows.
dtProducts.Rows(0)("ProductName") = "Soap"
dtProducts.Rows(1)("ProductName") = "Book"
dtProducts.Rows(2)("ProductName") = "Computer"
dtProducts.Rows(3)("ProductName") = "Spoon"
dtProducts.AcceptChanges()
The user utilizes a Web Form to delete the first product.
You need to set the RowStateFilter property of the DataTable's DefaultView so that only products that have not been
deleted are shown.
To which value should you set the DataTables's DefaultView.RowStateFilter?
A. DataViewRowState.ModifiedOriginal
B. DataViewRowState.ModifiedCurrent
C. DataViewRowState.CurrentRows
D. DataViewRowState.Added
Answer: C


3. You create a Web Form. The Web Form allows users to calculate values and display the results in a label named
lblResults.
You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture
each unhandled exception and display it on the Web Form.
Which code segment should you use?
A. Protected Sub Page_Error(ByVal sender As Object, _
?ByVal e As System.EventArgs) Handles Me.Error?
lblResults.Text = e.ToString()
e = Nothing
End Sub
B. Protected Sub Page_Error(ByVal sender As Object, _
?ByVal e As System.EventArgs) Handles Me.Error?
lblResults.Text = Server.GetLastError().ToString()
Server.ClearError()
End Sub
C. Protected Sub Page_Error(ByVal sender As Object, _
?ByVal e As System.EventArgs) Handles Me.Error?
Response.Write(e.ToString())
e = Nothing
End Sub
D. Protected Sub Page_Error(ByVal sender As Object, _
?ByVal e As System.EventArgs) Handles Me.Error
Response.Write(Server.GetLastError().ToString())
Server.ClearError()
End Sub
Answer: D


4. You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the
database.
When the user clicks the Update button on the FormView control, the application must validate that the user has
entered data in all of the fields.
You need to ensure that the Web Form does not update if the user has not entered data in all of the fields.
Which code segment should you use?
A. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _
?ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _
?Handles FormView1.ItemUpdating
Dim entry As DictionaryEntry
For Each entry In e.Keys
If entry.Value.ToString() = System.String.Empty Then
e.Cancel = True
Return
End If
Next entry
End Sub
B. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _
?ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _
?Handles FormView1.ItemUpdated
Dim entry As DictionaryEntry
For Each entry In e.NewValues
If entry.Value.Equals("") Then
e.KeepInEditMode = True
Return
End If
Next entry
End Sub
C. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _
?ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _
?Handles FormView1.ItemUpdating
Dim entry As DictionaryEntry
For Each entry In e.NewValues
If entry.Value.Equals("") Then
e.Cancel = True
Return
End If
Next entry
End Sub
D. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _
?ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _
?Handles FormView1.ItemUpdated
Dim entry As DictionaryEntry
For Each entry In e.Keys
If entry.Value.ToString() = System.String.Empty Then
e.KeepInEditMode = True
Return
End If
Next entry
End Sub
Answer: C


5. You are creating a Web Form. You write the following code segment to create a SqlCommand object.
Dim conn As SqlConnection = New SqlConnection(connString)
conn.Open()
Dim cmd As SqlCommand = conn.CreateCommand()
cmd.CommandText = "select count(*) from Customers"
You need to display the number of customers in the Customers table.
Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)
A. Dim customerCount As Object = cmd.ExecuteScalar()
lblCompanyName.Text = customerCount.ToString()
B. Dim customerCount As Integer = cmd.ExecuteNonQuery()
lblCompanyName.Text = customerCount.ToString()
C. Dim dr As SqlDataReader = cmd.ExecuteReader()
dr.Read()
lblCompanyName.Text = dr(0).ToString()
D. Dim dr As SqlDataReader = cmd.ExecuteReader()
dr.Read()
lblCompanyName.Text = dr.ToString()
Answer: AC


6. You write a Web application. This application must support multiple languages. You store the localized strings in
the application as resources. You want these resources to be accessed according to a user's language preference.
You create the following resource files in the App_GlobalResources folder of your application.
myStrings.resx
myStrings.en-CA.resx
myString.en-US.resx
myStrings.fr-CA.resx
myStrings.es-MX.resx
Each resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create
a Web Form that contains one label for each of these strings.
You need to ensure that the correct localized version of each string is displayed in each label, according to a user's
language preference.
What should you do?
A. Add the following configuration section to the Web.config file.
<globalization culture="Auto" />
B. Set the directive for each page in your site as follows:
<%@ Page UICulture="Auto" %>
C. Add the following code segment to the page's load event.
lblName.Text = "{myStrings}Name"
lblAddress.Text = "{myStrings}Address"
lblEmail.Text = "{myStrings}Email"
lblPhone.Text = "{myStrings}Phone"
D. Add the following code segment to the page's load event.
lblName.Text = Resources.myStrings.Name
lblAddress.Text = Resources.myStrings.Address
lblEmail.Text = Resources.myStrings.Email
lblPhone.Text = Resources.myStrings.Phone
Answer: D
7. You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are
included for reference only.)
01 Dim dt As New DataTable("Products")
02 dt.Columns.Add(New DataColumn("Price", _
GetType(Decimal)))
03 dt.Columns.Add(New DataColumn("Quantity", _
GetType(Int32)))
04 Dim dc As DataColumn = New DataColumn("Total", _
GetType(Decimal))
05 dt.Columns.Add(dc)
You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column
when new rows are added or changed.
What should you do?
A. Add the following code segment after line 05.
dc.ExtendedProperties("Total") = "Price * Quantity"
B. Add the following code segment after line 05.
dc.Expression = "Price * Quantity"
C. Write an event handler for the DataTable's TableNewRow event that updates the row's Total.
D. Write an event handler for the DataTable's ColumnChanged event that updates the row's Total.
Answer: B


8. You create a Web Form. The Web Form displays sales information as a chart. The chart must be rendered to the
user's browser as a .jpeg file. The chart is retrieved by using the following code segment.
Dim bmpChart As Bitmap = Chart.GetCurrentSales()
You need to display the chart to the user.
Which code segment should you use?
A. Response.ContentType = "text/jpeg"
bmpChart.Save(Request.InputStream, System.Drawing.Imaging.ImageFormat.Jpeg)
bmpChart.Dispose()
B. Response.ContentType = "image/bitmap"
bmpChart.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Bmp)
bmpChart.Dispose()
C. Response.ContentType = "text/html"
bmpChart.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.MemoryBmp)
bmpChart.Dispose()
D. Response.ContentType = "image/jpeg"
bmpChart.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg)
bmpChart.Dispose()
Answer: D


9. You are creating a Web Form that displays product data. You create a DataView named dvOrders and bind it to a
GridView.
You need to display the rows from dvOrders where the CategoryID is 2, in descending order of unit price.
Which code segment should you use?
A. dvOrders.Find("CategoryID = 2, UnitPrice desc")
dvOrders.Table.AcceptChanges()
B. dvOrders.RowFilter = "CategoryID = 2"
dvOrders.Sort = "UnitPrice desc"
C. dvOrders.Table.Select("UnitPrice desc", "Category = 2")
D. dvOrders.Table.Select("CategoryID = 2", "UnitPrice desc")
Answer: B


10. Your Web site uses custom Themes. Your Web site must support additional Themes based on the user's
company name.
The company name is set when a user logs on to the Web site. The company's Theme name is stored in a variable
named ThemeName.
You need to use this variable to dynamically set the Web site's Theme.
What should you do?
A. Add the following code segment to the markup source of each page on the Web site.
<%@ Page Theme="ThemeName" ... %>
B. Add the following code segment to the Load event of each page on the Web site.
Page.Theme = ThemeName
C. Add the following code segment to the PreInit event of each page on the Web site.
Page.Theme = ThemeName
D. Add the following code segment to the Web site's configuration file.
<pages theme="ThemeName" />
Answer: C




More 70-528VB Braindumps Information


Exam Description

1. ExamSoon offer free update service for three month.


After you purchase our product, we will offer free update in time for three month.


2. High quality and Value for the 70-528VB Exam.


ExamSoon Practice Exams for 70-528VB are written to the highest standards of technical accuracy, provided by our
certified subject matter experts and published authors for development.


3. 100% Guarantee to Pass Your MCTS exam and get your MCTS Certification.


We guarantee your success in the first attempt. If you do not pass the MCTS "70-528VB" (MS.NET Framework 2.0-
Web-based Client Development on your first attempt, send us the official result. We will give you a FULLY REFUND of
your purchasing fee and send you another same value product for free.


4. ExamSoon MCTS 70-528VB Exam Downloadable.


Our PDF or Testing Engine Preparation Material of MCTS 70-528VB exam provides everything which you need to
pass your exam. The MCTS Certification details are researched and produced by our Professional Certification
Experts who are constantly using industry experience to produce precise, and logical. You may get "70-528VB exam"
questions from different websites or books, but logic is the key. Our Product will help you not only pass in the first
MS.NET Framework 2.0-Web-based Client Development( MCTS ) exam try, but also save your valuable time.


Comprehensive questions with complete details about 70-528VB exam.
70-528VB exam questions accompanied by exhibits. Verified Answers Researched by Industry Experts and almost
100% correct.
Drag and Drop questions as experienced in the Real MCTS exam. 70-528VB exam questions updated on regular
basis.
Like actual MCTS Certification exams, 70-528VB exam preparation is in multiple-choice questions (MCQs). Tested by
many real MCTS exams before publishing.
Try free MCTS exam demo before you decide to buy it in http://www.ExamSoon.com
High quality and Valued for the 70-528VB Exam: 100% Guarantee to Pass Your 70-528VB exam and get your MCTS
Certification. Come to http://www.ExamSoon.com The easiest and quickest way to get your MCTS Certification.


ExamSoon professional provides MCTS 70-528VB the newest Q&A, completely covers 70-528VB test original topic.
With our completed MCTS resources, you will minimize your MCTS cost and be ready to pass your 70-528VB test on
Your First Try, 100% Money Back Guarantee included!
70-528VB Exam Study Guide

70-528VB exam is regarded as one of the most favourite MCTS Certifications. Many IT professionals prefer to add
70-528VB exam among their credentials. ExamSoon not only caters you all the information regarding the 70-528VB
exam but also provides you the excellent 70-528VB study guide which mak es the certification exam easy for you.


ExamSoon Engine Features

Comprehensive questions and answers about 70-528VB exam
70-528VB exam questions accompanied by exhibits

Verified Answers Researched by Industry Experts and almost 100% correct
70-528VB exam questions updated on regular basis
Same type as the certification exams, 70-528VB exam preparation is in multiple-choice questions (MCQs).

Tested by multiple times before publishing
Try free 70-528VB exam demo before you decide to buy it in ExamSoon.com


ExamSoon Help You Pass Any IT Exam

ExamSoon.com offers incredib le career enhancing opportunities. We are a team of IT professionals that focus on providing
our customers with the most up to date material for any IT certification exam. This material is so effective that we Guarantee
you will pass the exam or your money b ack.


 Related 70-528VB Exams
    70-620    TS: Microsoft Windows Vista, Configuring

    70-646    PRO: Windows Server 2008, Server Administrator

    70-649    TS:Upgrading MCSE on Wndws Serv 2003 to Wndws Serv 2008

    70-235    TS:Devlping Busin Process & Intgrtion Sol Using MS Biz TIK

    70-528    MS.NET Framework 2.0-Web -b ased Client Development

    70-646Big5     Pro:Windows Server 2008, Server Administrator

    70-536CSharp      TS:MS.NET Framework 2.0-Application Develop Foundation

    70-526    Microsoft .NET Framework 2.0 - Windows-b ased Client Development is in development

    70-620Big5     TS:Configuring Windows Vista Client

    70-529    MS.NET Framework 2.0 - Distrib uted Appl Development

    70-401

    70-528CSharp      MS.NET Framework 2.0-Web -b ased Client Development

    70-526C++     Microsoft .NET Framework 2.0 - Windows-b ased Client Development is in development

    70-526CSharp      Microsoft .NET Framework 2.0 - Windows-b ased Client Development is in development

    70-536VB     TS:MS.NET Framework 2.0-Application Develop Foundation

    70-680    TS:Windows 7,Configuring

    70-529VB     MS.NET Framework 2.0 - Distrib uted Appl Development

    70-528VB     MS.NET Framework 2.0-Web -b ased Client Development

    70-526VB     Microsoft .NET Framework 2.0 - Windows-b ased Client Development is in development


 Other Microsoft Exams
    74-131          70-529VB        70-548VB         MB6-826         MB3-210         83-640          70-635          MB2-498

    70-             MB2-298         MB4-217          70-             70-121          MB2-228         70-542          70-639

    540CSharp                                                    70-220
                                                     536ChineseCSharp                MB3-532         70-             70-270

                                                                                                     536CSharp

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:8
posted:2/3/2010
language:English
pages:7