UPGRADE:MCDBA Skills to MCITP DB Admin by Using MS SQL 2005 : 070-447 Exam
Exam Number/Code: 070-447
Exam Name: UPGRADE:MCDBA Skills to MCITP DB Admin by Using MS SQL 2005
??PGRADE:MCDBA Skills to MCITP DB Admin by Using MS SQL 2005?, also known as 070-447 exam, is a Microsoft certification.
Preparing for the 070-447 exam? Searching 070-447 Test Questions, 070-447 Practice Exam, 070-447 Dumps?
With the complete collection of questions and answers, Pass4sure has assembled to take you through 132 Q&A to your 070-447 Exam preparation. In the 070-447 exam resources, you will cover every field and category in MCITP helping to ready you for your successful Microsoft Certification.
QUESTION 1
Actualtests.org – The Power of Knowing
You are creating an ASP.NET application for Certkiller Inc. Users will use the application to produce
reports. While you are debugging an application, you must be able to see when the value of a particular
variable in a procedure is not zero.
Which method of the Debug class should you use to output the contents of the call stack when the
variable is not zero? (Select the best choice.)
A. WriteIf
B. WriteLineIf
C. Assert
D. Write
Answer: C
The Assert method of the Debug and Trace classes determines whether an expression evaluates to false , and if
so, outputs the call stack or a specified message. The WriteIf and WriteLineIf methods send messages to the
listeners if an expression evaluates to true, but they cannot display the call stack. The Write method will output
a specified message each time it is called.
QUESTION 2
Which of the following properties of the XmlDocument class returns the XmlDocument of the current
node? (Select the best choice.)
A. DocumentElement
B. FirstChild
C. LastChild
D. OwnerDocument
Answer: D
The OwnerDocument property returns the XmlDocument of the current node.
The DocumentElement property returns an XmlElement object that represents the root node of an XML
document. Because the DocumentElement property always refers to the root node of an XML document, it
provides a relatively simple method of accessing properties of the root node. The FirstChild property returns the
first child of a node. The LastChild property returns the last child of a node.
QUESTION 3
You are an ASP.Net application developer. You are designing a function that returns a the number of
students enrolled in a course. You use the ExecuteNonQuery method of the SqlCommand class to execute
a Transact-SQL statement.
Which of the following values will be returned by the ExecuteNonQuery method? (Select the best choice.)
A. an integer indicating the number of rows affected
B. a Boolean value indicating that the command processed correctly
C. a string with the name of the stored procedure or query string that executed
D. a string with the description of any errors that may have occurred
Actualtests.org – The Power of Knowing
Answer: A
The ExecuteNonQuery method is used to process Transact-SQL statements that perform DELETE, INSERT
and UPDATE functions. The method returns an integer indicating the number of rows that were deleted,
inserted or updated. The ExecuteNonQuery method does not return any rows, but will populate any output
parameters that are present in the Command object.
QUESTION 4
You need to obtain the CGPA for students of the School of Business in a text format. Which of the
following code fragments will set the Text property of a TextBox control to the value of the @CGPA
output parameter? (Select the best choice.)
A. TextBox1.Text = (string) myCommand.Parameters(”@CGPA”).Value;
B. TextBox1.Text = myCommand.Parameters(”@CGPA”).Value.ToString();
C. TextBox1.Text = myCommand.Parameters(”@CGPA”).ToString();
D. TextBox1.Text = myCommand.Parameters(”@CGPA”).SourceColumn;
Answer: A
The Value property of the SqlParameter class returns the value of the specified output parameter. The (string)
typecast ensures that the value is a string before assigning the value to the text box’s Text property. It is invalid
syntax to append ToString to the Value property of a SqlParameter object.
The ToString property of a SqlCommand object will return the parameter name, not the value. The
SourceColumn property will return the column name that is used for the Value property.
No comments:
Post a Comment