4/14/2010

testking 70-647 To Get 1000 score

Product DescriptionExam Number/Code: 70-647
Exam Name:Pro:Windows Server 2008, Enterprise Administrator

“Pro:Windows Server 2008, Enterprise Administrator”, also known as 70-647 exam, is a Microsoft certification. With the complete collection of questions and answers, Pass4sure has assembled to take you through 172 Q&As to your 70-647 Exam preparation. In the 70-647 exam resources, you will cover every field and category in MCITP helping to ready you for your successful Microsoft Certification

QUESTION 1
You use Visual Studio .NET to create a data entry form. The form enables users to
edit personal information such as address and telephone number. The form contains
a text box named textPhoneNumber.
If a user enters an invalid telephone number, the form must notify the user of the
error. You create a function named IsValidPhone that validates the telephone
number entered. You include an ErrorProvider control named ErrorProvider1 in
your form.
Which additional code segment should you use?
A. private void textPhone_Validating(
object sender, System.ComponentModel.CancelEventArgs e) {
if (!IsValidPhone()) {

Actualtests.org – The Power of Knowing
errorProviderl.SetError (TextPhone,”Invalid Phone.”);
}
}
B. private void textPhone_Validated(
object sender, System.EventArgs e) {
if (!IsValidPhone()) {
errorProviderl.SetError (TextPhone,”Invalid Phone.”);
}
}
C. private void textPhone_Validating(
object sender, System.ComponentModel.CancelEventArgs e) {
if (!IsValidPhone()) {
errorProviderl.GetError (textPhone Phone);
}
}
D. private void textPhone_Validated(
object sender, System.EventArgs e) {
if (!IsValidPhone()) {
errorProviderl.GetError (textPhone Phone);
}
}
E. private void textPhone_Validating(
object sender, System.ComponentModel.CancelEventArgs e) {
if (!IsValidPhone()) {
errorProviderl.(UpdateBinding ();
}
}
F. private void textPhone_Validated(
object sender, System.EventArgs e) {
if (!IsValidPhone()) {
errorProviderl.(UpdateBinding ();
}
}
Answer: A
Explanation: The Validating event allows you to perform sophisticated validation
on controls. It is possible to use an event handler that doesn’t allow the focus to
leave the control until a value has been entered.
The ErrorProvider component provides an easy way to communicate validation errors to
users. The SetError method of the ErrorProvider class sets the error description string for
the specified control.
Note: Focus events occur in the following order:
1. Enter
2. GotFocus
3. Leave

Actualtests.org – The Power of Knowing
4. Validating
5. Validated
6. LostFocus
Reference: 70-306/70-316 Training kit, To create a validation handler that uses the
ErrorProvider component, Pages 93-94
.NET Framework Class Library, ErrorProvider.SetError Method [C#]
Incorrect Answers
C: The GetError method returns the current error description string for the specified
control.
E: The updateBinding method provides a method to update the bindings of the
DataSource, DataMember, and the error text. However, we just want to set the error
description.
B, D, F: The validated event occurs when the control is finished validating. It can used to
perform any actions based upon the validated input.
QUESTION 2
You work as a software developer at Certkiller .com. You develop a Windows-based
application that includes two objects named Certkiller Contact and
Certkiller Employee. Certkiller Employee inherits from Certkiller Contact, and
Certkiller Contact exposes an event named DataSaved. You want to raise the
DataSaved event from Certkiller Employee.
What should you do?
A. Call the RaiseEvent method from Certkiller Employee and pass DataSaved as the event
name.
B. Add the Public keyword to the DataSaved declaration in Certkiller Contact.
Call the RaiseEvent method from Certkiller Employee.
C. In Certkiller Contact, create a protected method named RaiseDataSaved that explicitly
raises the DataSaved event.
Call RaiseDataSaved from Certkiller Employee.
D. In Certkiller Employee, create a protected method named RaiseDataSaved that
explicitly raises the DataSaved event in Certkiller Contact.
Call RaiseDataSaved to fire the event.
Answer: A
QUESTION 3
You use Visual Studio .NET to create a form that includes a submenu item named
helpCKOption. In the Click event handler for helpOption, you write code to open a
Web browser loaded with a context-sensitive Help file.
You add a ContextMenu item named ContextMenu1 to the form. ContextMenu1
will be used for all controls on the form.
Now you need to add code to the Popup event handler for ContextMenu1. Your
code will create a popup menu that offers the same functionality as helpCKOption.

Actualtests.org – The Power of Knowing
You want to use the minimum amount of code to accomplish this goal.
Which two code segments should you use? (Each correct answer presents part of the
solution. Choose two)
A. ContextMenu1.MenuItems.Clear();
B. ContextMenu1.MenuItems.Add(”&Display Help”);
C. ContextMenu1.MenuItems.Add(helpCKOption.CloneMenu();
D. ContextMenu1.MenuItems[0].Click += new
System.EventHandler(helpCKOption_Click)
E. ContextMenu1.Popup += new
System.EventHandler(helpCKOption_Click)
Answer: A, C

0 comments: