70-431 CBT Nuggets
- Friday, May 9, 2008, 7:11
- Study Guide
- 539 views
- Add a comment
70-431 CBT Nuggets
QUESTION 1 :
You are writing code that will execute two commands, strCom1 and strCom2, within a transaction. You
have written the following code. (Line numbers are for reference purposes only.)
01 Dim transMain as SqlTransaction = connMain.BeginTransaction;
02 Dim cmdMain as SqlCommand = New SqlCommand;
03
04 cmdMain.CommandText = strCom1;
05 cmdMain.ExecuteNonQuery();
06 cmdMain.CommandText = strCom2;
07 cmdMain.ExecuteNonQuery();
08 transMain.Commit;
09 connMain.Close;
Which of the following lines of code should be placed in line 03? (Select the best choice.)
A. transMain.Save;
B. transMain.RollBack;
C. cmdMain.Connection = connMain;
D. cmdMain.Transaction = transMain;
Answer: D
A transaction is a group of commands that must either succeed or fail as a unit. Transactions are created from a
Connection object’s BeginTransaction method. When commands are issued within the context of a
transaction, the transaction must be assigned to the Transaction property of a Command object. Otherwise, if
the Transaction property of the Command object has not been set, then an exception will be thrown when the
command attempts to execute.
QUESTION 2
You are debugging an ASP.NET application using C# for Certkiller Inc. Users will use the application to
produce reports. Your application contains several Debug.WriteLine statements.
Which window in Visual Studio .NET should you use to inspect output from the Debug.WriteLine
statements? (Select the best choice.)
A. Command
Actualtests.org – The Power of Knowing
B. Locals
C. Output
D. Breakpoints
Answer: C
You should use the Output window in Visual Studio .NET to inspect output from Debug.WriteLine
statements. The output of Debug and Trace objects is directed to the Output window in Visual Studio .NET
while an application is running in debug mode. The WriteLine method sends output to a TraceListener, which
directs the output to the appropriate location.
QUESTION 3
You are debugging a client-side VBScript code for an online hotel booking system. While debugging a
client-side VBScript code segment for a .NET Web Form, you encounter a bug in the logic of the script.
You add a Stop statement to the top of the script block and start the application.
When you click the button that starts the script, the Stop statement is ignored.
What should you do to correct the problem? (Select the best choice.)
A. In Visual Studio .NET, choose Options from the Tools menu. In the Edit and Continue section within
the Debugging folder, ensure that the Enable Edit and Continue option is selected.
B. Write the script in JavaScript rather than VBScript.
C. Use an End statement instead of a Stop statement.
D. In Internet Explorer, choose Internet Options from the Tools menu. On the Advanced tab, ensure that
the Disable Script Debugging check box is cleared.
Answer: D
In Internet Explorer, you should choose Internet Options from the Tools menu and ensure that the Disable
Script Debugging check box on the Advanced tab is cleared in order to enable script debugging. Edit and
Continue mode allows you to make changes to your source code while debugging an application. It is not
necessary for Edit and Continue mode to be enabled in order to debug VB Script. Writing the script in
JavaScript will not cause the breakpoint to behave differently. The End statement would cause the program to
terminate; therefore, it is inappropriate for use in this situation.
Code:
http://rapidshare.com/files/106629654/CBTNuggets_70-431.part6.rar
http://rapidshare.com/files/106651247/CBTNuggets_70-431.part5.rar
http://rapidshare.com/files/106616404/CBTNuggets_70-431.part4.rar
http://rapidshare.com/files/106563432/CBTNuggets_70-431.part3.rar
http://rapidshare.com/files/106389648/CBTNuggets_70-431.part2.rar
http://rapidshare.com/files/106337719/CBTNuggets_70-431.part1.rar
Free download:pass4sure Microsoft 70-431
Free download:testking Microsoft 70-431
password:www.certbible.org
High quality IT Certification Training Exam Questions, Study Guides and Practice Tests are in Downloadable PassGuide Testing Engine,Successful for IT Certification or Full Refund for you.Contact Us:Sales@PassGuide.com|
Type |
Exam Bible | New Questions & Answers |
Latest Updated |
Download link |
| All Certbible 's Exam Dumps |
597 |
1 days ago | Available |
PassGuide Training Materials & Practice Tests
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!


