2011年11月4日星期五

Microsoft 70-305 points exam study

1. You create an ASP.NET application for your company.
Your application contains a method named nextBusinessDay.
This method uses a date parameter and returns the next date that is not a holiday or weekend day.
You are debugging a page named ProjectTimeline.aspx.
You need the execution to break on the following line of code when the value of the dStartDate variable
changes:
StartDate = nextBusinessDay(dStartDate)
What should you do?
A. Set a breakpoint on the line of code and open the BreakPoint Properties dialog box.
Specify the following breakpoint condition:
dStartDate <> dStartDate
Select the is true option.
B. Set a breakpoint on the line of code and open the BreakPoint Properties dialog box.
Specify the following breakpoint condition:
dStartDate
Select the has changed option.
C. Add the following statement immediately after the call to nextBusinessDay:
System.Diagnostics.Debug.Assert( _
dStartDate <> dStartDate, "dStartDate has changed.")
D. Add the following statement immediately after the call to nextBusinessDay:
System.Diagnostics.Trace.Assert( _
dStartDate <> dStartDate, "dStartDate has changed.")
Answer: B


2. You are creating an ASP.NET page for your company.
The page contains a DataGrid control that displays all the current prices for the commodities that the
company purchases.
The page also contains a Button control that refreshes the data in the DataGrid control.
The DataGrid control needs to be repopulated each time the page is displayed.
The data is accessed through a DataView object stored in the Session object.
You want to ensure the fastest load time for the page.
What should you do?
A. Set the DataSource property and call the DataBind method of the DataGrid control in the Click event
handler for the Button control.
B. Set the DataSource property and call the DataBind method of the DataGrid control in the Start event
handler for the Session object.
C. Set the EnableViewState property of the DataGrid control to false.
D. Set the EnableViewState property of the DataGrid control to true.
Answer: C

没有评论:

发表评论